Makefile 826 Bytes
Newer Older
1 2


3 4 5 6 7 8 9 10 11 12
EXEC=sumatra

SUMATRA_SRC= sumatra.c \
			 mtcompare_sumatra.c
			              
SUMATRA_OBJ= $(patsubst %.c,%.o,$(SUMATRA_SRC))


SRCS= $(SUMATRA_SRC)

13
LIB= -lfasta -llcs -lfile -lutils -lz -lm -lpthread
14 15 16

include ./global.mk

17
all: $(EXEC) install
18 19 20 21 22 23 24 25 26 27 28


########
#
# sumatra compilation
#
########

# executable compilation and link

sumatra: $(SUMATRA_OBJ) $(LIBFASTA) $(LIBLCS) $(LIBFILE) $(LIBUTILS)
29
	$(CC) $(LIBFASTAPATH) $(LIBLCSPATH) $(LIBFILEPATH) $(LIBUTILSPATH) $(LDFLAGS) -o $@  $(SUMATRA_OBJ)  $(LIB)
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
	
########
#
# project management
#
########

clean:
	rm -f *.o	
	rm -f *.P
	rm -f $(EXEC)
	$(MAKE) -C ./sumalibs/libfasta clean
	$(MAKE) -C ./sumalibs/liblcs clean
	$(MAKE) -C ./sumalibs/libfile clean
	$(MAKE) -C ./sumalibs/libutils clean

46 47 48
portclean: clean
	-rm -f $(BINDIR)/$(EXEC)

49 50
install:
	cp $(EXEC) $(BINDIR)