Makefile

changeset 30
f7c7b419577e
parent 29
a2715cff4288
child 34
828f3afd5c76
equal deleted inserted replaced
29:a2715cff4288 30:f7c7b419577e
19 OBJS += ../snprintf_2.2/snprintf.o 19 OBJS += ../snprintf_2.2/snprintf.o
20 else 20 else
21 DEFINES += -DHAS_SYSTEM_ASPRINTF 21 DEFINES += -DHAS_SYSTEM_ASPRINTF
22 endif 22 endif
23 endif 23 endif
24
25 LIBDIR=$(PREFIX)/lib
26 INCDIR=$(PREFIX)/include/libtu
27 24
28 TARGETS=libtu.a 25 TARGETS=libtu.a
29 TESTERS=tester tester2 tester3 26 TESTERS=tester tester2 tester3
30 27
31 ###################################### 28 ######################################
49 tester3: tester3.c libtu.a 46 tester3: tester3.c libtu.a
50 $(CC) $(CFLAGS) $< -L. -ltu -lm -o $@ 47 $(CC) $(CFLAGS) $< -L. -ltu -lm -o $@
51 48
52 _install: 49 _install:
53 $(INSTALLDIR) $(LIBDIR) 50 $(INSTALLDIR) $(LIBDIR)
54 $(INSTALLDIR) $(INCDIR) 51 $(INSTALLDIR) $(INCDIR)/libtu
55 $(INSTALL) -m $(DATA_MODE) libtu.a $(LIBDIR) 52 $(INSTALL) -m $(DATA_MODE) libtu.a $(LIBDIR)
56 for i in include/libtu/*.h; do \ 53 for i in include/libtu/*.h; do \
57 $(INSTALL) -m $(DATA_MODE) $$i $(INCDIR); \ 54 $(INSTALL) -m $(DATA_MODE) $$i $(INCDIR)/libtu; \
58 done 55 done

mercurial