-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
85 lines (73 loc) · 2.95 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
# -*- coding: utf-8-unix; tab-width: 8 -*-
# Copyright (c) 2021-2023 Daishi Mori (mori0091)
#
# This software is released under the MIT License.\n
# See https://github.com/mori0091/libmsx/blob/main/LICENSE
#
# GitHub libmsx project\n
# https://github.com/mori0091/libmsx
# ---------------------------------------------------------------
# This "Makefile" is a template to make application for MSX.
# Place a copy of this file under the top folder of your project,
# and customize the copied Makefile for your project.
# ---------------------------------------------------------------
# [REQUIRED]
# Path to top of the libmsx installed folder.
LIBMSX_HOME = path_to_top_of_libmsx
# [REQUIRED]
# Specify NAME of your rom image to be built.
# The rom image `${NAME}.rom` will be made into ${BINDIR} folder.
# e.g. If NAME was foo, the image will be `bin/foo.rom`.
NAME = name_of_your_rom
# [OPTIONAL]
# You may specify additional C compiler/linker options.
# - CFLAGS shall be C language options such as "-I dir"
# - LDFLAGS shall be linker options such as "-L dir"
# - LDLIBS shall be libraries to be linked such as "-lfoo" or "foo.lib"
# - LIBS shall be your custom libraries to be linked such as "mylib.lib"
CFLAGS = -DNDEBUG
LDFLAGS =
LDLIBS =
LIBS =
# [OPTIONAL]
# You may specify a folder where your C source code exists.
# (default is 'src', if omitted)
# SRCDIR = src
# [OPTIONAL]
# You may specify a folder where object code would to be made.
# (default is 'obj', if omitted)
# OBJDIR = obj
# [OPTIONAL]
# You may specify a folder where your rom image would to be made.
# (default is 'bin', if omitted)
# BINDIR = bin
# [OPTIONAL]
# You may specify a folder where your resource files exists.
# (default is 'resources', if omitted)
# The files in the ${RSCDIR} folder and its subfolders are concatenated at the
# end of the ROM image as NAMED RESOURCE and can be searched by name or read at
# run time.
# \note This feature is only available for MegaROM image. Thus `CONFIG_ROM_TYPE`
# must be `ascii8` or `ascii16`, if you use resource files.
# \see bmem.h
# \see resources.h
# RSCDIR = resources
# [OPTIONAL]
# If `CONFIG_CRT0_MOD_INIT` is set to `init_x` or `init_r`, all connected system
# extensions (e.g. disk drive, RS-232C cartridge) are initialized and ready for
# use before your `main()` function starts. Maybe some RAM space and startup
# time are consumed though.
# (default is `init_0`, if omitted)
# \see https://github.com/mori0091/libmsx/blob/main/docs/design-notes_crt0.md
# CONFIG_CRT0_MOD_INIT = init_0
# [REQUIRED]
# Select ROM type.
# - 16k : to make 16KiB rom image (0x4000-0x7fff)
# - 32k : to make 32KiB rom image (0x4000-0xbfff)
# - ascii16 : to make MegaROM image (ROM type: ASCII16)
# - ascii8 : to make MegaROM image (ROM type: ASCII8)
# \see https://github.com/mori0091/libmsx/blob/main/docs/design-notes_crt0.md
CONFIG_ROM_TYPE = 16k
# [REQUIRED] (No need to modify)
# Include common part of Makefile
include ${LIBMSX_HOME}/mk/build.mk