Single header gint/SDL2 wrapper
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
681 B

CC ?= gcc
CFLAGS = -std=c99 -Wall -Wextra -pedantic -O3 -I./inc -MMD $(shell sdl2-config --cflags)
LDFLAGS = -lSDL2 -lSDL2_image -lSDL2_mixer $(shell sdl2-config --libs)
OBJ_NAME = lzy
OBJS := $(patsubst %.c,%.o,$(wildcard src/*.c))
all: $(OBJ_NAME)
strip $(OBJ_NAME)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
fxsdk build-cg
run: $(OBJ_NAME)
@clang-format -style=file -verbose -i src/*.c
@clang-format -style=file -verbose -i inc/*.h
rm -f $(OBJ_NAME).g3a $(OBJ_NAME)
rm -f $(OBJS) src/*.d
rm -Rf build-cg
.PHONY: cg run run-txt format clean
-include src/*.d