Makefile

changeset 8
c1994196683f
parent 5
f878a9ffa3e0
child 9
55e7f2ff6021
--- a/Makefile	Wed Apr 19 22:44:45 2000 +0200
+++ b/Makefile	Sat Apr 22 17:34:20 2000 +0200
@@ -28,12 +28,19 @@
 libtu.a: $(OBJS)
 	$(AR) $(AR_FLAGS) $@ $+
 
-%: %.c libtu.a
-	$(CC) $(CC_FLAGS) $+ -L. -ltu -lm -o $@
+tester: tester.c libtu.a
+	$(CC) $(CC_FLAGS) $< -L. -ltu -lm -o $@
+
+tester2: tester2.c libtu.a
+	$(CC) $(CC_FLAGS) $< -L. -ltu -lm -o $@
+
+tester3: tester3.c libtu.a
+	$(CC) $(CC_FLAGS) $< -L. -ltu -lm -o $@
 
 _install:
 	$(INSTALL) -d $(LIBDIR)
 	$(INSTALL) -d $(INCDIR)
 	$(INSTALL) -m $(DATA_MODE) libtu.a $(LIBDIR)
-	$(INSTALL) -m $(DATA_MODE) include/libtu/*.h $(INCDIR)
-
+	for i in include/libtu/*.h; do \
+		$(INSTALL) -m $(DATA_MODE) $$i $(INCDIR); \
+	done

mercurial