X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=disassembler%2FMakefile;h=fe59ece3be6c80572ab659e2e93fa926871a9a19;hb=ce65ccbd3871205689492a0e810c425763e0af9e;hp=8944a21449537d95d5ae53991e2855bad443d737;hpb=d24a5147fd500f6bdc76599d2a4e471b15a73c7f;p=b43-tools.git diff --git a/disassembler/Makefile b/disassembler/Makefile index 8944a21..fe59ece 100644 --- a/disassembler/Makefile +++ b/disassembler/Makefile @@ -14,8 +14,10 @@ QUIET_SPARSE = @/bin/true 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 ?= @@ -32,7 +34,7 @@ OBJS = $(sort $(patsubst %.c,obj/%.o,$(1))) # Generate dependencies $(call DEPS,$(SRCS)): dep/%.d: %.c @mkdir -p $(dir $@) - $(QUIET_DEPEND) -o $@.tmp -MM -MG -MT "$@ $(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)) @@ -48,8 +50,9 @@ $(BIN): $(call OBJS,$(SRCS)) $(QUIET_CC) $(CFLAGS) -o $(BIN) $(call OBJS,$(SRCS)) $(LDFLAGS) install: all - install -o 0 -g 0 -m 755 $(BIN) $(PREFIX)/bin/ - install -o 0 -g 0 -m 755 b43-ivaldump $(PREFIX)/bin/ + install -m 755 $(BIN) $(PREFIX)/bin/ + install -m 755 b43-ivaldump $(PREFIX)/bin/ + install -m 755 brcm80211fwconv $(PREFIX)/bin/ clean: -rm -Rf obj dep *~ *.orig *.rej