head	1.12;
access;
symbols
	Hobson_Rock_14Dec2009:1.12
	BEFORE_VCS_CHANGE:1.12.2.1
	Hobson_Rock_16Oct2009:1.12
	Hobson_Rock_29June2009:1.12
	Jun15_2009:1.12
	Apr_7_2009:1.12
	mar19_2009:1.12
	mar18_2009:1.12
	feb13_2009:1.12
	feb10-2009:1.12
	feb09-2009:1.12
	dec15_2008:1.12
	dec12_2008:1.12
	ST_10_5:1.12
	ST_10_4b:1.12
	ST_10_4:1.12
	ST_10_3:1.12
	ST10_HW:1.12
	ST_10_2:1.12
	ST_10_1:1.12
	ST_10_0:1.12
	AUTONOMY_BRANCH:1.12.0.2
	AUTONOMY:1.12
	AUTONOMY-2008_07_30:1.12;
locks; strict;
comment	@# @;


1.12
date	2008.07.29.15.32.52;	author fpy;	state Exp;
branches
	1.12.2.1;
next	1.11;

1.11
date	2007.11.20.18.20.34;	author fpy;	state Exp;
branches;
next	1.10;

1.10
date	2007.11.16.20.40.21;	author fpy;	state Exp;
branches;
next	1.9;

1.9
date	2007.11.16.20.05.11;	author cmcgann;	state Exp;
branches;
next	1.8;

1.8
date	2007.11.01.16.42.36;	author fpy;	state Exp;
branches;
next	1.7;

1.7
date	2007.11.01.16.29.14;	author fpy;	state Exp;
branches;
next	1.6;

1.6
date	2007.11.01.16.25.53;	author fpy;	state Exp;
branches;
next	1.5;

1.5
date	2007.10.30.17.48.09;	author fpy;	state Exp;
branches;
next	1.4;

1.4
date	2007.10.30.16.45.05;	author fpy;	state Exp;
branches;
next	1.3;

1.3
date	2007.10.19.16.37.23;	author fpy;	state Exp;
branches;
next	1.2;

1.2
date	2007.10.18.15.11.11;	author fpy;	state Exp;
branches;
next	1.1;

1.1
date	2007.10.09.15.40.32;	author fpy;	state Exp;
branches;
next	;

1.12.2.1
date	2008.09.22.23.32.57;	author fpy;	state Exp;
branches;
next	1.12.2.2;

1.12.2.2
date	2009.11.30.22.42.42;	author fpy;	state Exp;
branches;
next	1.12.2.3;

1.12.2.3
date	2009.11.30.23.36.19;	author fpy;	state Exp;
branches;
next	1.12.2.4;

1.12.2.4
date	2009.11.30.23.38.49;	author fpy;	state Exp;
branches;
next	1.12.2.5;

1.12.2.5
date	2009.11.30.23.43.43;	author fpy;	state Exp;
branches;
next	1.12.2.6;

1.12.2.6
date	2009.12.01.00.12.21;	author fpy;	state Exp;
branches;
next	1.12.2.7;

1.12.2.7
date	2009.12.01.00.43.27;	author fpy;	state Exp;
branches;
next	;


desc
@@


1.12
log
@added global configuration file for make under autonomy
@
text
@##########################################################################
# Copyright 2002 MBARI                                             
##########################################################################
# Summary  : Makefile for Cluster
# Filename : Makefile
# Author   : Frederic Py
# Project  : 
# Version  : Version 1.0
# Created  : 12/01/2006
# Archived :
##########################################################################
# Modification History:
#
##########################################################################

DMEM = NO
DEBUG = YES 

include Init.make

INCLUDES    = -I.  \
	      -I$(AUV_HOME)/stlport \
	      -I$(AUV_HOME)/utils \
	      -I$(AUV_HOME)/framework \
	      -I$(AUV_HOME)/system \
	      -I$(AUV_HOME)/taskIF \
	      -I$(AUV_HOME)/DataLog \
	      -I/usr/include

LDFLAGS	    = $(DFLAG)
LIBPATH	    = /usr/lib:$(AUV_HOME)/lib

LIBS        =   $(AUV_HOME)/utils/utils.lib \
		$(AUV_HOME)/taskIF/taskInterfaces.lib \
		$(AUV_HOME)/framework/auvFramework.lib \
		$(AUV_HOME)/DataLog/dataLog.lib

