]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
Make compilation of barcol and barcam conditional
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 24 Oct 2013 05:16:05 +0000 (07:16 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 13 Nov 2013 10:17:57 +0000 (11:17 +0100)
These programs depend on an old version of OpenCV, which is no longer
available in current Linux distributions.

Conflicts:
src/camera/barcam/Makefile.omk
src/camera/barcol/Makefile.omk

src/camera/barcam/Makefile.omk

index 50cee6c9fc4c513ecada76cff86bdfd1d5db6ed0..d7522515dd2da68ab9514fb7701622e245d47f05 100644 (file)
@@ -1,5 +1,9 @@
 # -*- makefile -*-
 
+default_CONFIG = CONFIG_BARCAM=y
+
+ifeq ($(CONFIG_BARCAM),y)
+
 # If OpenCV is installed in /usr/local
 INCLUDES += -I /usr/local/include
 LDFLAGS += -L /usr/local/lib
@@ -9,4 +13,6 @@ bin_PROGRAMS = barcam #v4l-info
 #v4l-info_SOURCES = v4l-info.c struct-dump.c struct-v4l.c struct-v4l2.c
 
 barcam_SOURCES = barcam.cxx
-barcam_LIBS = robodim pthread roboorte robottype orte cv highgui cxcore rt z jpeg fftw3
+barcam_LIBS = robodim pthread roboorte robottype orte cv highgui cxcore rt z jpeg #fftw3
+
+endif