From 44ccb27549ffcf78f559cfa4fb252a45f94b310b Mon Sep 17 00:00:00 2001 From: Oliver Schmidt Date: Tue, 4 Mar 2014 21:45:55 +0100 Subject: [PATCH] Changed Makefile.inc handling. It seems more appropriate to trigger the inclusion of Makefile.inc via $TARGET (instead of $SRCDIR). This is btw. more consistent with extzp.s inclusion which is triggered via $TARGET too. --- libsrc/Makefile | 10 ++++++---- libsrc/atari/targetutil/Makefile.inc | 4 ---- src/cl65/main.c | 2 +- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/libsrc/Makefile b/libsrc/Makefile index 99da96f1e..19fb5ac3f 100644 --- a/libsrc/Makefile +++ b/libsrc/Makefile @@ -99,10 +99,12 @@ EXTZP = cbm510 \ MKINC = $(GEOS) \ atari \ + atarixl \ nes -TARGETUTIL = apple2 \ - atari \ +TARGETUTIL = apple2 \ + apple2enh \ + atari \ geos-apple GEOSDIRS = common \ @@ -173,11 +175,11 @@ ifeq ($(TARGET),$(filter $(TARGET),$(EXTZP))) ZPOBJ += ../wrk/$(TARGET)/extzp.o endif -ifeq ($(SRCDIR),$(filter $(SRCDIR),$(MKINC))) +ifeq ($(TARGET),$(filter $(TARGET),$(MKINC))) include $(SRCDIR)/Makefile.inc endif -ifeq ($(SRCDIR),$(filter $(SRCDIR),$(TARGETUTIL))) +ifeq ($(TARGET),$(filter $(TARGET),$(TARGETUTIL))) include $(SRCDIR)/targetutil/Makefile.inc endif diff --git a/libsrc/atari/targetutil/Makefile.inc b/libsrc/atari/targetutil/Makefile.inc index fc91f96a9..01b5e7507 100644 --- a/libsrc/atari/targetutil/Makefile.inc +++ b/libsrc/atari/targetutil/Makefile.inc @@ -1,5 +1,3 @@ -ifeq ($(TARGET),atari) - DEPS += ../wrk/$(TARGET)/w2cas.d ../wrk/$(TARGET)/w2cas.o: $(SRCDIR)/targetutil/w2cas.c | ../wrk/$(TARGET) @@ -9,5 +7,3 @@ DEPS += ../wrk/$(TARGET)/w2cas.d $(LD65) -o $@ -t $(TARGET) $^ $(TARGET): ../targetutil/w2cas.com - -endif diff --git a/src/cl65/main.c b/src/cl65/main.c index 0c460eec9..7c8149660 100644 --- a/src/cl65/main.c +++ b/src/cl65/main.c @@ -51,7 +51,7 @@ #include #include #include -#ifdef HAVE_SPAWN +#if defined(HAVE_SPAWN) # include #endif -- 2.39.5