
#####################################################################
# Copyright (c) 2005 Point Grey Research Inc.
#
# This Makefile is free software; Point Grey Research Inc. 
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
#
#####################################################################

TRICLOPSDIR = /usr/local/triclops
DC1394ROOT = /usr/local/dc1394-2.0.0-rc7

# compilation flags
CPPFLAGS += -I. 
# libdc1394 installed in /usr/local/include location
CPPFLAGS += -I$(DC1394ROOT)/include
CPPFLAGS += -I$(TRICLOPSDIR)/include
CPPFLAGS += -Wall -g
CPPFLAGS += -DLINUX
#CPPFLAGS += -Wall -O3

LIBRARY_NAME	= pgrlibdcstereo
LIBRARY		= libpgrlibdcstereo.a
LIBRARY_SRC	= pgr_conversions.cpp \
		pgr_stereocam.cpp \
		pgr_registers.cpp

all:	$(LIBRARY)

$(LIBRARY): $(LIBRARY_SRC:%.cpp=%.o)
	$(AR) $(ARFLAGS) $@ $^ 

%.o:%.cpp
	g++ -c $(CXXFLAGS) $(CPPFLAGS) $*.cpp -o $*.o

clean:
	rm -f *~ *.o *.d $(EXECS)  

#####################################################################
#
# $Id: Makefile,v 1.2 2007/07/11 20:46:47 donm Exp $
# $Author: donm $
# $Revision: 1.2 $
# $Date: 2007/07/11 20:46:47 $
#
#####################################################################

