--- branches/pure-cfg/src/lib/Makefile.in 2011/02/28 20:56:02 570 +++ branches/pure-cfg/src/lib/Makefile.in 2011/02/28 21:36:12 571 @@ -8,16 +8,25 @@ CPPFLAGS += $(INCLUDE_PATHS) +C_SRCS = main.c diderot.c +C_OBJS = $(addsuffix .o,$(basename $(notdir $(C_SRCS)))) + .PHONY: build local-install \ clean distclean devclean -build: diderot.o +build: diderot-lib.o + +diderot-lib.o: $(C_OBJS) + $(LD) -r -o diderot-lib.o $(C_OBJS) + +main.o: main.c ../include/Diderot/diderot.h + $(CC) -c $(CFLAGS) $(CPPFLAGS) main.c diderot.o: diderot.c ../include/Diderot/diderot.h $(CC) -c $(CFLAGS) $(CPPFLAGS) diderot.c clean: - rm -f diderot.o + rm -f $(C_OBJS) distclean: clean rm -f Makefile