32bit (#2)
Reviewed-on: #2 Co-authored-by: Byron Lathi <byron@byronlathi.com> Co-committed-by: Byron Lathi <byron@byronlathi.com>
This commit was merged in pull request #2.
This commit is contained in:
29
sim/asm_source/Makefile
Normal file
29
sim/asm_source/Makefile
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
|
||||
# work in progress
|
||||
.SUFFIXES:
|
||||
|
||||
|
||||
PROGRAMS=jsr_test lda_test
|
||||
|
||||
SRCS=$(wildcard *.s)
|
||||
OBJS=$(SRCS:.s=.o)
|
||||
|
||||
CA65=$(CC65_BIN)/ca65
|
||||
LD65=$(CC65_BIN)/ld65
|
||||
|
||||
CA_ARGS=--cpu 65c032
|
||||
|
||||
all: $(PROGRAMS)
|
||||
|
||||
$(PROGRAMS): $(PROGRAM=$(.TARGET))
|
||||
|
||||
%.o: %.s
|
||||
$(CA65) $(CA_ARGS) $^ -o $@ -l $@.lst
|
||||
|
||||
$(PROGRAMS): $(OBJS)
|
||||
$(LD65) -o $@ -C memory.cfg vectors.o $@.o
|
||||
|
||||
clean:
|
||||
rm -rf $(PROGRAMS) $(OBJS)
|
||||
rm -rf *.o *.lst
|
||||
Reference in New Issue
Block a user