diff options
| author | Cliff Click <cliffc@acm.org> | 2026-11-11 11:49:04 -0800 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2026-11-12 13:48:30 -0800 |
| commit | f4bac750504ae2d21068a87b6a6bf4a733476993 (patch) | |
| tree | 644741a31d045d17f9456f07078a2fca2bb21412 /chapter31/Makefile | |
| parent | a269fa7e8aea51b4fbdd2f2c6c24e84ef26f9ca4 (diff) | |
| download | Simple-f4bac750504ae2d21068a87b6a6bf4a733476993.tar.gz Simple-f4bac750504ae2d21068a87b6a6bf4a733476993.zip | |
First cut graphics
Diffstat (limited to 'chapter31/Makefile')
| -rw-r--r-- | chapter31/Makefile | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/chapter31/Makefile b/chapter31/Makefile index dc4e630b..9e4f5b89 100644 --- a/chapter31/Makefile +++ b/chapter31/Makefile @@ -155,6 +155,7 @@ RELEASE:= build/release TEST_SYS:= $(OBJS)/lib_$(CPU_ABI)/sys.o RELEASE_SYS:= $(RELEASE)/$(CPU_ABI)/sys.o RELEASE_CRT:= $(RELEASE)/$(CPU_ABI)/simple_crt.o +RELEASE_GRAPHICS:= $(RELEASE)/$(CPU_ABI)/simple_graphics.o RELEASE_ARGS:= $(RELEASE)/$(CPU_ABI)/simple_args.o C_CALL_CONV:= $(if $(filter win64,$(CALL_CONV)),ms_abi,sysv_abi) GAME_DIR:= build/examples/$(CPU_ABI) @@ -183,11 +184,23 @@ $(RELEASE_ARGS): src/main/smp/sys/rt/simple_args.smp $(CLZDIR)/main/.mtag $(simp @echo "simping " $@ @$(JVM) com.seaofnodes.simple.Simple --cpu $(CPU_PORT) --abi $(CALL_CONV) --norun -o $@ $< -$(RELEASE_CRT): src/main/c/simple_crt.c $(RELEASE_ARGS) Makefile +$(RELEASE_CRT): src/main/c/simple_crt.c $(RELEASE_ARGS) $(RELEASE_GRAPHICS) Makefile @echo "compiling " $@ @[ -d $(dir $@) ] || mkdir -p $(dir $@) @gcc -c -O2 -DCALL_CONV=$(C_CALL_CONV) -o $@ $< +$(RELEASE_GRAPHICS): src/main/c/simple_graphics.c src/main/c/simple_graphics.h Makefile + @echo "compiling " $@ + @mkdir -p $(dir $@) + @gcc -c -O2 -Wall -Wextra -o $@ $< + +# Optional native graphics backend. Nothing in the default build depends on it. +include graphics.mk + +.PHONY: tests_nographics +tests_nographics: + @SIMPLE_MINIFB=off $(MAKE) tests + ####################################################### # Base launch line for JVM tests JVM=nice java -ea -cp "$(CLZDIR)/main${SEP}${jars}${SEP}$(CLZDIR)/test" |
