Skip to content

Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.

Merge pull request #92 from LilyTheCuteCatgirl: NumBlocks, NumDash and NumDrive built smaller

Mason Chen55c4bfa1d108
diff --cc games/numblocks/Makefile
index 1b02d4b0,971400c9..8eaa3b75
--- a/games/numblocks/Makefile
+++ b/games/numblocks/Makefile
@@@ -14,12 -12,9 +14,12 @@@ CLIENT_JAR ?= client.ja
GEN ?= src/gen.c
GAME = src/main.c src/world.c src/edits.c src/render.c src/player.c src/phys.c src/inv.c src/entity.c src/mob.c src/tick.c src/gui.c src/hand.c src/save.c src/data.c src/names.c src/command.c $(GEN)
HEADERS = $(wildcard src/*.h) ../common/epsilon_app.h ../common/epsilon_files.h ../common/np_text.h Makefile
+# NumBlocks.nwa's sources: the game's, its tables with the Nether and the End, and theirs
+DIMS_SRC = src/dims.c src/end.c
+GAME_DIMS = $(filter-out src/data.c,$(GAME)) src/data_dims.c $(DIMS_SRC)
CFLAGS = -std=gnu11 $(shell $(NWLINK) eadk-cflags-device)
- CFLAGS += -O2 -Wall -Wextra -Wno-unused-parameter -fno-math-errno -fsingle-precision-constant -ffast-math
+ CFLAGS += -Oz -Wall -Wextra -Wno-unused-parameter -fno-math-errno -fsingle-precision-constant -ffast-math
CFLAGS += -fno-tree-loop-distribute-patterns -flto -fno-fat-lto-objects -fwhole-program -fvisibility=internal
CFLAGS += -ffunction-sections -fdata-sections $(EXTRA)
LDFLAGS = -Wl,--relocatable -nostartfiles --specs=nano.specs