mirror of
https://github.com/cc65/cc65.git
synced 2025-01-09 11:30:29 +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,9 +99,11 @@ EXTZP = cbm510 \
|
|||||||
|
|
||||||
MKINC = $(GEOS) \
|
MKINC = $(GEOS) \
|
||||||
atari \
|
atari \
|
||||||
|
atarixl \
|
||||||
nes
|
nes
|
||||||
|
|
||||||
TARGETUTIL = apple2 \
|
TARGETUTIL = apple2 \
|
||||||
|
apple2enh \
|
||||||
atari \
|
atari \
|
||||||
geos-apple
|
geos-apple
|
||||||
|
|
||||||
@ -173,11 +175,11 @@ ifeq ($(TARGET),$(filter $(TARGET),$(EXTZP)))
|
|||||||
ZPOBJ += ../wrk/$(TARGET)/extzp.o
|
ZPOBJ += ../wrk/$(TARGET)/extzp.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(SRCDIR),$(filter $(SRCDIR),$(MKINC)))
|
ifeq ($(TARGET),$(filter $(TARGET),$(MKINC)))
|
||||||
include $(SRCDIR)/Makefile.inc
|
include $(SRCDIR)/Makefile.inc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(SRCDIR),$(filter $(SRCDIR),$(TARGETUTIL)))
|
ifeq ($(TARGET),$(filter $(TARGET),$(TARGETUTIL)))
|
||||||
include $(SRCDIR)/targetutil/Makefile.inc
|
include $(SRCDIR)/targetutil/Makefile.inc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
ifeq ($(TARGET),atari)
|
|
||||||
|
|
||||||
DEPS += ../wrk/$(TARGET)/w2cas.d
|
DEPS += ../wrk/$(TARGET)/w2cas.d
|
||||||
|
|
||||||
../wrk/$(TARGET)/w2cas.o: $(SRCDIR)/targetutil/w2cas.c | ../wrk/$(TARGET)
|
../wrk/$(TARGET)/w2cas.o: $(SRCDIR)/targetutil/w2cas.c | ../wrk/$(TARGET)
|
||||||
@ -9,5 +7,3 @@ DEPS += ../wrk/$(TARGET)/w2cas.d
|
|||||||
$(LD65) -o $@ -t $(TARGET) $^
|
$(LD65) -o $@ -t $(TARGET) $^
|
||||||
|
|
||||||
$(TARGET): ../targetutil/w2cas.com
|
$(TARGET): ../targetutil/w2cas.com
|
||||||
|
|
||||||
endif
|
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#ifdef HAVE_SPAWN
|
#if defined(HAVE_SPAWN)
|
||||||
# include <process.h>
|
# include <process.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user