fix non working Makefiles
This commit is contained in:
parent
095de4ea52
commit
f60af0301a
4 changed files with 25 additions and 14 deletions
|
@ -153,7 +153,8 @@ endif
|
|||
# --------------------------------------------------------------------------
|
||||
# Lists of subdirectories
|
||||
|
||||
DIRLIST = tutorial
|
||||
# disasm depends on cpp
|
||||
DIRLIST = tutorial geos
|
||||
|
||||
# --------------------------------------------------------------------------
|
||||
# Lists of executables
|
||||
|
|
|
@ -24,11 +24,11 @@ ifdef CC65_HOME
|
|||
LD = $(CC65_HOME)/bin/ld65
|
||||
DA = $(CC65_HOME)/bin/da65
|
||||
else
|
||||
AS := $(if $(wildcard ../../../bin/ca65*),../../../bin/ca65,ca65)
|
||||
CC := $(if $(wildcard ../../../bin/cc65*),../../../bin/cc65,cc65)
|
||||
CL := $(if $(wildcard ../../../bin/cl65*),../../../bin/cl65,cl65)
|
||||
LD := $(if $(wildcard ../../../bin/ld65*),../../../bin/ld65,ld65)
|
||||
DA := $(if $(wildcard ../../../bin/da65*),../../../bin/da65,da65)
|
||||
AS := $(if $(wildcard ../../bin/ca65*),../../bin/ca65,ca65)
|
||||
CC := $(if $(wildcard ../../bin/cc65*),../../bin/cc65,cc65)
|
||||
CL := $(if $(wildcard ../../bin/cl65*),../../bin/cl65,cl65)
|
||||
LD := $(if $(wildcard ../../bin/ld65*),../../bin/ld65,ld65)
|
||||
DA := $(if $(wildcard ../../bin/da65*),../../bin/da65,da65)
|
||||
endif
|
||||
|
||||
CPP = cpp
|
||||
|
@ -39,7 +39,7 @@ DAIS = fixed.dai bank0.dai bank1.dai
|
|||
|
||||
.SUFFIXES: .da .dai .s
|
||||
|
||||
all: image.bin $(ASMS)
|
||||
samples: image.bin $(ASMS)
|
||||
|
||||
$(DAIS): fixed.da
|
||||
|
||||
|
|
|
@ -26,17 +26,17 @@ ifdef CC65_HOME
|
|||
LD = $(CC65_HOME)/bin/ld65
|
||||
SP = $(CC65_HOME)/bin/sp65
|
||||
else
|
||||
AS := $(if $(wildcard ../bin/ca65*),../bin/ca65,ca65)
|
||||
CC := $(if $(wildcard ../bin/cc65*),../bin/cc65,cc65)
|
||||
CL := $(if $(wildcard ../bin/cl65*),../bin/cl65,cl65)
|
||||
LD := $(if $(wildcard ../bin/ld65*),../bin/ld65,ld65)
|
||||
SP := $(if $(wildcard ../bin/sp65*),../bin/sp65,sp65)
|
||||
AS := $(if $(wildcard ../../bin/ca65*),../../bin/ca65,ca65)
|
||||
CC := $(if $(wildcard ../../bin/cc65*),../../bin/cc65,cc65)
|
||||
CL := $(if $(wildcard ../../bin/cl65*),../../bin/cl65,cl65)
|
||||
LD := $(if $(wildcard ../../bin/ld65*),../../bin/ld65,ld65)
|
||||
SP := $(if $(wildcard ../../bin/sp65*),../../bin/sp65,sp65)
|
||||
endif
|
||||
|
||||
# omitted: dialog.c grphstr.c inittab.c menu.c
|
||||
|
||||
# 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
|
||||
|
||||
bitmap.c: logo.pcx
|
||||
|
|
|
@ -29,7 +29,16 @@ else
|
|||
GRC := $(if $(wildcard ../../../bin/grc65*),../../../bin/grc65,grc65)
|
||||
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
|
||||
$(GRC) -s test.s test.grc
|
||||
|
@ -50,3 +59,4 @@ clean:
|
|||
$(RM) test.s test.h
|
||||
$(RM) vlir.s vlir.cvt vlir.c vlir.h
|
||||
$(RM) *.o
|
||||
$(foreach dir,$(DIRLIST),$(SUBDIR_recipe))
|
||||
|
|
Loading…
Add table
Reference in a new issue