diff options
| author | Louis Burda <quent.burda@gmail.com> | 2023-08-16 10:27:50 +0200 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2023-08-16 10:44:38 +0200 |
| commit | de8529315f6f699058a23198384adaf6025a0b08 (patch) | |
| tree | d5f190a89da7afeab79324b70cf610b43b8c4509 /release/Makefile | |
| parent | 3a2386717963f0f00a258462ee3a7d71bfbfdad5 (diff) | |
| download | campctf2023-tis256-master.tar.gz campctf2023-tis256-master.zip | |
Diffstat (limited to 'release/Makefile')
| -rw-r--r-- | release/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/release/Makefile b/release/Makefile index c91f2b1..ad3704e 100644 --- a/release/Makefile +++ b/release/Makefile @@ -16,12 +16,14 @@ all: tis256 tis256-curses tis256-gui clean: rm -f tis256 tis256-curses tis256-gui -lib/raylib/.git: - git submodule lib/raylib update --init --recursive +lib/raylib: + mkdir -p lib + git -C lib clone --tags https://github.com/raysan5/raylib.git + git -C lib/raylib checkout 4.5.0 -lib/raylib/build/raylib/libraylib.so: lib/raylib/.git +lib/raylib/build/raylib/libraylib.so: | lib/raylib cmake -S lib/raylib -B lib/raylib/build -D BUILD_SHARED_LIBS=1 - make -C lib/raylib/build + make -C lib/raylib/build raylib tis256: tis256.c tpu.c util.c asm.c tpu.h asm.h $(CC) -o $@ tis256.c tpu.c util.c asm.c $(CFLAGS) @@ -29,7 +31,7 @@ tis256: tis256.c tpu.c util.c asm.c tpu.h asm.h tis256-curses: tis256-curses.c tpu.c util.c asm.c tpu.h asm.h $(CC) -o $@ tis256-curses.c tpu.c util.c asm.c $(CFLAGS) -lncursesw -tis256-gui: tis256-gui.c tpu.c util.c asm.c tpu.h asm.h +tis256-gui: tis256-gui.c tpu.c util.c asm.c tpu.h asm.h $(RAYLIB_SO) $(CC) -o $@ tis256-gui.c tpu.c util.c asm.c $(CFLAGS) -lraylib install: |
