]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/camera/rozkuk/Makefile.omk
Process masks for both team colors.
[eurobot/public.git] / src / camera / rozkuk / Makefile.omk
1 # -*- makefile -*-
2
3 # If OpenCV is installed in /usr/local
4 INCLUDES += -I /usr/local/include
5 LDFLAGS += -L /usr/local/lib
6
7 bin_PROGRAMS = rozkuk camgrab
8
9 rozkuk_SOURCES = rozkuk.cxx clr2float.cxx
10 rozkuk_LIBS = robodim pthread roboorte robottype orte cv highgui cxcore rt z
11
12 ifeq ($(CROSS_COMPILE),)
13 bin_PROGRAMS += clr2float_conv maskgen
14 clr2float_conv_SOURCES = clr2float_conv.cxx clr2float.cxx
15 clr2float_conv_LIBS = cv highgui
16
17 maskgen_SOURCES = maskgen.cxx
18 maskgen_LIBS = cv highgui
19 endif
20
21 camgrab_SOURCES = camgrab.c camera.c
22 camgrab_LIBS = v4lconvert
23
24 ifneq ($(wildcard $(OUTPUT_DIR)/_compiled/bin/maskgen),)
25 binary-pass_HOOKS = masks.stamp
26
27 bmasks.stamp: $(SOURCES_DIR)/bmasks_mask.png
28         $(OUTPUT_DIR)/_compiled/bin/maskgen $< -b 40
29         touch $@
30 ymasks.stamp: $(SOURCES_DIR)/ymasks_mask.png
31         $(OUTPUT_DIR)/_compiled/bin/maskgen $< -b 40 -y
32         touch $@
33 masks.stamp: bmasks.stamp ymasks.stamp
34         $(OUTPUT_DIR)/_compiled/bin/clr2float_conv mask*.png
35         touch $@
36 endif