forked from chand-lab/openEyeTrack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
60 lines (40 loc) · 1.97 KB
/
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
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
CC= gcc
CXX=g++
#make sure this is the correct path to GigeV
IROOT=/usr/dalsa/GigeV
#
# Get the configured include defs file (required for direct GenApi access)
# (It gets installed to the distribution tree).
ifeq ($(shell if test -e archdefs.mk; then echo exists; fi), exists)
include archdefs.mk
else
# Force an error
$(error archdefs.mk file not found. It gets configured on installation ***)
endif
INC_PATH = -I. -I$(IROOT)/include -I$(IROOT)/examples/common $(INC_GENICAM)
DEBUGFLAGS = -g
OPENCV = $(shell pkg-config opencv4 --cflags --libs)
#
# Conditional definitions for the common demo files
# (They depend on libraries installed in the system).
#
#this line needs to be changed based on user download location
#no need to change if installed as described in user guide
include ~/DALSA/GigeV/examples/common/commondefs.mk
CXX_COMPILE_OPTIONS = -c $(OPENCV) $(DEBUGFLAGS) -DPOSIX_HOSTPC -D_REENTRANT -ffor-scope \
-Wall -Wno-parentheses -Wno-missing-braces -Wno-unused-but-set-variable \
-Wno-unknown-pragmas -Wno-cast-qual -Wno-unused-function -Wno-unused-label -pthread
C_COMPILE_OPTIONS= -c $(OPENCV) $(DEBUGFLAGS) -fhosted -Wall -Wno-parentheses -Wno-missing-braces \
-Wno-unknown-pragmas -Wno-cast-qual -Wno-unused-function -Wno-unused-label -Wno-unused-but-set-variable
LCLLIBS= -L$(ARCHLIBDIR) $(COMMONLIBS) -lpthread -lXext -lX11 -L/usr/local/lib -lGevApi -lCorW32
TARGETS = openEyeTrack
# cause 'make' to build multiple targets, just add target names after thread with spaces inbetween
build: $(TARGETS)
%.o : %.cpp
$(CXX) -std=c++0x -I. $(INC_PATH) $(CXX_COMPILE_OPTIONS) $(COMMON_OPTIONS) $(ARCH_OPTIONS) -c $< -o $@
%.o : %.c
$(CC) -I. $(INC_PATH) $(C_COMPILE_OPTIONS) $(COMMON_OPTIONS) $(ARCH_OPTIONS) -c $< -o $@
$(TARGETS) : % : %.o
$(CXX) -g $(ARCH_LINK_OPTIONS) -o $@ [email protected] $(OPENCV) $(LCLLIBS) $(GENICAM_LIBS) -L$(ARCHLIBDIR) -lstdc++
clean:
-rm *.o $(TARGETS)