git-svn-id: https://www.grenoble.prabi.fr/svn/LECASofts/ecoPrimers/trunk@205 60f365c0-8329-0410-b2a4-ec073aeeaa1d
59 lines
721 B
Makefile
59 lines
721 B
Makefile
EXEC=ecoPrimer
|
|
|
|
PRIMER_SRC= ecoprimer.c
|
|
PRIMER_OBJ= $(patsubst %.c,%.o,$(PRIMER_SRC))
|
|
|
|
|
|
SRCS= $(PRIMER_SRC)
|
|
|
|
LIB= -lecoprimer -lecoPCR -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 -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
|
|
|
|
|
|
|