26 testers: $(TESTERS) |
26 testers: $(TESTERS) |
27 |
27 |
28 libtu.a: $(OBJS) |
28 libtu.a: $(OBJS) |
29 $(AR) $(AR_FLAGS) $@ $+ |
29 $(AR) $(AR_FLAGS) $@ $+ |
30 |
30 |
31 %: %.c libtu.a |
31 tester: tester.c libtu.a |
32 $(CC) $(CC_FLAGS) $+ -L. -ltu -lm -o $@ |
32 $(CC) $(CC_FLAGS) $< -L. -ltu -lm -o $@ |
|
33 |
|
34 tester2: tester2.c libtu.a |
|
35 $(CC) $(CC_FLAGS) $< -L. -ltu -lm -o $@ |
|
36 |
|
37 tester3: tester3.c libtu.a |
|
38 $(CC) $(CC_FLAGS) $< -L. -ltu -lm -o $@ |
33 |
39 |
34 _install: |
40 _install: |
35 $(INSTALL) -d $(LIBDIR) |
41 $(INSTALL) -d $(LIBDIR) |
36 $(INSTALL) -d $(INCDIR) |
42 $(INSTALL) -d $(INCDIR) |
37 $(INSTALL) -m $(DATA_MODE) libtu.a $(LIBDIR) |
43 $(INSTALL) -m $(DATA_MODE) libtu.a $(LIBDIR) |
38 $(INSTALL) -m $(DATA_MODE) include/libtu/*.h $(INCDIR) |
44 for i in include/libtu/*.h; do \ |
39 |
45 $(INSTALL) -m $(DATA_MODE) $$i $(INCDIR); \ |
|
46 done |