From: John Hodge Date: Sat, 7 May 2011 13:18:32 +0000 (+0800) Subject: Moved call to strip until install (to allow the debug information to be accessible... X-Git-Tag: rel0.10~124 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=15464be3aa0bf616c94c5c949ddfa44a90125382;p=tpg%2Facess2.git Moved call to strip until install (to allow the debug information to be accessible by gdb) --- diff --git a/Kernel/Makefile b/Kernel/Makefile index e4b0436b..c488df7d 100644 --- a/Kernel/Makefile +++ b/Kernel/Makefile @@ -16,8 +16,8 @@ MAKEDEP = $(CC) -M CPPFLAGS += -I./include -I./arch/$(ARCHDIR)/include -D_MODULE_NAME_=\"Kernel\" CPPFLAGS += -DARCH=$(ARCH) -DARCHDIR=$(ARCHDIR) -DKERNEL_VERSION=$(KERNEL_VERSION) -DBUILD_NUM=$(BUILD_NUM) -CFLAGS += -Wall -Werror -fno-stack-protector -fno-builtin -Wstrict-prototypes -g -CFLAGS += -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wuninitialized +CFLAGS += -Wall -Werror -fno-stack-protector -fno-builtin -Wstrict-prototypes -g +CFLAGS += -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wuninitialized ASFLAGS += -D ARCH=\"$(ARCH)\" -D ARCHDIR=\"$(ARCHDIR)\" LDFLAGS += -T arch/$(ARCHDIR)/link.ld -g @@ -54,7 +54,10 @@ clean: @$(RM) $(BIN) ../Acess2.$(ARCH).gz $(BIN).dsm ../Map.$(ARCH).txt LineCounts.$(ARCH).txt $(OBJ) $(DEPFILES) install: $(BIN) - gzip -c $(BIN) > ../Acess2.$(ARCH).gz + cp $(BIN) $(BIN)_ + $(STRIP) $(BIN)_ + gzip -c $(BIN)_ > ../Acess2.$(ARCH).gz + $(RM) $(BIN)_ $(xCP) ../Acess2.$(ARCH).gz $(DISTROOT) apidoc: @@ -67,7 +70,7 @@ $(BIN): $(OBJ) $(MODS) arch/$(ARCHDIR)/link.ld Makefile @wc -l $(SRCFILES) include/*.h > LineCounts.$(ARCH).txt @echo BUILD_NUM = $$(( $(BUILD_NUM) + 1 )) > Makefile.BuildNum.$(ARCH) $(POSTBUILD) - @$(STRIP) $(BIN) +# $(STRIP) $(BIN) %.ao.$(ARCH): %.asm Makefile @echo --- AS -o $@