Bringing WiFi to the Cidco Mailstation
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 39 lines 697 B view raw
1# pkg_add sdcc 2 3ASZ80 ?= sdasz80 -l 4SDCC ?= sdcc -mz80 5 6CFLAGS += -Wall 7 8UNAME_S := $(shell uname -s) 9 10OBJCOPY ?= objcopy 11ifeq ($(UNAME_S),Darwin) 12OBJCOPY = /opt/homebrew/Cellar/llvm/*/bin/llvm-objcopy 13endif 14 15all: wsloader.bin flashloader.bin 16 17clean: 18 rm -f *.{bin,ihx,lk,lst,map,noi,rel} 19 20# parallel loader 21wsloader.rel: wsloader.asm 22 $(ASZ80) -o $@ $< 23 24wsloader.ihx: wsloader.rel 25 $(SDCC) --no-std-crt0 -o $@ $< 26 27wsloader.bin: wsloader.ihx 28 $(OBJCOPY) -Iihex -Obinary $< $@ 29 hexdump -C $@ 30 31# dataflash loader 32flashloader.rel: flashloader.asm 33 $(ASZ80) -o $@ $< 34 35flashloader.ihx: flashloader.rel 36 $(SDCC) --no-std-crt0 -o $@ $< 37 38flashloader.bin: flashloader.ihx 39 $(OBJCOPY) -Iihex -Obinary $< $@