+FINAL = forktest errcode techo uecho echod daytimed iterdaytimed daytime \
+ testren fortune fortuned mqfortune mqfortuned flock myls dirmonitor \
+ readmon ipctestid writeshm getcap testfopen #readshm
+
+$(LIB): $(OBJ)
+ gcc -shared -lrt $^ -o $@
+
+$(OBJ): Gapil.h
+
+all: $(FINAL) $(LIB)
+
+dirmonitor: DirMonitor.c
+ $(CC) $^ -o $@ $(CFLAGJ) -lrt
+
+readmon: ReadMonitor.c
+ $(CC) $^ -o $@ $(CFLAGJ) -lrt
+
+myls: myls.c
+ $(CC) $^ -o $@ $(CFLAGJ) -lrt
+
+mylschroot: mylschroot.c
+ $(CC) --static $^ dir_scan.o -o $@
+
+flock: Flock.c
+ $(CC) $^ -o $@
+
+mqfortune: MQFortuneClient.c FortuneParse.c
+ $(CC) $^ -o $@ $(CFLAGJ)
+
+mqfortuned: MQFortuneServer.c FortuneParse.c
+ $(CC) $^ -o $@ $(CFLAGJ) -lrt
+
+fortune: FortuneClient.c
+ $(CC) $^ -o $@
+
+fortuned: FortuneServer.c FortuneParse.c
+ $(CC) $^ -o $@ $(CFLAGJ) -lrt
+
+message_setter: message_setter.c
+ $(CC) $^ -o $@ $(CFLAGJ) -lrt
+
+message_getter: message_getter.c
+ $(CC) $^ -o $@ $(CFLAGJ) -lrt -lpthread
+
+barcode: BarCode.c
+ $(CC) $^ -o $@
+
+barcodepage: BarCodePage.c
+ $(CC) $^ -o $@
+
+getparam: getparam.c
+ $(CC) $^ -o $@
+
+testfopen: test_fopen.c
+ $(CC) $^ -o $@
+
+test_initfile: test_initfile.c
+ $(CC) $^ -o $@ $(CFLAGJ) -lrt
+
+testren: TestRen.c
+ $(CC) $^ -o $@
+
+forktest: fork_test.c
+ $(CC) $^ -o $@ $(CFLAGJ) -lrt