summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2006-08-28 20:07:22 +0000
committerIan C <ianc@noddybox.co.uk>2006-08-28 20:07:22 +0000
commitb5d825c2c7e133c3fe07d9c12895f24f4c714721 (patch)
treedc6353f075ae6446da081b43a77778558ddc5c9f /Makefile
parentf1de5570a9b7a98c61509f70259f5625acae674e (diff)
Initial GEMMA files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 27 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 3d861e0..160355c 100644
--- a/Makefile
+++ b/Makefile
@@ -18,9 +18,14 @@
#
# -------------------------------------------------------------------------
#
-# $Id: Makefile,v 1.9 2006-08-28 19:14:59 ianc Exp $
+# $Id: Makefile,v 1.10 2006-08-28 20:07:22 ianc Exp $
#
+#
+# CONFIGUATION
+# ============
+#
+
# This CFLAGS assumes that gcc is being used.
# Simply comment out if not, and replace as needed.
# Other CFLAGS lines *are* required.
@@ -33,9 +38,13 @@ CFLAGS = -g -Wall -Werror -pedantic -ansi -O2 -finline-functions
# test - Tests built from source using tpasm.
#
TARGETS = emma
-#TARGETS += gemma
+TARGETS += gemma
TARGETS += tests
+# If you're building GEMMA, you need this.
+#
+CFLAGS += `pkg-config --cflags gtk+-2.0`
+
# Remove this to disable the disassembler (saving some memory)
#
CFLAGS += -DENABLE_DISASSEM
@@ -46,11 +55,21 @@ CFLAGS += -DENABLE_READLINE
LIBS += -lreadline
+#
+# END OF CONFIGUATION
+# ===================
+#
+
+
SOURCE = z80.c \
z80_decode.c \
z80_dis.c \
expr.c \
- emma.c
+ emma.c \
+ main.c \
+ support.c \
+ callbacks.c \
+ interface.c
BASE_O = z80.o \
z80_decode.o \
@@ -59,7 +78,10 @@ BASE_O = z80.o \
EMMA_O = emma.o
-GEMMA_O = gemma.o
+GEMMA_O = main.o \
+ support.o \
+ callbacks.o \
+ interface.o
all: $(TARGETS)
@@ -67,8 +89,7 @@ emma: $(BASE_O) $(EMMA_O)
cc -o emma $(BASE_O) $(EMMA_O) $(LIBS)
gemma: $(BASE_O) $(GEMMA_O)
- cc `pkg-config --cflags gtk+-2.0` -o gemma $(GBASE_O) $(GEMMA_O) \
- `pkg-config --libs gtk+-2.0`
+ cc -o gemma $(GBASE_O) $(GEMMA_O) `pkg-config --libs gtk+-2.0`
tests: emucpm.hex zexdoc.hex zexall.hex