-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (22 loc) · 725 Bytes
/
Makefile
File metadata and controls
35 lines (22 loc) · 725 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
################################################################################
# Ben Baker 2020
# zxnext_tilemap
################################################################################
MKDIR := mkdir -p
RM := rm -rf
CP := cp
ZIP := zip -r -q
BINDIR := bin
DEBUGFLAGS := --list --c-code-in-asm
BUILD_OPT := false
ifeq ($(BUILD_OPT), true)
CFLAGS_OPT := -SO3 --max-allocs-per-node200000
endif
CFLAGS := +zxn -subtype=nex -vn -startup=31 -clib=sdcc_iy -m $(CFLAGS_OPT)
all:
$(MKDIR) $(BINDIR)
zcc $(CFLAGS) $(DEBUG) -pragma-include:config/zpragma.inc @zproject.lst -o $(BINDIR)/zxnext_tilemap -create-app
debug: DEBUG = $(DEBUGFLAGS)
debug: all
clean:
$(RM) bin tmp zcc_opt.def zcc_proj.lst src/*.lis