Esempi di server con le message queue
[gapil.git] / sources / Makefile
index 7ce1d44acdcdb9081d4c9d5a472aa7f9e0aaf0bf..1704f20cc9cd1c6841f0f5d360a222aec9e55e9d 100644 (file)
@@ -2,14 +2,33 @@
 # Simple Makefile to build examples
 #
 # C flags
-CC=gcc
+CC=gcc -DDEBUG
 CFLAGS= -Wall -g 
 CFLADJ=-c 
 
 OBJ = SockRead.o SockWrite.o
 
 FINAL = forktest errcode echo echod daytimed iterdaytimed daytime testfopen \
-       testren
+       testren fortune fortuned
+
+mqfortune: MQFortuneClient.c
+       $(CC) $^ -o $@
+
+mqfortuned: MQFortuneServer.c FortuneParse.c 
+       $(CC) $^ -o $@
+
+fortune: FortuneClient.c
+       $(CC) $^ -o $@
+
+fortuned: FortuneServer.c FortuneParse.c 
+       $(CC) $^ -o $@
+
+barcode: BarCode.c
+       $(CC) $(CFLAGS) $^ -o $@
+
+
+barcodepage: BarCodePage.c
+       $(CC) $(CFLAGS) $^ -o $@
 
 
 getparam: getparam.c
@@ -24,7 +43,7 @@ testfopen: test_fopen.c
 testren: TestRen.c
        $(CC) $(CFLAGS) $^ -o $@
 
-forktest: ForkTest.c
+forktest: ForkTest.c HandSIGCHLD.c
        $(CC) $(CFLAGS) $^ -o $@
 
 errcode: ErrCode.c 
@@ -64,14 +83,3 @@ clean:
        rm -f *.o
        rm -f prova*
        rm -f output*
-
-
-
-
-
-
-
-
-
-
-