forked from ISSOtm/gb-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.mk
66 lines (46 loc) · 1.48 KB
/
project.mk
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
# This file contains project configuration
# Value that the ROM will be filled with
PADVALUE := 0xFF
## Header constants (passed to RGBFIX)
# ROM version (typically starting at 0 and incremented for each published version)
VERSION := 0
# 4-ASCII letter game ID
GAMEID := GBSK
# Game title, up to 11 ASCII chars
TITLE := STARTERKIT
# New licensee, 2 ASCII chars
# Homebrew games FTW!
LICENSEE := HB
# Old licensee, please set to 0x33 (required to get SGB compatibility)
OLDLIC := 0x33
# MBC type, tells which hardware is in the cart
# See https://gbdev.io/pandocs/#_0147-cartridge-type or consult any copy of Pan Docs
# If using no MBC, consider enabling `-t` below
MBC := 0x00
# ROM size is set automatically by RGBFIX
# Size of the on-board SRAM; MBC type should indicate the presence of RAM
# See https://gbdev.io/pandocs/#_0149-ram-size or consult any copy of Pan Docs
# Set this to 0 when using MBC2's built-in SRAM
SRAMSIZE := 0x00
# ROM name
ROMNAME := starterkit
ROMEXT := gb
# Compilation parameters, uncomment to apply, comment to cancel
# "Sensible defaults" are included
# Disable automatic `nop` after `halt`
ASFLAGS += -h
# Export all labels
# This means they must all have unique names, but they will all show up in the .sym and .map files
# ASFLAGS += -E
# Game Boy Color compatible
# FIXFLAGS += -c
# Game Boy Color required
# FIXFLAGS += -C
# Super Game Boy compatible
# FIXFLAGS += -s
# Game Boy mode
LDFLAGS += -d
# No banked WRAM mode
# LDFLAGS += -w
# 32k mode
# LDFLAGS += -t