X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=assembler%2FMakefile;h=76c4852e9275b37f3678d826692672100ab60fec;hb=9f32ca3e0813a9a173636cb24152b3aed72a8859;hp=c10acf510cabe94ba04dd70dc6182c125af6e537;hpb=debe2f99d121c872db51039b824eab67cddf58ac;p=b43-tools.git diff --git a/assembler/Makefile b/assembler/Makefile index c10acf5..76c4852 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)) @@ -67,10 +70,10 @@ $(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 -m 755 $(BIN) $(PREFIX)/bin/ cp b43-asm b43-asm.inst sed -i -e 's/installed=0/installed=1/' b43-asm.inst - install -o 0 -g 0 -m 755 b43-asm.inst $(PREFIX)/bin/b43-asm + install -m 755 b43-asm.inst $(PREFIX)/bin/b43-asm rm -f b43-asm.inst clean: