58 lines
726 B
Makefile
58 lines
726 B
Makefile
|
EXEC=ecoPrimer
|
||
|
|
||
|
PRIMER_SRC= ecoprimer.c
|
||
|
PRIMER_OBJ= $(patsubst %.c,%.o,$(PRIMER_SRC))
|
||
|
|
||
|
|
||
|
SRCS= $(PRIMER_SRC)
|
||
|
|
||
|
LIB= -lecoPCR -lecoprimer -lz -lm
|
||
|
|
||
|
LIBFILE= libecoPCR/libecoPCR.a \
|
||
|
libecoprimer/libecoprimer.a
|
||
|
|
||
|
|
||
|
include global.mk
|
||
|
|
||
|
all: $(EXEC)
|
||
|
|
||
|
|
||
|
########
|
||
|
#
|
||
|
# ecoPrimer compilation
|
||
|
#
|
||
|
########
|
||
|
|
||
|
# executable compilation and link
|
||
|
|
||
|
ecoPrimer: $(PRIMER_OBJ) $(LIBFILE)
|
||
|
$(CC) $(LDFLAGS) -O5 -m64 -fast -o $@ $< $(LIBPATH) $(LIB)
|
||
|
|
||
|
|
||
|
########
|
||
|
#
|
||
|
# library compilation
|
||
|
#
|
||
|
########
|
||
|
|
||
|
libecoPCR/libecoPCR.a:
|
||
|
$(MAKE) -C libecoPCR
|
||
|
|
||
|
libecoprimer/libecoprimer.a:
|
||
|
$(MAKE) -C libecoprimer
|
||
|
|
||
|
|
||
|
########
|
||
|
#
|
||
|
# project management
|
||
|
#
|
||
|
########
|
||
|
|
||
|
clean:
|
||
|
rm -f *.o
|
||
|
rm -f $(EXEC)
|
||
|
$(MAKE) -C libecoPCR clean
|
||
|
$(MAKE) -C libecoprimer clean
|
||
|
|
||
|
|
||
|
|