-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·39 lines (28 loc) · 749 Bytes
/
Makefile
File metadata and controls
executable file
·39 lines (28 loc) · 749 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
28
29
30
31
32
33
34
35
36
37
38
39
HEAP_SIZE = 8388208
STACK_SIZE = 61800
PRODUCT = drifter.pdx
C_DIR = C/
C_SOURCE_FILES = $(shell find $(C_DIR) -name '*.c')
# Locate the SDK
SDK = ${PLAYDATE_SDK_PATH}
ifeq ($(SDK),)
$(error SDK path not found; set ENV value PLAYDATE_SDK_PATH)
endif
# List C source files here
SRC = $(C_SOURCE_FILES)
# List all user directories here
UINCDIR =
# List user asm files
UASRC =
# List all user C define here, like -D_DEBUG=1
UDEFS = -Wdouble-promotion -Wall -Wextra -g
# 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
sanity:
@echo "C_DIR: $(C_DIR)"
@echo "C_SOURCE_FILES: $(C_SOURCE_FILES)"