summaryrefslogtreecommitdiff
path: root/chapter31/graphics.mk
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2026-11-11 15:40:22 -0800
committerCliff Click <cliffc@acm.org>2026-11-12 13:48:30 -0800
commit0720fd8ed0aa92248622a9f3c3ebd522b002fd91 (patch)
tree3ba939eb4e786373cedc54e1afe0bbdbfd16dc01 /chapter31/graphics.mk
parent18c04fd4aab0ad0bf3b3eece9551cc7aa7b9f796 (diff)
downloadSimple-0720fd8ed0aa92248622a9f3c3ebd522b002fd91.tar.gz
Simple-0720fd8ed0aa92248622a9f3c3ebd522b002fd91.zip
graphic tictactoe
Hex & octal digits
Diffstat (limited to 'chapter31/graphics.mk')
-rw-r--r--chapter31/graphics.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/chapter31/graphics.mk b/chapter31/graphics.mk
index a42bc99e..719c5fcd 100644
--- a/chapter31/graphics.mk
+++ b/chapter31/graphics.mk
@@ -21,8 +21,16 @@ else
endif
MINIFB_SOURCES = $(addprefix $(MINIFB_SRC)/src/,$(addsuffix .c,$(MINIFB_COMMON) $(MINIFB_PLATFORM)))
GRAPHICS_EXAMPLE := $(GAME_DIR)/Graphics$(if $(filter Windows_NT,$(OS)),.exe,)
+GRAPHICAL_TICTACTOE := $(GAME_DIR)/TicTacToeGraphical$(if $(filter Windows_NT,$(OS)),.exe,)
.PHONY: graphics graphics-example run-graphics
+.PHONY: graphical-tictactoe run-graphical-tictactoe
+graphical-tictactoe: $(GRAPHICAL_TICTACTOE)
+$(GRAPHICAL_TICTACTOE): docs/examples/TicTacToeGraphical.smp $(CLZDIR)/test/.ttag $(RELEASE_SYS) $(RELEASE_CRT) graphics.mk
+ @$(JVM) com.seaofnodes.simple.Simple --link --cpu $(CPU_PORT) --abi $(CALL_CONV) -L $(dir $(RELEASE_SYS)) -o $(GAME_DIR)/TicTacToeGraphical.o $<
+
+run-graphical-tictactoe: graphics graphical-tictactoe
+ SIMPLE_MINIFB="$(abspath $(GRAPHICS_LIB))" $(GRAPHICAL_TICTACTOE)
graphics: $(GRAPHICS_LIB)
$(MINIFB_STAMP): graphics.mk