10 INCLUDES += -I./include |
10 INCLUDES += -I./include |
11 CFLAGS += $(POSIX_SOURCE) |
11 CFLAGS += $(POSIX_SOURCE) |
12 |
12 |
13 OBJS= misc.o output.o util.o optparser.o parser.o tokenizer.o |
13 OBJS= misc.o output.o util.o optparser.o parser.o tokenizer.o |
14 |
14 |
|
15 ifdef LIBTU_NO_ERRMSG |
|
16 CFLAGS += -DLIBTU_NO_ERRMSG |
|
17 else |
15 ifndef HAS_SYSTEM_ASPRINTF |
18 ifndef HAS_SYSTEM_ASPRINTF |
16 OBJS += ../snprintf_2.2/snprintf.o |
19 OBJS += ../snprintf_2.2/snprintf.o |
17 else |
20 else |
18 CFLAGS += -DHAS_SYSTEM_ASPRINTF |
21 CFLAGS += -DHAS_SYSTEM_ASPRINTF |
|
22 endif |
19 endif |
23 endif |
20 |
24 |
21 LIBDIR=$(PREFIX)/lib |
25 LIBDIR=$(PREFIX)/lib |
22 INCDIR=$(PREFIX)/include/libtu |
26 INCDIR=$(PREFIX)/include/libtu |
23 |
27 |