-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (19 loc) · 723 Bytes
/
Makefile
File metadata and controls
28 lines (19 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ifndef GBDK_HOME
GBDK_HOME = ../gbdk/
endif
LCC = $(GBDK_HOME)bin/lcc -Wa-l -Wl-m -Wl-j
BINS = print.gb
# GBDK_DEBUG = ON
ifdef GBDK_DEBUG
LCCFLAGS += -debug -v
endif
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: main.c printer.c pattern.c
$(LCC) $(LCCFLAGS) -o $@ $^
rgbfix --color-compatible --fix-spec lhg --non-japanese --mbc-type 0 --rom-version 2 --pad-value 0xFF --ram-size 0 --game-id "MUH" --title "PRINT" --overwrite $(BINS)
clean:
rm -f *.o *.lst *.map *.gb *~ *.rel *.cdb *.ihx *.lnk *.sym *.asm *.noi *.rst