Skip to content

Commit

Permalink
add a Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
MPIBR-tushevg committed Oct 13, 2016
1 parent f0d4b1f commit 49fd900
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 49fd900

Please sign in to comment.