ifeq ($(DMEM), YES)
MY_LIBS     =   dmem/dmem.lib
LIBS        = $(LIBS) $(MY_LIBS)
else
MY_LIBS     =
endif

UTILS_OBJS = utils/Symbol.o utils/ArgList.o \
             utils/ConfParser.o utils/ConfLexer.o utils/Random.o

DEVICE_IMPL = $(wildcard devices/impl/*.cc)
DEVICE_OBJS = devices/ValDB.o devices/DevicesManager.o \
	$(DEVICE_IMPL:.cc=.o)

CLASSIF_IMPL = $(wildcard classifiers/impl/*.cc)
CLASSIF_OBJS = classifiers/StateVector.o classifiers/StateMetrics.o \
	       classifiers/ClusterOutput.o classifiers/DeviceClassifier.o \
	       classifiers/ClusterLoader.o classifiers/NormalizedBase.o \
	       $(CLASSIF_IMPL:.cc=.o)

CLUSTER_OBJS = ClusterLogger.o Cluster.o _cluster.o \
	       $(CLASSIF_OBJS) $(DEVICE_OBJS) $(UTILS_OBJS) $(DMEM_OBJS)
SERVER_OBJS = ClusterServer.o _clusterServer.o classifiers/ClusterOutput.o \
	      $(UTILS_OBJS) $(DMEM_OBJS)

TARGETS =	cluster clusterServer

ifeq ($(AUTONOMY), 1)
# Specific configuration for AUTONOMY group
# this allow to alter the value of the different variables
# used by make when AUTONOMY variable has been set to 1
# on the calling shell  
-include ../autonomy.make # this file contains the general
                       # modifications we want to apply to
                       # all the modules 

# following line are more specific to this file 

# end of AUTONOMY specific
endif 

all: $(TARGETS)

cluster: $(CLUSTER_OBJS) $(LIBS)
	$(LD) $(LDFLAGS) $(CLUSTER_OBJS) $(MY_LIBS) $(LIBS) -o $@@

clusterServer: $(SERVER_OBJS) $(MY_LIBS) $(LIBS)
	$(LD) $(LDFLAGS) $(SERVER_OBJS) $(MY_LIBS) $(LIBS) -o $@@

install:
		cp -f $(TARGETS)		$(AUV_BIN_DIR)/. 

install_cfg: 
	cp -f cluster.cfg $(AUV_CONFIG_DIR)

install_sim_cfg:
	cp -f cluster.sim.cfg $(AUV_CONFIG_DIR)/cluster.cfg

##########################################################################
# Do not modify anything below this line unless absolutely necessary

.SUFFIXES:
.SUFFIXES:	.o .c .cc .d .idl
.PHONY: my_libs

dmem/dmem.lib: my_libs

my_libs: 
	( cd dmem ; $(MAKE) ) 

utils/ConfParser.cc: utils/ConfParser.yy
	yacc -b ConfParser -d -v utils/ConfParser.yy
	cat ConfParser.tab.c | sed 's/yy/ConfParser/g' > $@@
	rm ConfParser.tab.c
	cat ConfParser.tab.h | sed 's/yy/ConfParser/g' > utils/ConfParser_tab.hh
	rm ConfParser.tab.h

utils/ConfLexer.cc: utils/ConfParser.cc utils/ConfLexer.ll
	lex utils/ConfLexer.ll
	cat lex.yy.c | sed 's/yy/ConfParser/g' > $@@
	rm lex.yy.c

utils/ConfParser_tab.hh: utils/ConfParser.cc

%.d: %.cc
	    @@echo Generating dependencies for $?
	    @@touch $?
	    @@$(DEPEND_TOOL) $(DBG) $(INCLUDES) $? -f $@@ 

%.o: %.cc
	    $(CCPP) $(CPPFLAGS) $(INCLUDES) $< -o $@@
	    @@echo

DEST	    = .

MAKEFILE    = Makefile

include       $(CLUSTER_OBJS:.o=.d)
include       $(SERVER_OBJS:.o=.d)

depend:	

clean:
	rm -f core $(CLUSTER_OBJS) $(CLUSTER_OBJS:.o=.d) $(SERVER_OBJS) \
	$(SERVER_OBJS:.o=.d) utils/ConfParser.cc utils/ConfParser_tab.hh \
	utils/ConfLexer.cc $(TARGETS) *~
	( cd dmem ; $(MAKE) clean )

update:
	cvs update $(CC_SRCS) $MAKEFILE

commit:
	cvs commit $(CC_SRCS) $MAKEFILE

##########################################################################









# DO NOT DELETE THIS LINE -- make depend depends on it.
@


1.12.2.1
log
@small updates on cluster to make it more efficient : especially removed the DEBUG flag
@
text
@d17 1
a17 1
DEBUG = NO
@


1.12.2.2
log
@first step in removing templates from KeyMap
@
text
@d45 1
a45 1
UTILS_OBJS = utils/Symbol.o utils/ArgList.o utils/KeyMap.o \
@


1.12.2.3
log
@simplified ConfParse.yy file
@
text
@d46 1
a46 2
             utils/ConfParser.o utils/ConfLexer.o \
	     utils/ConfParserImpl.cc utils/Random.o
@


1.12.2.4
log
@simplified ConfParse.yy file
@
text
@d47 1
a47 1
	     utils/ConfParserImpl.o utils/Random.o
@


1.12.2.5
log
@reorder Makefile object
@
text
@d46 2
a47 2
             utils/ConfParserImpl.o utils/ConfParser.o \
             utils/ConfLexer.o utils/Random.o
@


1.12.2.6
log
@altered Makefile lex/yacc rule
@
text
@d111 4
a114 6
#	cat ConfParser.tab.c | sed 's/yy/ConfParser/g' > $@@
#	rm ConfParser.tab.c
	mv ConfParser.tab.c $@@
# 	cat ConfParser.tab.h | sed 's/yy/ConfParser/g' > utils/ConfParser_tab.hh
# 	rm ConfParser.tab.h
	mv ConfParser.tab.h utils/ConfParser_tab.hh
d118 2
a119 3
# 	cat lex.yy.c | sed 's/yy/ConfParser/g' > $@@
# 	rm lex.yy.c
	mv lex.yy.c $@@
@


1.12.2.7
log
@rolled back to old version
@
text
@d45 3
a47 2
UTILS_OBJS = utils/Symbol.o utils/ArgList.o \
             utils/ConfParser.o utils/ConfLexer.o utils/Random.o
d111 6
a116 4
	cat ConfParser.tab.c | sed 's/yy/ConfParser/g' > $@@
	rm ConfParser.tab.c
	cat ConfParser.tab.h | sed 's/yy/ConfParser/g' > utils/ConfParser_tab.hh
	rm ConfParser.tab.h
d120 3
a122 2
	cat lex.yy.c | sed 's/yy/ConfParser/g' > $@@
	rm lex.yy.c
@


1.11
log
@updated averager to handle long mission cases
@
text
@d65 14
@


1.10
log
@added a way to choose between installing simulation config file or real one
@
text
@a93 2
dmem/dmem.lib: my_libs

@


1.9
log
@changed Makefile to manage files in the future correctly
@
text
@a63 1
CONFIGS = 	cluster.cfg	
d77 4
a80 1
	cp -f $(CONFIGS) $(AUV_CONFIG_DIR)
@


1.8
log
@removed dependency of install on install_cfg to avoid arroneous install of the default config file
@
text
@d110 1
@


1.7
log
@updated Makefiles to simplify flag management
@
text
@d74 1
a74 1
install:	install_cfg
@


1.6
log
@*** empty log message ***
@
text
@d17 1
d30 1
a30 1
LDFLAGS	    = $(DEBUG)
@


1.5
log
@deported some code from template to avoid segment too large error
@
text
@d29 1
a29 1
LDFLAGS	    = -g
@


1.4
log
@added random selecytion of clusters that are equaly distant to the feature
@
text
@d54 2
a55 1
	       classifiers/ClusterLoader.o $(CLASSIF_IMPL:.cc=.o)
@


1.3
log
@corrected makefile
@
text
@d45 1
a45 1
             utils/ConfParser.o utils/ConfLexer.o 
@


1.2
log
@removed dependency to my_libs .phony dep
@
text
@d69 1
a69 1
clusterServer: $(SERVER_OBJS) my_libs $(LIBS)
d84 2
@


1.1
log
@added cluster task
@
text
@d39 1
d66 1
a66 1
cluster: $(CLUSTER_OBJS) my_libs $(LIBS)
d85 1
a85 1
my_libs:
d87 2
@

