-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (20 loc) · 903 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
CXX=clang++
CXXFLAGS= -O3 -g -ggdb -Wall -Wextra -pedantic -Wno-local-type-template-args -Wno-unused-parameter -Wno-logical-op-parentheses -std=c++11
LDFLAGS= -lglfw -lGL -lGLEW -lIL -lSOIL
CXX = g++
CXXFLAGS=-Wall -Wextra -Wno-unused-parameter -O0 -g -ggdb -p -pg -std=c++11 -pedantic -Wstrict-aliasing -DDEBUG
LDFLAGS= -Wl,--no-as-needed -lglfw -lGL -lGLEW -lIL -lSOIL
CXX = g++
CXXFLAGS=-Wall -Wextra -Wno-unused-parameter -O3 -std=c++11 -pedantic -Wstrict-aliasing
LDFLAGS= -Wl,--no-as-needed -lglfw -lGL -lGLEW -lIL -lSOIL
all: demo
demo: main.o libDSGE.so
$(CXX) $(LDFLAGS) main.o -L. -lDSGE -o demo
main.o: main.cpp
$(CXX) $(CXXFLAGS) -c main.cpp
libDSGE.so: graphicEngine.o
$(CXX) $(LDFLAGS) -shared -Wl,-soname,libDSGE.so graphicEngine.o -o libDSGE.so
graphicEngine.o: graphicEngine.cpp graphicEngine.hpp
$(CXX) $(CXXFLAGS) -fPIC -c graphicEngine.cpp
clean:
rm -f *.o *.so demo