1996-03-31 23:38:34 +00:00
|
|
|
#
|
|
|
|
# This makefile is for use with dmake(1).
|
|
|
|
#
|
1996-09-03 03:55:00 +00:00
|
|
|
# $Id: makefile.mk,v 1.2 1996/09/03 03:54:59 gdr Exp $
|
1996-03-31 23:38:34 +00:00
|
|
|
#
|
|
|
|
|
1996-09-03 03:55:00 +00:00
|
|
|
DEFINES = -D__GNO__ # -DCHECK_STACK
|
|
|
|
INCLUDES = -I ../contrib/src
|
1996-03-31 23:38:34 +00:00
|
|
|
STACK = -s1280
|
1996-09-03 03:55:00 +00:00
|
|
|
CFLAGS = $(DEFINES) $(INCLUDES) $(STACK) -w -O -v
|
1996-03-31 23:38:34 +00:00
|
|
|
LDFLAGS = -v
|
1996-09-03 03:55:00 +00:00
|
|
|
LDLIBS = -l ../contrib/src/lcontrib \
|
|
|
|
-l ../contrib/src/libc2 \
|
|
|
|
# -l/usr/lib/stack
|
1996-03-31 23:38:34 +00:00
|
|
|
BINDIR = /usr/bin
|
|
|
|
MANDIR = /usr/man
|
|
|
|
|
1996-09-03 03:55:00 +00:00
|
|
|
OBJS = install.o
|
1996-03-31 23:38:34 +00:00
|
|
|
|
|
|
|
install: $(OBJS) install.r
|
|
|
|
$(CC) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@
|
|
|
|
copyfork install.r install -r
|
|
|
|
@echo 'type \"dmake doinstall\" to install this program'
|
|
|
|
|
|
|
|
doinstall:
|
1996-09-03 03:55:00 +00:00
|
|
|
./install -d $(BINDIR) $(MANDIR)/man1
|
1996-03-31 23:38:34 +00:00
|
|
|
./install -m755 -obin -gsys ./install $(BINDIR)
|
|
|
|
./install -m644 -obin -gsys ./install.1 $(MANDIR)/man1
|
|
|
|
|
|
|
|
clean clobber:
|
|
|
|
$(RM) $(OBJS) install.root install.r
|