Makefile

changeset 60
a4033700e35c
parent 58
789df543d0c3
child 65
58e382ae97cd
equal deleted inserted replaced
59:d8ecbeda7683 60:a4033700e35c
9 ###################################### 9 ######################################
10 10
11 INCLUDES += -I./include 11 INCLUDES += -I./include
12 CFLAGS += $(C89_SOURCE) $(POSIX_SOURCE) 12 CFLAGS += $(C89_SOURCE) $(POSIX_SOURCE)
13 13
14 SOURCES=misc.c output.c util.c optparser.c parser.c tokenizer.c map.c 14 SOURCES=misc.c output.c util.c optparser.c parser.c tokenizer.c \
15 map.c obj.c objlist.c errorlog.c symlist.c
15 16
16 ifdef LIBTU_NO_ERRMSG 17 ifdef LIBTU_NO_ERRMSG
17 DEFINES += -DLIBTU_NO_ERRMSG 18 DEFINES += -DLIBTU_NO_ERRMSG
18 else 19 else
19 ifndef HAS_SYSTEM_ASPRINTF 20 ifndef HAS_SYSTEM_ASPRINTF
23 endif 24 endif
24 endif 25 endif
25 26
26 TARGETS=libtu.a 27 TARGETS=libtu.a
27 TESTERS=tester tester2 tester3 28 TESTERS=tester tester2 tester3
28 HEADERS=dlist.h misc.h output.h tokenizer.h util.h \
29 map.h np-conv.h optparser.h parser.h types.h
30 29
31 ###################################### 30 ######################################
32 31
33 include $(TOPDIR)/rules.mk 32 include $(TOPDIR)/rules.mk
34 33
51 50
52 _install: 51 _install:
53 $(INSTALLDIR) $(LIBDIR) 52 $(INSTALLDIR) $(LIBDIR)
54 $(INSTALLDIR) $(INCDIR)/libtu 53 $(INSTALLDIR) $(INCDIR)/libtu
55 $(INSTALL) -m $(DATA_MODE) libtu.a $(LIBDIR) 54 $(INSTALL) -m $(DATA_MODE) libtu.a $(LIBDIR)
56 for i in $(HEADERS); do \ 55 for i in *.h; do \
57 $(INSTALL) -m $(DATA_MODE) $$i $(INCDIR)/libtu; \ 56 $(INSTALL) -m $(DATA_MODE) $$i $(INCDIR)/libtu; \
58 done 57 done

mercurial