fix compatibility with ancient gas
[cyclone68000.git] / Makefile
index 4849d98..98a578a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,10 @@
 CFLAGS += -Wall -ggdb
+ifdef CONFIG_FILE
+CFLAGS += -DCONFIG_FILE="\"$(CONFIG_FILE)\""
+endif
+ifdef HAVE_ARMv6
+CFLAGS += -DHAVE_ARMv6=$(HAVE_ARMv6)
+endif
 CXXFLAGS += $(CFLAGS)
 
 OBJS = Main.o Ea.o OpAny.o OpArith.o OpBranch.o OpLogic.o OpMove.o Disa/Disa.o
@@ -13,3 +19,8 @@ cyclone_gen: $(OBJS)
 
 clean:
        $(RM) $(OBJS) cyclone_gen Cyclone.s
+
+$(OBJS): app.h config.h Cyclone.h
+ifdef CONFIG_FILE
+$(OBJS): $(CONFIG_FILE)
+endif