mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 20:38:08 +11:00
26 lines
444 B
Makefile
26 lines
444 B
Makefile
|
PROGNAME = ps2ctl
|
||
|
AVRDUDEMCU ?= t45
|
||
|
AVRDUDEARGS ?= -c usbtiny -P usb
|
||
|
TARGETS = $(PROGNAME).hex os.sms
|
||
|
ZASM = ../../../tools/zasm.sh
|
||
|
KERNEL = ../../../kernel
|
||
|
|
||
|
# Rules
|
||
|
|
||
|
.PHONY: send all clean
|
||
|
|
||
|
all: $(TARGETS)
|
||
|
@echo Done!
|
||
|
|
||
|
send: $(PROGNAME).hex
|
||
|
avrdude $(AVRDUDEARGS) -p $(AVRDUDEMCU) -U flash:w:$<
|
||
|
|
||
|
$(PROGNAME).hex: $(PROGNAME).asm
|
||
|
avra -o $@ $<
|
||
|
|
||
|
os.sms: glue.asm
|
||
|
$(ZASM) $(KERNEL) < $< > $@
|
||
|
|
||
|
clean:
|
||
|
rm -f $(TARGETS) *.eep.hex *.obj os.bin
|