-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathmakefile
32 lines (23 loc) · 893 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
25
26
27
28
29
30
31
32
# Modify these INCLUDES and LIBS paths to match your system configuration.
# The current values are for macOS, with the glfw, glew, glm, and freetype2
# packages all installed via Homebrew.
# OpenGL
GL_INCLUDES=
GL_LIBS=-framework OpenGL
# GLFW: For creating the demo window
GLFW_INCLUDES=-I/usr/local/include/GLFW
GLFW_LIBS=-lglfw
# GLEW: OpenGL extension loader
GLEW_INCLUDES=-I/usr/local/include/GL
GLEW_LIBS=-lGLEW
# GLM: Matrix math
GLM_INCLUDES=-I/usr/local/include
# FreeType2: For reading TrueType font files
FT2_INCLUDES=-I/usr/local/include/freetype2
FT2_LIBS=-lfreetype
CC=g++
CPPFLAGS=-Wall -Wextra -g -std=c++14 -Iinclude ${GL_INCLUDES} ${GLFW_INCLUDES} ${GLEW_INCLUDES} ${GLM_INCLUDES} ${FT2_INCLUDES}
LDLIBS=${GL_LIBS} ${GLFW_LIBS} ${GLEW_LIBS} ${FT2_LIBS}
run: demo
./demo
demo: demo.cpp lib/gllabel.cpp lib/types.cpp lib/vgrid.cpp lib/cubic2quad.cpp lib/outline.cpp