- Added support for calling subdir Makefiles for the make targets 'samples' and 'clean'.

- Adjusted the 'tutorial' Makefile to actually work as expected.

Note: The 'disasm' and 'geos' Makefiles don't seem to work so they are not called as of now.
This commit is contained in:
Oliver Schmidt
2020-10-03 19:35:23 +02:00
parent b931e65811
commit fd208fdf0b
2 changed files with 20 additions and 7 deletions

View File

@@ -25,16 +25,16 @@ ifdef CC65_HOME
CL = $(CC65_HOME)/bin/cl65
LD = $(CC65_HOME)/bin/ld65
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)
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)
endif
all: hello
samples: hello
hello: hello.c text.s
$(CL) -t $(SYS) -o hello hello.c text.s
clean:
$(RM) hello
@$(DEL) hello 2>$(NULLDEV)