From 56c617e3cb0176b09e7f733d17f2b6b25f5efab4 Mon Sep 17 00:00:00 2001 From: Astrid Smith Date: Fri, 24 Jun 2011 15:17:31 -0700 Subject: More makefile updates --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cd5d3a1..58de418 100644 --- a/Makefile +++ b/Makefile @@ -27,18 +27,20 @@ NATIVE_OBJ=packager # flags for the tigcc cross-compiler TIGCCFLAGS_DEBUG=--debug -WA,-lz680k.listing -TIGCCFLAGS=-Wall +TIGCCFLAGS=-Wall -Os -ffunction-sections -fdata-sections --optimize-code --cut-ranges --reorder-sections --merge-constants --remove-unused -Wall -Wextra -Wwrite-strings -WA,-d # flags for the native C compiler CFLAGS=-Wall -ltifiles -.PHONY: clean +.PHONY: clean debug all: $(OBJ) $(NATIVE_OBJ) clean: rm -f $(S_FILES) $(O_FILES) $(M4_ASM_OUTPUT) $(MADE_FILES) $(MADE_BINS) $(OBJ) $(OBJ_DEBUG) $(NATIVE_OBJ) +debug: $(OBJ_DEBUG) + $(OBJ): $(ASM_FILES) $(M4_ASM_OUTPUT) $(C_FILES) $(MADE_FILES) $(C_HEADERS) tigcc $(TIGCCFLAGS) $(ASM) $(C_FILES) -o $(OBJ) -- cgit v1.2.3