diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2026-10-23 22:07:14 +0200 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2026-10-23 23:03:39 +0200 |
| commit | 1c4eada99c6f98eae40c676d261c8d4fc1de6079 (patch) | |
| tree | 9eb46918b0252cddd5b3131aea0494eb4ed6d27c /Makefile | |
| parent | 7c789a974625bcee34a22757344cf4fbe268e0b5 (diff) | |
Various Small Bug Fixes
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -6,11 +6,12 @@ HOSTCC ?= cc PICO8 ?= pico8 WASM2C ?= wasm2c -ARCH ?= $(shell uname -m) -CFLAGS ?= -std=c99 -Wall -Wextra -O2 -MMD -Isrc -Ilib -I$(SYSTEM) \ +ARCH ?= $(shell uname -m) +CFLAGS ?= -std=c99 -Wall -Wextra -O2 -MMD -Isrc -Ilib -I$(SYSTEM) \ $(shell pkg-config sdl3 --cflags) -LDFLAGS ?= $(shell pkg-config sdl3 --libs) -lm -W2CFLAGS ?= --disable-tail-call +HOSTCFLAGS ?= -std=c99 -Wall -Wextra -O2 -MMD +LDFLAGS ?= $(shell pkg-config sdl3 --libs) -lm +W2CFLAGS ?= --disable-tail-call TARGET := build/$(ARCH) OUT := $(TARGET)/out @@ -70,7 +71,7 @@ $(SYSTEM)/%.png: carts/%.p8 $(TOOLS)/%: tools/%.c @ echo "CC\t$@" @ mkdir -p $(dir $@) - @ $(HOSTCC) $(CFLAGS) $< -o $@ + @ $(HOSTCC) $(HOSTCFLAGS) $< -o $@ .PHONY: build/compile_commands.json build/compile_commands.json: $(TOOLS)/ccj |
