Now compiling in one single library

This commit is contained in:
Celine Mercier
2019-03-27 09:00:48 +01:00
parent 6373bc1c20
commit ed56cb1d6b
11 changed files with 46 additions and 118 deletions

BIN
libfasta/.DS_Store vendored

Binary file not shown.

View File

@ -1,33 +0,0 @@
SOURCES = fasta_header_parser.c \
fasta_seq_writer.c \
fasta_header_handler.c \
header_mem_handler.c \
sequence.c
SRCS=$(SOURCES)
OBJECTS= $(patsubst %.c,%.o,$(SOURCES))
LIBFILE = libfasta.a
RANLIB = ranlib
include ../global.mk
all: $(LIBFILE)
fasta_header_parser.c: fasta_header_parser.l
flex -Pheader_yy -t $< > $@
dic_parser.c: dic_parser.l
lex -Phashtable_yy -t $< > $@
clean:
rm -rf $(OBJECTS) $(LIBFILE)
rm -f *.a
$(LIBFILE): $(OBJECTS)
ar -cr $@ $?
$(RANLIB) $@