Fix various compile warnings
[splice.git] / Makefile
index 29d76a4cdc6374ea36d2273ea57d4a1b6f2a8bd4..0cb0d69aed97b985cec264f443de064ab5795680 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,10 @@
 CC     = gcc
 CFLAGS = -Wall -O2 -g -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-PROGS  = ktee ktee-net splice-cp splice-in splice-out splice-net splice-test4c splice-test4s
+PROGS  = ktee ktee-net splice-cp splice-in splice-out splice-tonet splice-fromnet splice-test4c splice-test4s vmsplice splice-bench vmsplice2 vmsplice-touser splice-fromnet
+MANS   = splice.2 tee.2 vmsplice.2
 
 all: depend $(PROGS)
+       $(MAKE) -C nettest
 
 %.o: %.c
        $(CC) -o $*.o -c $(CFLAGS) $<
@@ -12,6 +14,18 @@ depend:
 
 clean:
        -rm -f *.o $(PROGS) .depend
+       $(MAKE) -C nettest clean
+
+INSTALL = install
+prefix = /usr/local
+bindir = $(prefix)/bin
+mandir = $(prefix)/man
+
+install: $(PROGS)
+       $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
+       $(INSTALL) $(PROGS) $(DESTDIR)$(bindir)
+       $(INSTALL) -m755 -d $(DESTDIR)$(mandir)/man2
+       $(INSTALL) $(MANS) $(DESTDIR)$(mandir)/man2
 
 ifneq ($(wildcard .depend),)
 include .depend