Skip to content

Commit 6e40f50

Browse files
committed
Move deadcscroll related files to separate folders
1 parent 7f9183b commit 6e40f50

File tree

11 files changed

+1927
-13
lines changed

11 files changed

+1927
-13
lines changed

list/.vuepress/public/deadcscroll/DeadCScroll.asm

Lines changed: 1794 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This is free and unencumbered software released into the public domain.
2+
3+
Anyone is free to copy, modify, publish, use, compile, sell, or
4+
distribute this software, either in source code form or as a compiled
5+
binary, for any purpose, commercial or non-commercial, and by any
6+
means.
7+
8+
In jurisdictions that recognize copyright laws, the author or authors
9+
of this software dedicate any and all copyright interest in the
10+
software to the public domain. We make this dedication for the benefit
11+
of the public at large and to the detriment of our heirs and
12+
successors. We intend this dedication to be an overt act of
13+
relinquishment in perpetuity of all present and future rights to this
14+
software under copyright law.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
23+
24+
For more information, please refer to <https://unlicense.org>
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
2+
############################################################################################################################
3+
# Project Symbols
4+
############################################################################################################################
5+
6+
### Project Environment ####################################################################################################
7+
PROJECT_NAME = DeadCScroll
8+
ROM_NAME = $(PROJECT_NAME).gb
9+
MAP_NAME = $(PROJECT_NAME).map
10+
SYM_NAME = $(PROJECT_NAME).sym
11+
12+
SYS_INCLUDE_DIR = ../../Include
13+
SOURCE_DIR = .
14+
OBJECT_DIR = .
15+
ROM_DIR = .
16+
17+
### Development Tools ######################################################################################################
18+
PADDING_VALUE = 0xFF
19+
20+
ASSEMBLER = rgbasm
21+
ASSEMBLER_OPTS = -Weverything -p $(PADDING_VALUE) -i $(SYS_INCLUDE_DIR)/ -i $(SOURCE_DIR)/
22+
23+
LINKER = rgblink
24+
LINKER_OPTS = -p $(PADDING_VALUE)
25+
26+
CARTMAKER = rgbfix
27+
CARTMAKER_OPTS = -v -p $(PADDING_VALUE)
28+
29+
30+
############################################################################################################################
31+
# File Lists
32+
############################################################################################################################
33+
34+
.SUFFIXES := .gb .map .sym .obj .asm .inc
35+
36+
### Paths ##################################################################################################################
37+
vpath %.asm $(SOURCE_DIR)
38+
vpath %.inc $(SOURCE_DIR) $(SYS_INCLUDE_DIR)
39+
vpath %.def $(SOURCE_DIR)
40+
vpath %.obj $(OBJECT_DIR)
41+
vpath %.gb $(ROM_DIR)
42+
vpath %.map $(ROM_DIR)
43+
vpath %.sym $(ROM_DIR)
44+
45+
### Lists ##################################################################################################################
46+
SOURCE_BASE_NAMES = $(basename $(notdir $(wildcard $(SOURCE_DIR)/*.asm)))
47+
SOURCE_FILES = $(addprefix $(SOURCE_DIR)/,$(addsuffix .asm,$(SOURCE_BASE_NAMES)))
48+
OBJECT_FILES = $(addprefix $(OBJECT_DIR)/,$(addsuffix .obj,$(SOURCE_BASE_NAMES)))
49+
50+
51+
############################################################################################################################
52+
# Main Targets
53+
############################################################################################################################
54+
55+
$(ROM_DIR)/$(ROM_NAME): $(OBJECT_FILES)
56+
@echo
57+
@echo Linking
58+
$(LINKER) $(LINKER_OPTS) -m $(ROM_DIR)/$(MAP_NAME) -n $(ROM_DIR)/$(SYM_NAME) -o $(ROM_DIR)/$(ROM_NAME) $(OBJECT_FILES)
59+
@echo
60+
@echo Fixing
61+
$(CARTMAKER) $(CARTMAKER_OPTS) $(ROM_DIR)/$(ROM_NAME)
62+
63+
64+
############################################################################################################################
65+
# Pattern Rules
66+
############################################################################################################################
67+
68+
### Explicit Rules #########################################################################################################
69+
70+
71+
### Implicit Rules #########################################################################################################
72+
73+
$(OBJECT_DIR)/%.obj : %.asm
74+
@echo Assembling $(<F)
75+
@$(ASSEMBLER) $(ASSEMBLER_OPTS) -o ./$@ $<
76+
77+
78+
############################################################################################################################
79+
# Cleaning Targets
80+
############################################################################################################################
81+
82+
.PHONY: clean
83+
clean: cleanall
84+
85+
.PHONY: cleanall
86+
cleanall: cleanrom cleanobj
87+
88+
.PHONY: cleanrom
89+
cleanrom:
90+
rm -f $(ROM_DIR)/*.gb
91+
rm -f $(ROM_DIR)/*.map
92+
rm -f $(ROM_DIR)/*.sym
93+
94+
.PHONY: cleanobj
95+
cleanobj:
96+
rm -f $(OBJECT_DIR)/*.obj

0 commit comments

Comments
 (0)