# Makefile for the main() programs
#

include ../../generic.mk

#
# the included generic.mk defines the necessary things common to all source files
#
# here we only need to define further compiler (C/C++) and linker (LD)
#   arguments specific to the targets in this Makefile
#

CFLAGS =

# NB: the order you list the libraries here matters, and sometimes you have to
#     link one of them twice in different places in order to overcome problems
#     with cross references
LDFLAGS = -ltracking -ldata -lPCA -limgsrc -lmatrix -lXML -lutils 

ifeq ($(BASIC_OS),Linux)
LDFLAGS += -ljpeg 
endif

C++FLAGS = $(CFLAGS) 

HDRS1 = 

SRCS1 = ReadingPeopleTracker.cc IEEE1394_Capture.cc video_play.cc

TESTSRCS1 = Calibration_test.cc NagMatrix_test.cc IEEE1394Source_test.cc


HDRS = ${HDRS1:S/^/..\//g}
SRCS = ${SRCS1:S/^/..\//g}
TESTSRCS = ${TESTSRCS1:S/^/..\//g}

OBJS = ${SRCS1:.cc=.o}

all: ReadingPeopleTracker

include ../../generic_rules.mk

# Include dependencies file
ifeq (.depend,$(wildcard .depend))
include .depend
endif

