Pokemon-Distribution-ROM/Makefile
2023-09-10 14:43:56 -04:00

19 lines
453 B
Makefile

# CC = /opt/gbdk/bin/lcc -Wa-l -Wl-m -Wl-j
CC = ~/gbdk-2020/build/gbdk/bin/lcc -Wa-l -Wl-m -Wl-j
BINS = comm.gb
all: $(BINS)
compile.bat: Makefile
@echo "REM Automatically generated from Makefile" > compile.bat
@make -sn | sed y/\\//\\\\/ | sed s/mkdir\ -p\/mkdir\/ | grep -v make >> compile.bat
# Compile and link single file in one pass
%.gb: %.c
$(CC) -o $@ $<
clean:
rm -f *.o *.lst *.map *.gb *~ *.rel *.cdb *.ihx *.lnk *.sym *.asm *.noi