X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=assembler%2FMakefile;h=6bc332195dfd9bbd2c0cafced8177c3ba7f34192;hb=e21b92e66ad6c143da489331d4d56abfa2092160;hp=c10acf510cabe94ba04dd70dc6182c125af6e537;hpb=debe2f99d121c872db51039b824eab67cddf58ac;p=b43-tools.git diff --git a/assembler/Makefile b/assembler/Makefile index c10acf5..6bc3321 100644 --- a/assembler/Makefile +++ b/assembler/Makefile @@ -18,16 +18,19 @@ QUIET_SPARSE = @/bin/true endif PREFIX ?= /usr/local -CFLAGS ?= -O2 -fomit-frame-pointer -D_BSD_SOURCE -D_GNU_SOURCE -CFLAGS += -std=c99 -Wall -D_BSD_SOURCE -D_GNU_SOURCE -SPARSEFLAGS = $(CFLAGS) +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 \ + -D__builtin_stpcpy=stpcpy LDFLAGS += -lfl BIN = b43-asm.bin SRCS = parser.c scanner.c main.c initvals.c util.c args.c # YACC related CFLAGS -CFLAGS += -DYYSTYPE="void *" -DYYERROR_VERBOSE -DYYDEBUG -Wno-unused +CFLAGS += -DYYSTYPE="void *" -DYYERROR_VERBOSE -DYYDEBUG -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -Wno-unused .SUFFIXES: .PHONY: all install clean distclean @@ -39,7 +42,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))