diff options
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 29 | 
1 files changed, 26 insertions, 3 deletions
@@ -29,12 +29,29 @@ HDR =\  	libgeome.h\  	common.h +TEST =\ +	test-time.t\ +	test-timezone.t\ +	test-file.t\ +	test-command.t\ +	test-netservice.t + +TEST_OBJ =\ +	test-common.to\ +	$(TEST:.t=.to) + +TEST_HDR =\ +	libgeome.h\ +	test-common.h +  LOBJ = $(OBJ:.o=.lo) -all: libgeome.a libgeome.$(LIBEXT) +all: libgeome.a libgeome.$(LIBEXT) $(TEST)  $(OBJ): $(HDR)  $(LOBJ): $(HDR) +$(TEST): test-common.to libgeome.a +$(TEST_OBJ): $(TEST_HDR)  .c.o:  	$(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) @@ -42,6 +59,12 @@ $(LOBJ): $(HDR)  .c.lo:  	$(CC) -fPIC -c -o $@ $< $(CFLAGS) $(CPPFLAGS) +.c.to: +	$(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS) + +.to.t: +	$(CC) -o $@ $< test-common.to libgeome.a $(CFLAGS) $(CPPFLAGS) -lm +  libgeome.a: $(OBJ)  	@rm -f -- $@  	$(AR) rc $@ $(OBJ) @@ -68,10 +91,10 @@ uninstall:  	-rm -f -- "$(DESTDIR)$(PREFIX)/include/libgeome.h"  clean: -	-rm -f -- *.o *.a *.lo *.su *.so *.so.* *.dll *.dylib +	-rm -f -- *.o *.a *.lo *.su *.so *.so.* *.dll *.dylib *.t *.to  	-rm -f -- *.gch *.gcov *.gcno *.gcda *.$(LIBEXT)  .SUFFIXES: -.SUFFIXES: .lo .o .c +.SUFFIXES: .lo .o .c .t .to  .PHONY: all install uninstall clean  | 
