Released version 3-2014052800
[notion.git] / libtu / Makefile
blob5b26fcd6c013ed3df8f436f2ec73fa18bfff5da5
1 ##
2 ## Tu Makefile
3 ##
5 # System-specific configuration is in system.mk
6 ifeq ($(MAKELEVEL),0)
7 TOPDIR=.
8 else
9 TOPDIR=..
10 endif
12 # System-specific configuration
13 include $(TOPDIR)/build/system-inc.mk
15 ######################################
17 #INCLUDES += $(LIBTU_INCLUDES) $(LUA_INCLUDES)
19 CFLAGS += $(C98_SOURCE) $(POSIX_SOURCE) $(WARN)
21 SOURCES=iterable.c map.c misc.c obj.c objlist.c optparser.c output.c parser.c prefix.c ptrlist.c rb.c setparam.c stringstore.c tokenizer.c util.c errorlog.c
23 HEADERS=debug.h errorlog.h locale.h minmax.h obj.h objp.h output.h pointer.h private.h rb.h stringstore.h types.h dlist.h iterable.h map.h misc.h objlist.h optparser.h parser.h prefix.h ptrlist.h setparam.h tokenizer.h util.h
25 TARGETS=libtu.a
27 ######################################
29 include $(TOPDIR)/build/rules.mk
31 ######################################
33 libtu.a: $(OBJS)
34 $(AR) $(ARFLAGS) $@ $+
35 $(RANLIB) $@
37 install:
38 $(INSTALLDIR) $(DESTDIR)$(LIBDIR)
39 $(INSTALL) -m $(DATA_MODE) libtu.a $(DESTDIR)$(LIBDIR)
40 $(INSTALLDIR) $(DESTDIR)$(INCDIR)/libtu
41 for h in $(HEADERS); do \
42 $(INSTALL) -m $(DATA_MODE) $$h $(DESTDIR)$(INCDIR)/libtu; \
43 done