diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -18,14 +18,14 @@ # # ------------------------------------------------------------------------- # -# $Id: Makefile,v 1.4 2006-08-21 22:14:41 ianc Exp $ +# $Id: Makefile,v 1.5 2006-08-25 23:28:49 ianc Exp $ # # This CFLAGS assumes that gcc is being used. # Simply comment out if not, and replace as needed. # Other CFLAGS lines *are* required. # -CFLAGS = -Wall -Werror -pedantic -ansi -O2 -finline-functions +CFLAGS = -g -Wall -Werror -pedantic -ansi -O2 -finline-functions # Remove this to disable the disassembler (saving some memory) # @@ -46,16 +46,19 @@ OBJECTS = z80.o \ expr.o \ emma.o -all: $(TARGET) emucpm.hex +all: $(TARGET) emucpm.hex test.hex $(TARGET): $(OBJECTS) cc -o $(TARGET) $(OBJECTS) +test.hex: test.z80 + tpasm -P Z80 -o intel test.hex test.z80 + emucpm.hex: emucpm.z80 tpasm -P Z80 -o intel emucpm.hex emucpm.z80 clean: - rm -f $(TARGET) $(OBJECTS) core $(TARGET).exe emucpm.hex + rm -f $(TARGET) $(OBJECTS) core $(TARGET).exe emucpm.hex test.hex depend: makedepend -- $(CFLAGS) -- $(SOURCE) |