modified: nfig1.py
[GalaxyCodeBases.git] / c_cpp / coverages / Makefile
blob7295875257c72fda3fb7f765fa6e10fae76fccfe
1 CC = gcc
2 CFLAGS = -Wall -pipe -march=core2 -mtune=generic
3 LDFLAGS = -lz -lm -lbam
4 OPT = -O3
6 OBJDIR = ./objects/
8 MAKEARG = $(CFLAGS) $(OPT)
10 cobjects =
11 c99objects = ./objects/chrtable.o
12 mainobjects = ./objects/constator.o
13 objects = $(cobjects) $(c99objects)
14 exefiles = constator
16 all: $(objects) $(exefiles)
18 constator: $(objects) $(mainobjects)
19 $(CC) $(CFLAGS) $(OPT) $(LDFLAGS) -o constator $(objects) ./objects/constator.o
21 $(cobjects): $(OBJDIR)%.o: %.c tmpdir
22 $(CC) $(MAKEARG) -c $< -o $@
24 $(c99objects) $(mainobjects): $(OBJDIR)%.o: %.c tmpdir
25 $(CC) -std=gnu99 $(MAKEARG) -c $< -o $@
27 debug: override MAKEARG := $(CFLAGS) -O -D DEBUGa -g
28 debug: all
30 tmpdir:
31 -mkdir ./objects
33 test: override MAKEARG := $(CFLAGS) -O -D DEBUGa -g
34 test: constator
35 valgrind --leak-check=yes ./constator t.bam
37 .PHONY : clean
38 clean:
39 -rm $(exefiles) $(mainobjects) $(objects)
40 @mkdir -p $(OBJDIR)