2 # Simple Makefile to build examples
6 CFLAGS= -Wall -g -fPIC -DDEBUG
11 OBJ = FullRead.o FullWrite.o SigHand.o Mutex.o SharedMem.o LockFile.o \
12 DirScan.o endian.o SockUtil.o full_fread.o full_fwrite.o is_closing.o
14 FINAL = forktest errcode techo uecho echod daytimed iterdaytimed daytime \
15 testren fortune fortuned mqfortune mqfortuned flock myls dirmonitor \
16 readmon ipctestid writeshm getcap testfopen #readshm
19 gcc -shared -lrt $^ -o $@
25 dirmonitor: DirMonitor.c
26 $(CC) $(CFLAGJ) $^ -o $@
28 readmon: ReadMonitor.c
29 $(CC) $(CFLAGJ) $^ -o $@
32 $(CC) $(CFLAGJ) $^ -o $@
34 mylschroot: mylschroot.c
35 $(CC) --static $^ DirScan.o -o $@
40 mqfortune: MQFortuneClient.c FortuneParse.c
41 $(CC) $(CFLAGJ) $^ -o $@
43 mqfortuned: MQFortuneServer.c FortuneParse.c
44 $(CC) $(CFLAGJ) $^ -o $@
46 fortune: FortuneClient.c
47 $(CC) $(CFLAGJ) $^ -o $@
49 fortuned: FortuneServer.c FortuneParse.c
50 $(CC) $(CFLAGJ) $^ -o $@
52 message_setter: message_setter.c
53 $(CC) $(CFLAGJ) $^ -o $@
55 message_getter: message_getter.c
56 $(CC) $(CFLAGJ) $^ -o $@
61 barcodepage: BarCodePage.c
65 $(CC) $(CFLAGJ) $^ -o $@
67 testfopen: test_fopen.c
68 $(CC) $(CFLAGJ) $^ -o $@
71 $(CC) $(CFLAGJ) $^ -o $@
74 $(CC) $(CFLAGJ) $^ -o $@
77 $(CC) $(CFLAGJ) $^ -o $@
80 $(CC) $(CFLAGJ) $(CFLAGS) $^ -o $@
83 $(CC) $(CFLAGJ) $(CFLAGS) $^ -o $@
86 $(CC) $(CFLAGJ) $(CFLAGS) $^ -o $@
88 sechod: select_echod.c
89 $(CC) $(CFLAGJ) $(CFLAGS) $^ -o $@
92 $(CC) $(CFLAGJ) $(CFLAGS) $^ -o $@
94 daytimed: UDP_daytimed.c # TCP_cunc_daytimed.c
95 $(CC) $(CFLAGJ) $^ -o $@
97 iterdaytimed: TCP_iter_daytimed.c
98 $(CC) $(CFLAGJ) $^ -o $@
100 daytime: UDP_daytime.c # TCP_daytime.c
101 $(CC) $(CFLAGJ) $(CFLAGS) $^ -o $@
103 ipctestid: IPCTestId.c
107 $(CC) $(CFLAGJ) $^ -o $@
109 mygetaddr: mygetaddr.c
110 $(CC) $(CFLAGJ) $^ -o $@
115 $(CC) $(CFLAGJ) $^ -o $@
118 $(CC) $(CFLAGJ) $(CFLAGS) $^ -o $@
121 $(CC) $(CFLAGS) $^ -o $@
124 $(CC) $(CFLAGS) $^ -lcap -o $@
127 $(CC) $(CFLAGS) $^ -o $@
129 mygetxattr: mygetxattr.c
130 $(CC) $(CFLAGS) $^ -lattr -o $@
133 # Macro per la generazione della tarball dei sorgenti
134 package: clean gapil_source.tgz
138 tar -cvz *.[ch] Makefile README -f $@