shrooms-vb-native/makefile

19 lines
482 B
Makefile
Raw Normal View History

2024-10-15 05:06:52 +00:00
CC?=gcc
SHROOMSFLAGS=shrooms-vb-core/core/vb.c -I shrooms-vb-core/core
2024-10-22 03:31:55 +00:00
SDL3FLAGS=$(shell pkg-config sdl3 --cflags --libs)
2024-10-15 05:06:52 +00:00
.PHONY: clean
clean:
ifeq ($(OS),WINDOWS_NT)
@del shrooms-vb.exe
else
@rm -f shrooms-vb
endif
build:
2024-10-22 00:52:51 +00:00
@$(CC) audio.c cli.c controller.c game.c graphics.c main.c assets/assets.s -I . \
2024-10-22 03:31:55 +00:00
$(SHROOMSFLAGS) $(SDL3FLAGS) \
-D _POSIX_C_SOURCE=199309L \
2024-10-15 05:06:52 +00:00
-o shrooms-vb \
2024-10-19 22:04:15 +00:00
-O3 -fno-strict-aliasing \
2024-10-15 04:24:13 +00:00
-Werror -std=c90 -Wall -Wextra -Wpedantic