-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
executable file
·52 lines (39 loc) · 951 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
HEAP_SIZE = 8388208
STACK_SIZE = 61800
PRODUCT = PlayGB.pdx
SDK = ${PLAYDATE_SDK_PATH}
ifeq ($(SDK),)
SDK = $(shell egrep '^\s*SDKRoot' ~/.Playdate/config | head -n 1 | cut -c9-)
endif
ifeq ($(SDK),)
$(error SDK path not found; set ENV value PLAYDATE_SDK_PATH)
endif
VPATH += src
VPATH += peanut_gb
VPATH += minigb_apu
# List C source files here
SRC += minigb_apu/minigb_apu.c
SRC += main.c
SRC += src/app.c
SRC += src/utility.c
SRC += src/scene.c
SRC += src/library_scene.c
SRC += src/game_scene.c
SRC += src/array.c
SRC += src/listview.c
SRC += src/preferences.c
ASRC = setup.s
# List all user directories here
UINCDIR += src
UINCDIR += peanut_gb
UINCDIR += minigb_apu
UINCDIR += lcd
# List all user C define here, like -D_DEBUG=1
UDEFS =
# Define ASM defines here
UADEFS =
# List the user directory to look for the libraries here
ULIBDIR =
# List all user libraries here
ULIBS =
include $(SDK)/C_API/buildsupport/common.mk