diff options
author | Juan J. Martinez <jjm@usebox.net> | 2022-05-24 07:22:45 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-05-24 07:23:25 +0100 |
commit | 39bd26a83749aaf5167de6af89161a3f8ef0c36b (patch) | |
tree | 808cb0042f84915f45f576a86f11f3abfba17a1f /game/src/Makefile | |
parent | f829a30fc640b252972660a7c5d25dbb04a3ae8e (diff) | |
download | ubox-msx-lib-39bd26a83749aaf5167de6af89161a3f8ef0c36b.tar.gz ubox-msx-lib-39bd26a83749aaf5167de6af89161a3f8ef0c36b.zip |
Explain how OBJs work and the crt0 exception
Diffstat (limited to 'game/src/Makefile')
-rw-r--r-- | game/src/Makefile | 5 |
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 |