1996-09-03 03:56:08 +00:00
|
|
|
#
|
|
|
|
# This makefile is intended for use with dmake(1)
|
|
|
|
#
|
1996-09-09 06:12:16 +00:00
|
|
|
# $Id: makefile.mk,v 1.3 1996/09/09 06:12:15 gdr Exp $
|
1996-09-03 03:56:08 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
INSTALL = /usr/bin/install
|
|
|
|
BINDIR = /bin
|
|
|
|
MANDIR = /man/man1
|
|
|
|
|
|
|
|
DEFINES = -D_POSIX_SOURCE
|
|
|
|
|
|
|
|
# CFLAGS = -w -i -G25 -v -DCHECK_STACK=1 $(DEFINES)
|
1996-01-28 00:53:44 +00:00
|
|
|
# LDFLAGS = -l/usr/lib/gnulib -l/usr/lib/stack
|
|
|
|
|
1996-09-03 03:56:08 +00:00
|
|
|
CFLAGS = -w -i -O -s768 $(DEFINES)
|
1996-01-28 00:53:44 +00:00
|
|
|
LDFLAGS = -l/usr/lib/gnulib -s768
|
|
|
|
|
1996-09-03 03:56:08 +00:00
|
|
|
tee: tee.o tee.r
|
1996-09-09 06:12:16 +00:00
|
|
|
@purge
|
1996-09-03 03:56:08 +00:00
|
|
|
$(CC) $(LDFLAGS) tee.o $(LDLIBS) -o $@
|
|
|
|
copyfork tee.r tee -r
|
1996-01-28 00:53:44 +00:00
|
|
|
|
1996-09-09 06:12:16 +00:00
|
|
|
testtee: testtee.c
|
|
|
|
@purge
|
|
|
|
$(CC) -v -w $< -o $@
|
|
|
|
|
1996-01-28 00:53:44 +00:00
|
|
|
install:
|
1996-09-03 03:56:08 +00:00
|
|
|
$(INSTALL) -m755 -obin -gsys -d $(BINDIR) $(MANDIR)
|
|
|
|
$(INSTALL) -m755 -obin -gsys tee $(BINDIR)
|
|
|
|
$(INSTALL) -m644 -obin -gsys tee.1 $(MANDIR)
|
|
|
|
|
|
|
|
clean clobber:
|
1996-09-09 06:12:16 +00:00
|
|
|
$(RM) -f tee.r tee.o tee.root testtee testtee.o testtee.root
|