modified: src1/input.c
[GalaxyCodeBases.git] / c_cpp / etc / bamread / Makefile
blob8856c644ab0ba0173c88ef4a6150744cafb698ca
1 LDLIB = -lz
3 LDFLAGS = -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--hash-style=both $(LDLIB)
5 SRCDIRS = .
6 SRCEXTS = .c# .C .cc .cpp .CPP .c++ .cxx .cp
8 OLevel= -O3
9 CFLAGS = -pipe -march=core2 -mtune=generic -std=gnu99 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -pthread -I../../lib/htslib
10 WARNFLAGS = -Wfloat-equal -Wall \
11 #-pedantic
13 ASMFLAGS = -S -fverbose-asm -g -masm=intel
15 SOURCES = $(foreach d,$(SRCDIRS),$(wildcard $(addprefix $(d)/*,$(SRCEXTS))))
17 .PHONY: all clean
19 all: $(SOURCES:.c=)
20 #$(patsubst $.c,%,$(SOURCES))
21 @echo [@gcc $(CFLAGS) $(OLevel) $(LDFLAGS)]
22 #@echo [$(SOURCES)] to [$(SOURCES:.c=)].
24 %: %.c
25 @mkdir -p asm
26 @echo [$(OLevel)]:${<} -\> ${@}
27 gcc $(WARNFLAGS) $(CFLAGS) $(OLevel) $(LDFLAGS) -o $@ $< ../../lib/htslib/libhts.a
28 @gcc $(CFLAGS) $(OLevel) $(LDFLAGS) $(ASMFLAGS) -o ./asm/$@.s $<
29 -as -alhnd -o /dev/null ./asm/$@.s > ./asm/$@.asm
30 #@gcc $(CFLAGS) $(OLevel) $(LDFLAGS) $(ASMFLAGS) -o - $< | as -alhnd > ./asm/$@.asm
31 @rm ./asm/$@.s
33 clean:
34 -rm $(SOURCES:.c=)
35 -rm -frv ./asm