Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LimaGroup
Lima-camera-frelon
Commits
e1725990
Commit
e1725990
authored
Mar 16, 2017
by
Alejandro Homs Puron
Browse files
Include control.inc to have the appropriate Makefile compilation flags
parent
8e995e52
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Makefile
View file @
e1725990
...
@@ -19,18 +19,20 @@
...
@@ -19,18 +19,20 @@
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
# along with this program; if not, see <http://www.gnu.org/licenses/>.
############################################################################
############################################################################
LIMA_DIR
:=
$(
shell
pwd
)
/../../..
LIMA_ESPIA_DIR
:=
$(LIMA_DIR)
/camera/common/espia
include
../../common/espia/include/espia.inc
include
$(LIMA_DIR)/config.inc
include
$(LIMA_DIR)/control/control.inc
include
$(LIMA_ESPIA_DIR)/include/espia.inc
frelon-objs
=
FrelonBase.o FrelonSerialLine.o FrelonModel.o FrelonCamera.o
\
frelon-objs
=
FrelonBase.o FrelonSerialLine.o FrelonModel.o FrelonCamera.o
\
FrelonTimingCtrl.o FrelonInterface.o FrelonCorrection.o
FrelonTimingCtrl.o FrelonInterface.o FrelonCorrection.o
SRCS
=
$
(
frelon-objs:.o
=
.cpp
)
SRCS
=
$
(
frelon-objs:.o
=
.cpp
)
CXXFLAGS
=
-I
../include
-I
../../common/espia/include
\
CXXFLAGS
=
-I
../include
-I
$(LIMA_ESPIA_DIR)
/include
$(CT_CXXFLAGS)
\
-I
../../../hardware/include
-I
../../../common/include
\
-I
$(ESPIA_DRV_INCL)
-I
../../../third-party/Processlib/core/include
\
-I
$(ESPIA_DRV_INCL)
-Wall
-pthread
-fPIC
-g
all
:
Frelon.o
all
:
Frelon.o
...
...
test/Makefile
View file @
e1725990
...
@@ -19,30 +19,31 @@
...
@@ -19,30 +19,31 @@
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
# along with this program; if not, see <http://www.gnu.org/licenses/>.
############################################################################
############################################################################
include
../../../config.inc
LIMA_DIR
:=
$(
shell
pwd
)
/../../..
LIMA_ESPIA_DIR
:=
$(LIMA_DIR)
/camera/common/espia
include
$(LIMA_DIR)/config.inc
include
$(LIMA_DIR)/control/control.inc
include
$(LIMA_ESPIA_DIR)/include/espia.inc
SRCS
=
test_frelon.cpp test_frelon_interface.cpp test_frelon_spectroscopy.cpp
\
SRCS
=
test_frelon.cpp test_frelon_interface.cpp test_frelon_spectroscopy.cpp
\
test_frelon_control.cpp
test_frelon_control.cpp
include
../../common/espia/include/espia.inc
LDFLAGS
=
-pthread
-L
$(LIMA_DIR)
/build
-L
$(ESPIA_DRV_LIB)
LDLIBS
=
-llimafrelon
-llimaespia
-llimacore
-lespia
LDFLAGS
=
-pthread
-L
../../../build
-L
$(ESPIA_DRV_LIB)
\
-L
../../../third-party/Processlib/build
LDLIBS
=
-llimafrelon
-llimaespia
-llimacore
-lespia
-lprocesslib
ifneq
($(COMPILE_CBF_SAVING), 0)
ifneq
($(COMPILE_CBF_SAVING), 0)
LDFLAGS
+=
-L
../../..
/third-party/CBFLib/lib
LDFLAGS
+=
-L
$(LIMA_DIR)
/third-party/CBFLib/lib
LDLIBS
+=
-lcbf
LDLIBS
+=
-lcbf
endif
endif
CXXFLAGS
=
-I
../include
-I
../../common/espia/include
\
ifneq
($(COMPILE_CONFIG), 0)
-I
../../../hardware/include
-I
../../../common/include
\
LDFLAGS
+=
-L
$(LIMA_DIR)
/third-party/libconfig/lib/.libs
-I
../../../control/include/
\
LDLIBS
+=
-lconfig
++
-I
../../../control/software_operation/include/
\
endif
-I
../../../third-party/Processlib/core/include
\
-I
../../../third-party/Processlib/tasks/include
\
CXXFLAGS
=
-I
../include
-I
$(LIMA_ESPIA_DIR)
/include
$(CT_CXXFLAGS)
\
-I
../../../third-party/Sps/Include
\
-I
$(ESPIA_DRV_INCL)
-I
$(ESPIA_DRV_INCL)
-Wall
-pthread
-g
test-progs
=
test_frelon test_frelon_interface test_frelon_spectroscopy
\
test-progs
=
test_frelon test_frelon_interface test_frelon_spectroscopy
\
test_frelon_control
test_frelon_control
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment