diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..de828b9 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +# define the C compiler to use +CC=gcc + +# define any compile-time flags +CFLAGS=-Wall -g -std=c99 +CLIBS=-lz -lhts + +# define the C source files +SRCS=main.c config.c htsutils.c + +# define the C object files +OBJS=$(SRCS:.c=.o) + +# define the executable file +MAIN=fastqSeqStats + +all: $(MAIN) + +$(MAIN): $(OBJS) +$(CC) $(CFLAGS) $(CLIBS) -o $(MAIN) $(OBJS) + +.c.o: +$(CC) $(CFLAGS) $(CLIBS) -c $< -o $@ + +.PHONY: clean +clean: +rm -f *.o $(MAIN) \ No newline at end of file