Sat, 22 Apr 2000 17:34:20 +0200
trunk: changeset 11
Portability fixes
## ## libtu Makefile ## # System-specific configuration is in system.mk include system.mk ###################################### INCLUDES += -I./include OBJS= misc.o output.o util.o optparser.o parser.o tokenizer.o LIBDIR=$(PREFIX)/lib INCDIR=$(PREFIX)/include/libtu TARGETS=libtu.a TESTERS=tester tester2 tester3 ###################################### include rules.mk ###################################### testers: $(TESTERS) libtu.a: $(OBJS) $(AR) $(AR_FLAGS) $@ $+ tester: tester.c libtu.a $(CC) $(CC_FLAGS) $< -L. -ltu -lm -o $@ tester2: tester2.c libtu.a $(CC) $(CC_FLAGS) $< -L. -ltu -lm -o $@ tester3: tester3.c libtu.a $(CC) $(CC_FLAGS) $< -L. -ltu -lm -o $@ _install: $(INSTALL) -d $(LIBDIR) $(INSTALL) -d $(INCDIR) $(INSTALL) -m $(DATA_MODE) libtu.a $(LIBDIR) for i in include/libtu/*.h; do \ $(INSTALL) -m $(DATA_MODE) $$i $(INCDIR); \ done