/camera/camlib

To get this branch, use:
bzr branch http://darksoft.org/webbzr/camera/camlib
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
# Cygwin/Linux-GCC Makefile
# (C) 2007, Photonfocus AG
#
# $Id: Makefile,v 1.4 2008-12-19 10:16:24 hofmann Exp $
#
# This is the GNU Makefile to compile a user comdll
# to handle the interface with the frame grabber
#
#  Usage:
#
#    make clean              remove the library and object file
#    make all                to create the comdll_fg library
#
############################################################################
# CONFIGURATION


#This variables should not be changed
DLLCSRCS = comdll_fg.c
INCLUDES = -I. 
OPTIMIZATIONS = -finline-functions#-O2


############################################################################
#frame grabber settings
#please change this settings for your frame grabber

#for Leutron frame grabber
#FG_DIR = /usr/lib/lvsds 
#DLLDEPS = -L$(FG_DIR) -llvdsy

#for siso grabber
#FG_DIR = /siso/menable/lib
#DLLDEPS = -L$(FG_DIR) -lsiso20 -lclserme3

#for euresys grabber
#FG_DIR = /usr/lib
#DLLDEPS = -L$(FG_DIR) -lclseremc1

############################################################################
all:	
	gcc -o comdll_fg.o -c $(DLLCSRCS) $(INCLUDES) $(OPTIMIZATIONS) -Wall -fPIC
	gcc -shared -o libcomdll_fg.so comdll_fg.o -lm $(DLLDEPS) -Wl,-E

clean:
	rm -f comdll_fg.o
	rm -f libcomdll_fg.so