diff options
| author | Astrid Smith | 2011-06-24 15:17:31 -0700 |
|---|---|---|
| committer | Astrid Smith | 2011-06-24 15:17:31 -0700 |
| commit | 56c617e3cb0176b09e7f733d17f2b6b25f5efab4 (patch) | |
| tree | eb4b23104d973ee42831cf9f5ab776885daddce0 /Makefile | |
| parent | 5b2b037bc230953d9280a013c69d3d32af1d7152 (diff) | |
More makefile updates
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) |
