summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAstrid Smith2011-06-24 15:17:31 -0700
committerAstrid Smith2011-06-24 15:17:31 -0700
commit56c617e3cb0176b09e7f733d17f2b6b25f5efab4 (patch)
treeeb4b23104d973ee42831cf9f5ab776885daddce0 /Makefile
parent5b2b037bc230953d9280a013c69d3d32af1d7152 (diff)
More makefile updates
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
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)