X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=assembler%2FMakefile;h=76c4852e9275b37f3678d826692672100ab60fec;hb=1a43ed005f3ffe10b0ca3d6f2975870c8d505b92;hp=aaaf7b75e45c26aeb7d83dc5cc3c962e0a3583f9;hpb=74d3a3ff50e1dbf14732fb63f2c5ede7fe551b8a;p=b43-tools.git diff --git a/assembler/Makefile b/assembler/Makefile index aaaf7b7..76c4852 100644 --- a/assembler/Makefile +++ b/assembler/Makefile @@ -18,8 +18,10 @@ 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 +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 @@ -68,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: