mirror of
https://github.com/cc65/cc65.git
synced 2025-01-08 20:31:31 +00:00
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.
This commit is contained in:
parent
bbbee1bac5
commit
44ccb27549
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -51,7 +51,7 @@
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#ifdef HAVE_SPAWN
|
||||
#if defined(HAVE_SPAWN)
|
||||
# include <process.h>
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user