aboutsummaryrefslogtreecommitdiff
path: root/game/src
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-05-24 07:22:45 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-05-24 07:23:25 +0100
commit39bd26a83749aaf5167de6af89161a3f8ef0c36b (patch)
tree808cb0042f84915f45f576a86f11f3abfba17a1f /game/src
parentf829a30fc640b252972660a7c5d25dbb04a3ae8e (diff)
downloadubox-msx-lib-39bd26a83749aaf5167de6af89161a3f8ef0c36b.tar.gz
ubox-msx-lib-39bd26a83749aaf5167de6af89161a3f8ef0c36b.zip
Explain how OBJs work and the crt0 exception
Diffstat (limited to 'game/src')
-rw-r--r--game/src/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/game/src/Makefile b/game/src/Makefile
index f0a8dae..fef5f24 100644
--- a/game/src/Makefile
+++ b/game/src/Makefile
@@ -8,8 +8,13 @@ DATA := 0xc0de
OUTDIR := ../../bin
TMPDIR := ../build
+
+# will automatically include (and compile) any .c or .z80 file
OBJS := $(patsubst %.c,$(TMPDIR)/%.rel,$(wildcard *.c)) $(patsubst %.z80,$(TMPDIR)/%.rel,$(wildcard *.z80))
+# crt0.z80 is compiled as requirement of the targets and MUST be linked first,
+# so we exlude it from the list of user-provided source
OBJS := $(filter-out $(TMPDIR)/crt0.rel,$(OBJS))
+
UBOX_LIBS := $(wildcard ../../lib/*.lib)
LIBS := -lubox -lspman -lmplayer -lap