aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b00c8ad..217c59a 100644
--- a/Makefile
+++ b/Makefile
@@ -8,8 +8,8 @@ WAT2WASM ?= wat2wasm
ARCH ?= $(shell uname -m)
CFLAGS += -std=c99 -Wall -Wextra -O2 -MMD
-SDL3_CFLAGS ?= $(shell pkg-config SDL3 --cflags)
-SDL3_LIBS ?= $(shell pkg-config SDL3 --libs)
+SDL3_CFLAGS ?= $(shell pkg-config sdl3 --cflags)
+SDL3_LIBS ?= $(shell pkg-config sdl3 --libs)
TARGET := build/$(ARCH)
OUT := $(TARGET)/out
@@ -17,7 +17,7 @@ TOOLS := build/tools
SYSTEM := build/system
PICOW_CFLAGS := $(CFLAGS) $(SDL3_CFLAGS) -Ilib/
-PICOW_LDFLAGS := $(LDFLAGS) $(SDL3_LIBS) -L$(TARGET) -lwamr
+PICOW_LDFLAGS := $(LDFLAGS) $(SDL3_LIBS) -L$(TARGET) -lwamr -lm
PICOW_SRC := $(wildcard src/*.c) $(SYSTEM)/sysroot.c
PICOW_OBJ := $(patsubst %.c,$(OUT)/%.o,$(PICOW_SRC:build/%=%))