-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
99 lines (72 loc) · 2.28 KB
/
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
##
# The build variables for ZGDK are all optional.
# Override their value by uncommenting the corresponding line.
##
##
# Project specific
##
# Specify the name of the output binary.
BIN=edit.bin
# Specify the directory containing the source files.
# INPUT_DIR=src
# Specify the build containing the compiled files.
# OUTPUT_DIR=bin
# Specify the files in the src directory to compile and the name of the final binary.
# By default, all the C files inside `INPUT_DIR` are selected, the `INPUT_DIR` prefix must not be part of the files names.
# SRCS=$(notdir $(wildcard $(INPUT_DIR)/*.c))
# Specify the location of your asserts (aseprite, gif, zts, ztp, ztm, etc)
# ASSETS_DIR=assets
##
# ZOS Specific
##
# Specify the shell to use for sub-commands.
# SHELL = /bin/bash
# Specify the C compiler to use.
# ZOS_CC=sdcc
# Specify the linker to use.
# ZOS_LD=sdldz80
# Specify additional flags to pass to the compiler.
# ZOS_CFLAGS=
# Specify additional flags to pass to the linker.
# ZOS_LDFLAGS=
# Specify the `objcopy` binary that performs the ihex to bin conversion.
# By default it uses `sdobjcopy` or `objcopy` depending on which one is installed.
# OBJCOPY=$(shell which sdobjcopy objcopy | head -1)
##
# ZVB Specific
##
# Specify additional flags to pass to the compiler. This will be concatenated to `ZOS_CFLAGS`.
# ZVB_CFLAGS=-I$(ZVB_SDK_PATH)/include/
# Specify additional flags to pass to the linker. This will be concatenated to `ZOS_LDFLAGS`.
# ZVB_LDFLAGS=-k $(ZVB_SDK_PATH)/lib/ -l zvb_gfx
# ZGDK has sound enabled by default, uncomment this to disable sound and reduce your binary size
# ENABLE_GFX=0
# ENABLE_SOUND=0
# ENABLE_CRC32=1
##
# ZGDK Specific
##
# ASEPRITE_PATH ?= ~/.steam/debian-installation/steamapps/common/Aseprite/aseprite
# GIF_SRCS=$(ASEPRITE_SRCS:.aseprite=.gif)
# ZTS_SRCS=$(GIF_SRCS:.gif=.zts)
# ZTM_SRCS=$(TILEMAP_SRCS:.tmx=.ztm)
# Set these #define flags
# EMULATOR=1
# FRAMELOCK=1
# DEBUG=1
##
# User Defined
##
# EXTRA_CFLAGS= -I$(ZGDK_PATH)/include
# EXTRA_LDFLAGS= -k $(ZGDK_PATH)/lib -l zgdk -l zvb_sound
# GFX_BITS = 4
# GFX_COMPRESSED = 0
# GFX_STRIP = 128
ifdef BREAK
ZOS_CFLAGS += -DBREAK
endif
ifndef ZGDK_PATH
$(error "Failure: ZGDK_PATH variable not found. It must point to ZGDK path.")
endif
include $(ZGDK_PATH)/base_sdcc.mk
## Add your own rules here