mirror of
https://github.com/IllusionMan1212/C2048.git
synced 2026-10-24 18:12:31 +00:00
16 lines
632 B
Makefile
16 lines
632 B
Makefile
BIN=c2048
|
|
CC=gcc
|
|
CFLAGS=-Wall -Wextra -Werror -Wfloat-conversion -Wimplicit-fallthrough -pedantic -g `pkg-config --cflags freetype2` -I3rdparty/glad/include -I3rdparty/fmod/include
|
|
OBJ=main.o game.o core.o shader.o text.o audio.o timer.o ui.o zephr.o zephr_math.o 3rdparty/glad/src/gl.o 3rdparty/glad/src/glx.o
|
|
LDFLAGS=`pkg-config --libs x11 freetype2` -lm -L3rdparty/fmod/lib -Wl,-rpath=3rdparty/fmod/lib -lfmod
|
|
DEPS=3rdparty/glad/include/glad/gl.h 3rdparty/glad/include/glad/glx.h 3rdparty/fmod/include/fmod.h
|
|
|
|
%.o: %.c $(DEPS)
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|
|
$(BIN): $(OBJ)
|
|
$(CC) -o $@ $(OBJ) $(LDFLAGS)
|
|
|
|
clean:
|
|
rm $(OBJ) $(BIN)
|
|
|