-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (18 loc) · 718 Bytes
/
Makefile
File metadata and controls
23 lines (18 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
TARGET = gsiview
SOURCES = $(wildcard *.cpp)
HEADERS = $(wildcard *.h)
OBJECTS = $(patsubst %.cpp,%.o,$(SOURCES))
LIBOVR = /usr/local/LibOVR
LIBOCV = /usr/local
DEBUG = -g -D_DEBUG
#DEBUG = -O3
CXXFLAGS = --std=c++0x -Wall $(DEBUG) -DX11 -I$(LIBOVR)/Include -I$(LIBOCV)/include
LDLIBS = -lGL -lglfw3 -lXrandr -lXinerama -lXcursor -lXxf86vm -lXi -lX11 -lpthread -lrt -lm -lpng -ludev -L$(LIBOVR)/Lib/Linux/Debug/i386 -lovr -L$(LIBOCV)/lib -lopencv_core -lopencv_highgui -lopencv_imgproc
.PHONY: clean
$(TARGET): $(OBJECTS)
$(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@
$(TARGET).dep: $(SOURCES) $(HEADERS)
$(CXX) $(CXXFLAGS) -MM $(SOURCES) > $@
clean:
-$(RM) $(TARGET) *.o *~ .*~ a.out core
-include $(TARGET).dep