3 LDFLAGS
= -Wl
,-O1
-Wl
,--sort-common
-Wl
,--enable-new-dtags
-Wl
,--hash-style
=both
$(LDLIB
)
6 SRCEXTS
= .c
# .C .cc .cpp .CPP .c++ .cxx .cp
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 \
13 ASMFLAGS
= -S
-fverbose-asm
-g
-masm
=intel
15 SOURCES
= $(foreach d
,$(SRCDIRS
),$(wildcard $(addprefix $(d
)/*,$(SRCEXTS
))))
20 #$(patsubst $.c,%,$(SOURCES))
21 @echo
[@gcc
$(CFLAGS
) $(OLevel
) $(LDFLAGS
)]
22 #@echo [$(SOURCES)] to [$(SOURCES:.c=)].
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