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.

meow

Lily Pitiot90a232016d28
diff --git a/games/numblocks/Makefile b/games/numblocks/Makefile
index be0fc410..971400c9 100644
--- a/games/numblocks/Makefile
+++ b/games/numblocks/Makefile
@@ -14,7 +14,7 @@ GAME = src/main.c src/world.c src/edits.c src/render.c src/player.c src/phys.c s
HEADERS = $(wildcard src/*.h) ../common/epsilon_app.h ../common/epsilon_files.h ../common/np_text.h Makefile
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
diff --git a/games/numdash/Makefile b/games/numdash/Makefile
index b241064a..dde933ea 100644
--- a/games/numdash/Makefile
+++ b/games/numdash/Makefile
@@ -10,7 +10,7 @@ COMMON = $(CORE) src/ui.c src/app.c src/menu.c src/play.c src/editor.c
DEVICE_SOURCES = $(COMMON) src/platform_eadk.c src/main.c
DEVICE_OBJECTS = $(patsubst src/%.c,build/arm/%.o,$(DEVICE_SOURCES))
HEADERS = $(wildcard src/*.h) ../common/np_text.h
-ARM_FLAGS = -std=c11 -O2 -fno-math-errno $(WARN) -ffunction-sections -fdata-sections -flto -fno-fat-lto-objects -fwhole-program -fvisibility=internal $(shell $(NWLINK) eadk-cflags-device 2>/dev/null)
+ARM_FLAGS = -std=c11 -Os -fno-math-errno $(WARN) -ffunction-sections -fdata-sections -flto -fno-fat-lto-objects -fwhole-program -fvisibility=internal $(shell $(NWLINK) eadk-cflags-device 2>/dev/null)
ARM_LINK = -Wl,--relocatable -nostartfiles --specs=nano.specs -Wl,--gc-sections -Wl,-e,main -Wl,-u,eadk_app_name -Wl,-u,eadk_app_icon -Wl,-u,eadk_api_level -flinker-output=nolto-rel
.PHONY: all build simulator test check clean levels assets run epsilon-app
all: build
diff --git a/games/numdrive/Makefile b/games/numdrive/Makefile
index aea66d4e..961eda7a 100644
--- a/games/numdrive/Makefile
+++ b/games/numdrive/Makefile
@@ -14,7 +14,7 @@ CFLAGS = -std=gnu11 -Wall -Wno-unused-function -fsingle-precision-constant
ifeq ($(PLATFORM),device)
CC = arm-none-eabi-gcc
TARGET = $(BUILD_DIR)/numdrive.nwa
-CFLAGS += $(shell $(NWLINK) eadk-cflags-device) -O2
+CFLAGS += $(shell $(NWLINK) eadk-cflags-device) -Os
CFLAGS += -flto -flto-partition=one -fno-fat-lto-objects -fwhole-program -fvisibility=internal -fno-math-errno -fno-ident
LDFLAGS = $(shell $(NWLINK) eadk-ldflags-device) --specs=nano.specs
LDFLAGS += -Wl,-e,main -Wl,-u,eadk_app_name -Wl,-u,eadk_app_icon -Wl,-u,eadk_api_level -Wl,--gc-sections