You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
488 B
Makefile

LD = ../bin/ld65
AS = ../bin/ca65
CC = ../bin/cc65
AL = ../bin/align
DA = /home/astoria/bin/da65
CINCLUDE = -I../include
CFLAGS = -t none --cpu $(CPU)
LFLAGS = -C ../lib/rpc8e.cfg
LLIBS = ../lib/rpc8e.lib
#gonna leave this here for now
CPU = 65c02
IMAGES = downloader.img
.PHONY: all
all: $(IMAGES)
%.s: %.c
$(CC) $(CFLAGS) -Oi $(CINCLUDE) $<
%.o: %.s
$(AS) $(CFLAGS) $<
%.img: %.o conio.o
$(LD) $(LFLAGS) $< conio.o $(LLIBS) -o $@
$(AL) $@
clean:
rm *.o *.s
.SUFFIXES: