aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2016-03-07 15:00:21 +0000
committerIan C <ianc@noddybox.co.uk>2016-03-07 15:00:21 +0000
commit77e8708934c5c792b1435fa11dfe3c0a6f636a8c (patch)
tree8c68ecddaf2c2c0730ba310b8d1b9e0f1bd16132 /src/Makefile
parent6e9c9c9205d6eec1ff1cfb3fa407c6714854145a (diff)
Updated README and copied latest version in.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile89
1 files changed, 89 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..d862ea0
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,89 @@
+# casm - Simple, portable assembler
+#
+# Copyright (C) 2003-2015 Ian Cowburn (ianc@noddybox.demon.co.uk)
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# -------------------------------------------------------------------------
+#
+# Makefile
+#
+
+CFLAGS += -g
+
+TARGET = casm
+
+SOURCE = casm.c \
+ expr.c \
+ label.c \
+ macro.c \
+ parse.c \
+ state.c \
+ codepage.c \
+ util.c \
+ output.c \
+ varchar.c \
+ stack.c \
+ listing.c \
+ alias.c \
+ 6502.c \
+ z80.c
+
+OBJECTS = casm.o \
+ expr.o \
+ label.o \
+ macro.o \
+ parse.o \
+ state.o \
+ codepage.o \
+ util.o \
+ output.o \
+ varchar.o \
+ stack.o \
+ listing.o \
+ alias.o \
+ 6502.o \
+ z80.o
+
+$(TARGET): $(OBJECTS)
+ $(CC) $(CLAGS) -o $(TARGET) $(OBJECTS)
+
+clean:
+ rm -f $(TARGET) $(TARGET).exe $(OBJECTS) core *.core
+
+6502.o: 6502.c global.h basetype.h util.h state.h expr.h label.h parse.h \
+ cmd.h codepage.h 6502.h
+alias.o: alias.c global.h basetype.h util.h state.h alias.h
+casm.o: casm.c global.h basetype.h util.h state.h expr.h label.h macro.h \
+ cmd.h parse.h codepage.h output.h stack.h listing.h alias.h z80.h 6502.h
+codepage.o: codepage.c global.h basetype.h util.h state.h codepage.h \
+ parse.h cmd.h
+expr.o: expr.c global.h basetype.h util.h state.h expr.h label.h
+label.o: label.c global.h basetype.h util.h state.h codepage.h parse.h \
+ cmd.h stack.h label.h
+listing.o: listing.c global.h basetype.h util.h state.h label.h macro.h \
+ cmd.h parse.h expr.h varchar.h listing.h
+macro.o: macro.c global.h basetype.h util.h state.h codepage.h parse.h \
+ cmd.h varchar.h macro.h
+output.o: output.c global.h basetype.h util.h state.h output.h parse.h \
+ cmd.h
+parse.o: parse.c global.h basetype.h util.h state.h codepage.h parse.h \
+ cmd.h
+stack.o: stack.c global.h basetype.h util.h state.h stack.h
+state.o: state.c global.h basetype.h util.h state.h expr.h
+util.o: util.c global.h basetype.h util.h state.h
+varchar.o: varchar.c global.h basetype.h util.h state.h codepage.h \
+ parse.h cmd.h varchar.h
+z80.o: z80.c global.h basetype.h util.h state.h expr.h label.h parse.h \
+ cmd.h codepage.h varchar.h z80.h