-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
30 lines (23 loc) · 1.09 KB
/
makefile
File metadata and controls
30 lines (23 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
EXE=app
# Main target
all: $(EXE)
#Windows
ifeq "$(OS)" "Windows_NT"
CFLG=-O3 -Wall
LIBS=-lglu32 -lopengl32 -lSDL2main -lSDL2
CLEAN=del *.exe *.o *.a
else
#Linux
CFLG= -O3 -Wall -o $(EXE)
INCLUDE=-I/usr/include/freetype2
LIBS=-lSDL2 -lGLEW -lGL -lm -lfreetype
CLEAN=rm -f $(EXE) *.o *.a
endif
FILES=main.cpp MainEditor.h MainEditor.cpp ShaderProgram.h ShaderProgram.cpp StaticShader.h StaticShader.cpp Math.h Camera.h Camera.cpp GameObject.h Primitive.h Primitive.cpp Cube.h Cube.cpp Vertex.h Renderer.h Renderer.cpp InputManager.h InputManager.cpp Timing.h Timing.cpp Light.h Light.cpp PointLight.h PointLight.cpp DirectionalLight.h DirectionalLight.cpp Picker.h Picker.cpp Physics.h Physics.cpp OutlineShader.h OutlineShader.cpp TransformController.h TransformController.cpp TransformShader.h TransformShader.cpp GUI.h GUI.cpp GUIShader.h GUIShader.cpp Texture.h picoPNG.h picoPNG.cpp Loader.h Loader.cpp Button.h Button.cpp Panel.h Panel.cpp TextRenderer.h TextRenderer.cpp TextShader.h TextShader.cpp GUILabel.h GUILabel.cpp
# Link
app:
g++ $(CFLG) $(FILES) $(INCLUDE) $(LIBS)
run:
./$(EXE)
clean:
$(CLEAN)