Fix windows build
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
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 game.c main.c -I . \
|
||||
$(SHROOMSFLAGS) $(SDL2FLAGS) \
|
||||
-D POSIX_C_SOURCE=199309L \
|
||||
-o shrooms-vb \
|
||||
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 game.c main.c -I . \
|
||||
$(SHROOMSFLAGS) $(SDL2FLAGS) \
|
||||
-D POSIX_C_SOURCE=199309L \
|
||||
-o shrooms-vb \
|
||||
-Werror -std=c90 -Wall -Wextra -Wpedantic
|
||||
Reference in New Issue
Block a user