We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 354d7f3 commit 9b49097Copy full SHA for 9b49097
2 files changed
.gitignore
@@ -0,0 +1,4 @@
1
+
2
+*.gb
3
+*.o
4
+/build
makefile
@@ -0,0 +1,25 @@
+ASM = rgbasm
+LINKER = rgblink
+FIX = rgbfix
+BUILD_DIR = build
5
+OUTPUT_DIR = .
6
+SRC = $(wildcard *.asm)
7
+OBJS = $(SRC:.asm=.o)
8
9
+GAME_NAME = hello-world
10
11
12
+all: build link fix
13
14
+build:
15
+ mkdir $(BUILD_DIR)
16
+ $(ASM) -o $(BUILD_DIR)/$(OBJS) $(SRC)
17
18
+link:
19
+ $(LINKER) -o $(OUTPUT_DIR)/$(GAME_NAME).gb $(BUILD_DIR)/$(OBJS)
20
21
+fix:
22
+ $(FIX) -v -p 0 $(OUTPUT_DIR)/$(GAME_NAME).gb
23
24
+clean:
25
+ rm -rf $(BUILD_DIR)
0 commit comments