projects
/
b43-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
asm/dasm: Improve cflags
[b43-tools.git]
/
disassembler
/
Makefile
diff --git
a/disassembler/Makefile
b/disassembler/Makefile
index 8c0554dd4cccd8b8b4a4559176f4d79f02858444..fe59ece3be6c80572ab659e2e93fa926871a9a19 100644
(file)
--- a/
disassembler/Makefile
+++ b/
disassembler/Makefile
@@
-14,8
+14,10
@@
QUIET_SPARSE = @/bin/true
endif
PREFIX ?= /usr/local
endif
PREFIX ?= /usr/local
-CFLAGS ?= -O2 -fomit-frame-pointer
-CFLAGS += -std=gnu99 -Wall -D_BSD_SOURCE -D_GNU_SOURCE
+CFLAGS ?= -O2 -fomit-frame-pointer -pipe
+CFLAGS += -std=gnu99 -D_GNU_SOURCE \
+ -Wall -Wextra -Wformat=2 -Wundef -Wno-unused-parameter \
+ -Wshadow -Wpointer-arith
SPARSEFLAGS = $(CFLAGS) -D__transparent_union__=__unused__ -D_STRING_ARCH_unaligned=1
LDFLAGS ?=
SPARSEFLAGS = $(CFLAGS) -D__transparent_union__=__unused__ -D_STRING_ARCH_unaligned=1
LDFLAGS ?=
@@
-32,7
+34,7
@@
OBJS = $(sort $(patsubst %.c,obj/%.o,$(1)))
# Generate dependencies
$(call DEPS,$(SRCS)): dep/%.d: %.c
@mkdir -p $(dir $@)
# Generate dependencies
$(call DEPS,$(SRCS)): dep/%.d: %.c
@mkdir -p $(dir $@)
- $(QUIET_DEPEND) -o $@.tmp -MM -M
G -M
T "$@ $(patsubst dep/%.d,obj/%.o,$@)" $(CFLAGS) $< && mv -f $@.tmp $@
+ $(QUIET_DEPEND) -o $@.tmp -MM -MT "$@ $(patsubst dep/%.d,obj/%.o,$@)" $(CFLAGS) $< && mv -f $@.tmp $@
-include $(call DEPS,$(SRCS))
-include $(call DEPS,$(SRCS))