fix bcd instructions
[cyclone68000.git] / Makefile
... / ...
CommitLineData
1CFLAGS += -Wall -ggdb
2ifdef CONFIG_FILE
3CFLAGS += -DCONFIG_FILE="\"$(CONFIG_FILE)\""
4endif
5ifdef HAVE_ARMv6
6CFLAGS += -DHAVE_ARMv6=$(HAVE_ARMv6)
7endif
8CXXFLAGS += $(CFLAGS)
9
10OBJS = Main.o Ea.o OpAny.o OpArith.o OpBranch.o OpLogic.o OpMove.o Disa/Disa.o
11
12all: Cyclone.s
13
14Cyclone.s: cyclone_gen
15 ./$<
16
17cyclone_gen: $(OBJS)
18 $(CXX) -o $@ $^ $(LDFLAGS)
19
20clean:
21 $(RM) $(OBJS) cyclone_gen Cyclone.s
22
23$(OBJS): app.h config.h Cyclone.h
24ifdef CONFIG_FILE
25$(OBJS): $(CONFIG_FILE)
26endif