-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 1023 Bytes
/
Makefile
File metadata and controls
36 lines (28 loc) · 1023 Bytes
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
# Makefile for Basler Pylon sample program
.PHONY : all clean
# the program to build
NAME := click
# Build tools and flags
CXX := /usr/bin/g++
LD := /usr/bin/g++
CPPFLAGS := -I$(GENICAM_ROOT_V2_1)/library/CPP/include \
-I$(PYLON_ROOT)/include -DUSE_GIGE
CXXFLAGS := #e.g., CXXFLAGS=-g -O0 for debugging
# To keep the makefile for 32 and 64 in sync we add 64 and 32-bit library paths
# If you are targeting only 32 bit for you can remove the entries containing "64"
LDFLAGS := -L$(PYLON_ROOT)/lib64 \
-L$(PYLON_ROOT)/lib \
-L$(GENICAM_ROOT_V2_1)/bin/Linux64_x64 \
-L$(GENICAM_ROOT_V2_1)/bin/Linux64_x64/GenApi/Generic \
-L$(GENICAM_ROOT_V2_1)/bin/Linux32_i86 \
-L$(GENICAM_ROOT_V2_1)/bin/Linux32_i86/GenApi/Generic \
-Wl,-E
LIBS := -lpylonbase
all : $(NAME) clicka
$(NAME) : $(NAME).o
$(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
$(NAME).o : $(NAME).cpp
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
clicka: clicka.cpp
clean :
$(RM) $(NAME).o $(NAME) clicka