-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
24 lines (23 loc) · 863 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FLAGS=-I/usr/include/freetype2 -I/usr/include/SDL2 -I/usr/include/libdrm -Iinclude -O4 -Wall -Wextra -D_REENTRANT -Iaudio -g -I.
CXXFLAGS=$(FLAGS) -std=gnu++17
CFLAGS=$(FLAGS) -std=gnu11
LDLIBS=-lcairo -lharfbuzz -lfreetype -ldrm -lSDL2 -lSDL2_image -lGL -lm -ldl -lpng -lconfig++
LDFLAGS=-O4 -flto -g
OBJECTS=src/main.o src/window.o src/world.o src/resource_manager.o src/fps_counter.o src/model.o src/camera.o src/entity.o src/shader_program.o audio/AudioInterface.o src/glad.o src/texture.o src/textrender.o src/linalg.o src/io.o src/random.o src/config.o
.PHONY: git clean push pull commit
all: caligula
caligula: $(OBJECTS)
$(CXX) -o caligula $(OBJECTS) $(LDFLAGS) $(LDLIBS)
tools: obj_to_ply.o
gcc
git:
git submodule init
git submodule update
commit:
git commit -a
push:
git push origin master
pull:
git pull origin master
clean:
rm -f $(OBJECTS)