Commit | Line | Data |
---|---|---|
1 | CFLAGS += -Wall -ggdb | |
2 | ifdef CONFIG_FILE | |
3 | CFLAGS += -DCONFIG_FILE="\"$(CONFIG_FILE)\"" | |
4 | endif | |
5 | CXXFLAGS += $(CFLAGS) | |
6 | ||
7 | OBJS = Main.o Ea.o OpAny.o OpArith.o OpBranch.o OpLogic.o OpMove.o Disa/Disa.o | |
8 | ||
9 | all: Cyclone.s | |
10 | ||
11 | Cyclone.s: cyclone_gen | |
12 | ./$< | |
13 | ||
14 | cyclone_gen: $(OBJS) | |
15 | $(CXX) -o $@ $^ $(LDFLAGS) | |
16 | ||
17 | clean: | |
18 | $(RM) $(OBJS) cyclone_gen Cyclone.s | |
19 | ||
20 | $(OBJS): app.h config.h Cyclone.h | |
21 | ifdef CONFIG_FILE | |
22 | $(OBJS): $(CONFIG_FILE) | |
23 | endif |