1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-26 08:32:00 +00:00

move program from testcode/assembler to test/asm and remove testcode/assembler

This commit is contained in:
mrdudz 2020-09-29 19:03:42 +02:00
parent eb87c6d373
commit b549e83fb2
4 changed files with 4 additions and 38 deletions

View File

@ -38,7 +38,7 @@ CPUDETECT_REFS := $(wildcard *-cpudetect.ref)
CPUDETECT_CPUS = $(foreach ref,$(CPUDETECT_REFS),$(ref:%-cpudetect.ref=%))
CPUDETECT_BINS = $(foreach cpu,$(CPUDETECT_CPUS),$(WORKDIR)/$(cpu)-cpudetect.bin)
all: $(OPCODE_BINS) $(CPUDETECT_BINS)
all: $(OPCODE_BINS) $(CPUDETECT_BINS) paramcount.o
$(WORKDIR):
$(call MKDIR,$(WORKDIR))
@ -70,5 +70,8 @@ endef # CPUDETECT_template
$(foreach cpu,$(CPUDETECT_CPUS),$(eval $(call CPUDETECT_template,$(cpu))))
paramcount.o: paramcount.s
$(CA65) -o $(WORKDIR)/paramcount.o -l $(WORKDIR)/paramcount.lst paramcount.s
clean:
@$(call RMDIR,$(WORKDIR))

View File

@ -1,37 +0,0 @@
# Just the usual way to find out if we're
# using cmd.exe to execute make rules.
ifneq ($(shell echo),)
CMD_EXE = 1
endif
ifdef CMD_EXE
NULLDEV = nul:
DEL = -del /f
RMDIR = rmdir /s /q
else
NULLDEV = /dev/null
DEL = $(RM)
RMDIR = $(RM) -r
endif
ifdef CC65_HOME
AS = $(CC65_HOME)/bin/ca65
CC = $(CC65_HOME)/bin/cc65
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)
endif
all: paramcount.o
paramcount.o: paramcount.s
$(AS) -o paramcount.o -l paramcount.lst paramcount.s
clean:
$(RM) paramcount.o
$(RM) paramcount.lst