Wed, 19 Apr 2000 22:44:45 +0200
trunk: changeset 10
Fixed system.mk
3 | 1 | ## |
2 | ## libtu Makefile | |
3 | ## | |
0 | 4 | |
3 | 5 | # System-specific configuration is in system.mk |
6 | include system.mk | |
0 | 7 | |
8 | ###################################### | |
9 | ||
5 | 10 | INCLUDES += -I./include |
11 | ||
0 | 12 | OBJS= misc.o output.o util.o optparser.o parser.o tokenizer.o |
13 | ||
14 | LIBDIR=$(PREFIX)/lib | |
15 | INCDIR=$(PREFIX)/include/libtu | |
16 | ||
17 | TARGETS=libtu.a | |
18 | TESTERS=tester tester2 tester3 | |
19 | ||
20 | ###################################### | |
21 | ||
3 | 22 | include rules.mk |
23 | ||
24 | ###################################### | |
0 | 25 | |
26 | testers: $(TESTERS) | |
27 | ||
28 | libtu.a: $(OBJS) | |
29 | $(AR) $(AR_FLAGS) $@ $+ | |
30 | ||
1 | 31 | %: %.c libtu.a |
0 | 32 | $(CC) $(CC_FLAGS) $+ -L. -ltu -lm -o $@ |
33 | ||
3 | 34 | _install: |
0 | 35 | $(INSTALL) -d $(LIBDIR) |
36 | $(INSTALL) -d $(INCDIR) | |
3 | 37 | $(INSTALL) -m $(DATA_MODE) libtu.a $(LIBDIR) |
5 | 38 | $(INSTALL) -m $(DATA_MODE) include/libtu/*.h $(INCDIR) |
0 | 39 |