| 1 ## |
1 ## |
| 2 ## libtu Makefile |
2 ## libtu Makefile |
| 3 ## |
3 ## |
| 4 |
4 |
| 5 # System-specific configuration is in system.mk |
5 # System-specific configuration is in system.mk |
| 6 TOPDIR=. |
6 TOPDIR=../ion |
| 7 include system-inc.mk |
7 include system-inc.mk |
| 8 |
8 |
| 9 ###################################### |
9 ###################################### |
| 10 |
10 |
| 11 INCLUDES += -I./include |
11 INCLUDES += -I./include |
| 12 CFLAGS += $(POSIX_SOURCE) |
12 CFLAGS += $(POSIX_SOURCE) |
| 13 |
13 |
| 14 OBJS= misc.o output.o util.o optparser.o parser.o tokenizer.o map.o |
14 SOURCES=misc.c output.c util.c optparser.c parser.c tokenizer.c map.c |
| 15 |
15 |
| 16 ifdef LIBTU_NO_ERRMSG |
16 ifdef LIBTU_NO_ERRMSG |
| 17 DEFINES += -DLIBTU_NO_ERRMSG |
17 DEFINES += -DLIBTU_NO_ERRMSG |
| 18 else |
18 else |
| 19 ifndef HAS_SYSTEM_ASPRINTF |
19 ifndef HAS_SYSTEM_ASPRINTF |
| 20 OBJS += snprintf_2.2/snprintf.o |
20 SOURCES += snprintf_2.2/snprintf.c |
| 21 else |
21 else |
| 22 DEFINES += -DHAS_SYSTEM_ASPRINTF |
22 DEFINES += -DHAS_SYSTEM_ASPRINTF |
| 23 endif |
23 endif |
| 24 endif |
24 endif |
| 25 |
25 |
| 26 TARGETS=libtu.a |
26 TARGETS=libtu.a |
| 27 TESTERS=tester tester2 tester3 |
27 TESTERS=tester tester2 tester3 |
| 28 |
28 |
| 29 ###################################### |
29 ###################################### |
| 30 |
30 |
| 31 include rules.mk |
31 include $(TOPDIR)/rules.mk |
| 32 |
32 |
| 33 ###################################### |
33 ###################################### |
| 34 |
34 |
| 35 testers: $(TESTERS) |
35 testers: $(TESTERS) |
| 36 |
36 |