EXEC=ecoPCR ecofind ecoisundertaxon PCR_SRC= ecopcr.c PCR_OBJ= $(patsubst %.c,%.o,$(PCR_SRC)) FIND_SRC= ecofind.c FIND_OBJ= $(patsubst %.c,%.o,$(FIND_SRC)) IUT_SRC= ecoisundertaxon.c IUT_OBJ= $(patsubst %.c,%.o,$(IUT_SRC)) SRCS= $(PCR_SRC) $(FIND_SRC) $(IUT_SRC) LIB= -lecoPCR -lapat -lz -lm LIBFILE= libapat/libapat.a \ libecoPCR/libecoPCR.a include global.mk all: $(EXEC) ######## # # ecoPCR compilation # ######## # executable compilation and link ecoPCR: $(PCR_OBJ) $(LIBFILE) $(CC) $(LDFLAGS) -o $@ $< $(LIBPATH) $(LIB) ######## # # ecofind compilation # ######## # executable compilation and link ecofind: $(FIND_OBJ) $(LIBFILE) $(CC) $(LDFLAGS) -o $@ $< $(LIBPATH) $(LIB) ######## # # IsUnderTaxon compilation # ######## # executable compilation and link ecoisundertaxon: $(IUT_OBJ) $(LIBFILE) $(CC) $(LDFLAGS) -o $@ $< $(LIBPATH) $(LIB) ######## # # library compilation # ######## libapat/libapat.a: $(MAKE) -C libapat libecoPCR/libecoPCR.a: $(MAKE) -C libecoPCR ######## # # project management # ######## clean: rm -f *.o rm -f $(EXEC) $(MAKE) -C libapat clean $(MAKE) -C libecoPCR clean