forked from bjorn-nah/square_fall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (23 loc) · 857 Bytes
/
Makefile
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
28
29
30
31
32
#
# Simple Makefile that compiles all .c and .s files in the same folder
#
# If you move this project you can change the directory
# to match your GBDK root directory (ex: GBDK_HOME = "C:/GBDK/"
GBDK_HOME = "C:/dev/gameboy/gbdk"
LCC = $(GBDK_HOME)bin/lcc
# You can uncomment the line below to turn on debug output
# LCC = $(LCC) -debug
# You can set the name of the .gb ROM file here
PROJECTNAME = Square_fall
BINS = $(PROJECTNAME).gb
CSOURCES := $(wildcard *.c)
ASMSOURCES := $(wildcard *.s)
all: $(BINS)
make.bat: Makefile
@echo "REM Automatically generated from Makefile" > make.bat
@make -sn | sed y/\\//\\\\/ | grep -v make >> make.bat
# Compile and link all source files in a single call to LCC
$(BINS): $(CSOURCES) $(ASMSOURCES)
$(LCC) -o $@ $(CSOURCES) $(ASMSOURCES)
clean:
del *.o *.lst *.map *.ihx *.sym *.cdb *.adb *.asm