19 lines
473 B
Makefile
19 lines
473 B
Makefile
CC?=gcc
|
|
SHROOMSFLAGS=shrooms-vb-core/core/vb.c -I shrooms-vb-core/core
|
|
SDL2FLAGS=$(shell pkg-config sdl2 --cflags --libs)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
ifeq ($(OS),WINDOWS_NT)
|
|
@del shrooms-vb.exe
|
|
else
|
|
@rm -f shrooms-vb
|
|
endif
|
|
|
|
build:
|
|
@$(CC) cli.c controller.c game.c graphics.c main.c assets/assets.s -I . \
|
|
$(SHROOMSFLAGS) $(SDL2FLAGS) \
|
|
-D POSIX_C_SOURCE=199309L \
|
|
-o shrooms-vb \
|
|
-O3 -fno-strict-aliasing \
|
|
-Werror -std=c90 -Wall -Wextra -Wpedantic
|