-
Notifications
You must be signed in to change notification settings - Fork 23
/
Makefile.config
executable file
·69 lines (56 loc) · 1.88 KB
/
Makefile.config
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#=========================================================================
# GLV makefile configuration
#=========================================================================
LIB_NAME = GLV
include Makefile.common
# Window binding (comment out for none)
WINDOW_BINDING = GLUT
USE_OPENGL_ES = 0
#=========================================================================
# Customize to fit your system
#=========================================================================
LIB_DIRS =
INC_DIRS =
#CFLAGS += -Wall -I/usr/include
#LDFLAGS += -lm -lstdc++ -L/usr/lib
BUILD_DIR = build/
INSTALL_DIR = $(PREFIX)
INC_DIR = GLV/
SRC_DIR = src/
TEST_DIR = test/
EXAMPLE_DIR = example/
#=========================================================================
# DO NOT EDIT BELOW!
#=========================================================================
#-------------------------------------------------------------------------
# Platform specific section
#-------------------------------------------------------------------------
ifeq ($(PLATFORM), linux)
LINK_LDFLAGS += -lGLEW -lGLU -lGL
else ifeq ($(PLATFORM), macosx)
LINK_LDFLAGS += -framework AGL -framework OpenGL
else ifeq ($(PLATFORM), windows)
LINK_LDFLAGS += -lglew32 -lopengl32
endif
BINDING_SRC =
ifeq ($(WINDOW_BINDING), GLUT)
BINDING_SRC = glv_binding_glut.cpp
ifeq ($(PLATFORM), linux)
LINK_LDFLAGS += -lglut
else ifeq ($(PLATFORM), macosx)
LINK_LDFLAGS += -framework GLUT
else ifeq ($(PLATFORM), windows)
ifeq ($(MSYS_VERSION), 2)
LINK_LDFLAGS += -lfreeglut
else
LINK_LDFLAGS += -lglut32
endif
endif
endif
ifneq ($(USE_OPENGL_ES), 0)
LINK_CPPFLAGS += -DGLV_USE_OPENGL_ES
endif
#-------------------------------------------------------------------------
# Final (dependent) variable definitions
#-------------------------------------------------------------------------
VPATH = $(SRC_DIR) $(TEST_DIR) $(EXAMPLE_DIR)