2 # Simple Makefile to build examples
9 OBJ = SockRead.o SockWrite.o
11 FINAL = forktest errcode echo echod daytimed iterdaytimed daytime testfopen \
12 testren fortune fortuned
14 fortune: FortuneClient.c
17 fortuned: FortuneServer.c FortuneParse.c
21 $(CC) $(CFLAGS) $^ -o $@
24 barcodepage: BarCodePage.c
25 $(CC) $(CFLAGS) $^ -o $@
29 $(CC) $(CFLAGS) $^ -o $@
34 testfopen: test_fopen.c
35 $(CC) $(CFLAGS) $^ -o $@
38 $(CC) $(CFLAGS) $^ -o $@
40 forktest: ForkTest.c HandSIGCHLD.c
41 $(CC) $(CFLAGS) $^ -o $@
44 $(CC) $(CFLAGS) $^ -o $@
46 echo: SimpleEchoTCPClient.c $(OBJ)
47 $(CC) $(CFLAGS) $^ -o $@
49 echod: SimpleEchoTCPServer.c $(OBJ)
50 $(CC) $(CFLAGS) $^ -o $@
52 daytimed: ElemDaytimeTCPCuncServ.c
53 $(CC) $(CFLAGS) $^ -o $@
55 iterdaytimed: SimpleDaytimeTCPServer.c
56 $(CC) $(CFLAGS) $^ -o $@
58 daytime: SimpleDaytimeTCPClient.c
59 $(CC) $(CFLAGS) $^ -o $@
64 # Macro per la generazione della tarball dei sorgenti
65 package: clean gapil_source.tgz
69 tar --exclude=CVS -cvz . -f $@