mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-11-19 11:30:51 +00:00
2f69a2a3db
buffering. Added program 'testtee' to provide output for testing.
35 lines
741 B
Makefile
35 lines
741 B
Makefile
#
|
|
# This makefile is intended for use with dmake(1)
|
|
#
|
|
# $Id: makefile.mk,v 1.3 1996/09/09 06:12:15 gdr Exp $
|
|
#
|
|
|
|
INSTALL = /usr/bin/install
|
|
BINDIR = /bin
|
|
MANDIR = /man/man1
|
|
|
|
DEFINES = -D_POSIX_SOURCE
|
|
|
|
# CFLAGS = -w -i -G25 -v -DCHECK_STACK=1 $(DEFINES)
|
|
# LDFLAGS = -l/usr/lib/gnulib -l/usr/lib/stack
|
|
|
|
CFLAGS = -w -i -O -s768 $(DEFINES)
|
|
LDFLAGS = -l/usr/lib/gnulib -s768
|
|
|
|
tee: tee.o tee.r
|
|
@purge
|
|
$(CC) $(LDFLAGS) tee.o $(LDLIBS) -o $@
|
|
copyfork tee.r tee -r
|
|
|
|
testtee: testtee.c
|
|
@purge
|
|
$(CC) -v -w $< -o $@
|
|
|
|
install:
|
|
$(INSTALL) -m755 -obin -gsys -d $(BINDIR) $(MANDIR)
|
|
$(INSTALL) -m755 -obin -gsys tee $(BINDIR)
|
|
$(INSTALL) -m644 -obin -gsys tee.1 $(MANDIR)
|
|
|
|
clean clobber:
|
|
$(RM) -f tee.r tee.o tee.root testtee testtee.o testtee.root
|