mirror of
https://github.com/cc65/cc65.git
synced 2025-08-09 13:25:06 +00:00
fix non working Makefiles
This commit is contained in:
@@ -153,7 +153,8 @@ endif
|
|||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Lists of subdirectories
|
# Lists of subdirectories
|
||||||
|
|
||||||
DIRLIST = tutorial
|
# disasm depends on cpp
|
||||||
|
DIRLIST = tutorial geos
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Lists of executables
|
# Lists of executables
|
||||||
|
@@ -24,11 +24,11 @@ ifdef CC65_HOME
|
|||||||
LD = $(CC65_HOME)/bin/ld65
|
LD = $(CC65_HOME)/bin/ld65
|
||||||
DA = $(CC65_HOME)/bin/da65
|
DA = $(CC65_HOME)/bin/da65
|
||||||
else
|
else
|
||||||
AS := $(if $(wildcard ../../../bin/ca65*),../../../bin/ca65,ca65)
|
AS := $(if $(wildcard ../../bin/ca65*),../../bin/ca65,ca65)
|
||||||
CC := $(if $(wildcard ../../../bin/cc65*),../../../bin/cc65,cc65)
|
CC := $(if $(wildcard ../../bin/cc65*),../../bin/cc65,cc65)
|
||||||
CL := $(if $(wildcard ../../../bin/cl65*),../../../bin/cl65,cl65)
|
CL := $(if $(wildcard ../../bin/cl65*),../../bin/cl65,cl65)
|
||||||
LD := $(if $(wildcard ../../../bin/ld65*),../../../bin/ld65,ld65)
|
LD := $(if $(wildcard ../../bin/ld65*),../../bin/ld65,ld65)
|
||||||
DA := $(if $(wildcard ../../../bin/da65*),../../../bin/da65,da65)
|
DA := $(if $(wildcard ../../bin/da65*),../../bin/da65,da65)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CPP = cpp
|
CPP = cpp
|
||||||
@@ -39,7 +39,7 @@ DAIS = fixed.dai bank0.dai bank1.dai
|
|||||||
|
|
||||||
.SUFFIXES: .da .dai .s
|
.SUFFIXES: .da .dai .s
|
||||||
|
|
||||||
all: image.bin $(ASMS)
|
samples: image.bin $(ASMS)
|
||||||
|
|
||||||
$(DAIS): fixed.da
|
$(DAIS): fixed.da
|
||||||
|
|
||||||
|
@@ -26,17 +26,17 @@ ifdef CC65_HOME
|
|||||||
LD = $(CC65_HOME)/bin/ld65
|
LD = $(CC65_HOME)/bin/ld65
|
||||||
SP = $(CC65_HOME)/bin/sp65
|
SP = $(CC65_HOME)/bin/sp65
|
||||||
else
|
else
|
||||||
AS := $(if $(wildcard ../bin/ca65*),../bin/ca65,ca65)
|
AS := $(if $(wildcard ../../bin/ca65*),../../bin/ca65,ca65)
|
||||||
CC := $(if $(wildcard ../bin/cc65*),../bin/cc65,cc65)
|
CC := $(if $(wildcard ../../bin/cc65*),../../bin/cc65,cc65)
|
||||||
CL := $(if $(wildcard ../bin/cl65*),../bin/cl65,cl65)
|
CL := $(if $(wildcard ../../bin/cl65*),../../bin/cl65,cl65)
|
||||||
LD := $(if $(wildcard ../bin/ld65*),../bin/ld65,ld65)
|
LD := $(if $(wildcard ../../bin/ld65*),../../bin/ld65,ld65)
|
||||||
SP := $(if $(wildcard ../bin/sp65*),../bin/sp65,sp65)
|
SP := $(if $(wildcard ../../bin/sp65*),../../bin/sp65,sp65)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# omitted: dialog.c grphstr.c inittab.c menu.c
|
# omitted: dialog.c grphstr.c inittab.c menu.c
|
||||||
|
|
||||||
# TODO: geosconio.cvt rmvprot.cvt
|
# TODO: geosconio.cvt rmvprot.cvt
|
||||||
all: bitmap-demo.cvt filesel.cvt geosver.cvt getid.cvt hello1.cvt hello2.cvt \
|
samples: bitmap-demo.cvt filesel.cvt geosver.cvt getid.cvt hello1.cvt hello2.cvt \
|
||||||
overlay-demo.cvt vector-demo.cvt yesno.cvt
|
overlay-demo.cvt vector-demo.cvt yesno.cvt
|
||||||
|
|
||||||
bitmap.c: logo.pcx
|
bitmap.c: logo.pcx
|
||||||
|
@@ -29,7 +29,16 @@ else
|
|||||||
GRC := $(if $(wildcard ../../../bin/grc65*),../../../bin/grc65,grc65)
|
GRC := $(if $(wildcard ../../../bin/grc65*),../../../bin/grc65,grc65)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: test.s vlir.cvt
|
DIRLIST = grc
|
||||||
|
|
||||||
|
define SUBDIR_recipe
|
||||||
|
|
||||||
|
@$(MAKE) -C $(dir) --no-print-directory $@
|
||||||
|
|
||||||
|
endef # SUBDIR_recipe
|
||||||
|
|
||||||
|
samples: test.s vlir.cvt
|
||||||
|
$(foreach dir,$(DIRLIST),$(SUBDIR_recipe))
|
||||||
|
|
||||||
test.s: test.grc
|
test.s: test.grc
|
||||||
$(GRC) -s test.s test.grc
|
$(GRC) -s test.s test.grc
|
||||||
@@ -50,3 +59,4 @@ clean:
|
|||||||
$(RM) test.s test.h
|
$(RM) test.s test.h
|
||||||
$(RM) vlir.s vlir.cvt vlir.c vlir.h
|
$(RM) vlir.s vlir.cvt vlir.c vlir.h
|
||||||
$(RM) *.o
|
$(RM) *.o
|
||||||
|
$(foreach dir,$(DIRLIST),$(SUBDIR_recipe))
|
||||||
|
Reference in New Issue
Block a user