summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index 8deb3e5..9fc766e 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -21,6 +21,9 @@ TARGET=czx81
# ncursesw
CURSES=-lncurses
+# For debug build
+#CFLAGS+=-g
+
OBJS= czx81.o \
z80.o \
z80_decode.o \
@@ -29,12 +32,12 @@ OBJS= czx81.o \
zx81rom.o
$(TARGET): $(OBJS)
- $(CC) -o $(TARGET) $(OBJS) $(CURSES)
+ $(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(CURSES)
clean:
rm -f $(TARGET) $(OBJS) core
-czx81.o: czx81.c wide_curses.h
+czx81.o: czx81.c wide_curses.h z80.h z80_config.h zx81rom.h
stream.o: stream.c stream.h
z80.o: z80.c z80.h z80_config.h z80_private.h stream.h
z80_decode.o: z80_decode.c z80.h z80_config.h z80_private.h