head	1.4;
access;
symbols
	Hobson_Rock_14Dec2009:1.4
	HEAD_CTD_MERGE:1.3.0.4
	BEFORE_VCS_CHANGE:1.4.2.3
	Hobson_Rock_16Oct2009:1.4
	Hobson_Rock_29June2009:1.4
	Jun15_2009:1.4
	Apr_7_2009:1.4
	mar19_2009:1.4
	mar18_2009:1.4
	feb13_2009:1.4
	feb10-2009:1.4
	feb09-2009:1.4
	dec15_2008:1.4
	dec12_2008:1.4
	ST_10_5:1.4.2.2
	ST_10_4b:1.4.2.2
	ST_10_4:1.4.2.2
	ST_10_3:1.4.2.2
	ST10_HW:1.4.2.2
	merge_FILE_ADDED:1.4
	ST_10_2:1.4.2.2
	ST_10_1:1.4.2.2
	ST_10_0:1.4.2.2
	AUTONOMY_BRANCH:1.4.0.2
	AUTONOMY:1.4
	AUTONOMY-2008_07_30:1.4
	TREX_ST_1_0:1.3
	RELEASE_27_April_2007_CTD_1:1.3.0.2;
locks; strict;
comment	@# @;


1.4
date	2008.07.29.01.06.26;	author oreilly;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	2007.02.16.21.00.06;	author rob;	state Exp;
branches;
next	1.2;

1.2
date	2007.02.10.00.23.24;	author henthorn;	state Exp;
branches;
next	1.1;

1.1
date	2007.02.08.01.17.54;	author henthorn;	state Exp;
branches;
next	;

1.4.2.1
date	2008.07.30.16.55.06;	author fpy;	state Exp;
branches;
next	1.4.2.2;

1.4.2.2
date	2008.07.30.18.47.20;	author oreilly;	state Exp;
branches;
next	1.4.2.3;

1.4.2.3
date	2009.11.10.19.58.49;	author fpy;	state Exp;
branches;
next	1.4.2.4;

1.4.2.4
date	2009.11.16.22.21.52;	author fpy;	state Exp;
branches;
next	;


desc
@@


1.4
log
@added publisherTest, xdrtest; use '-ei' option on C and C++ compiler
@
text
@##########################################################################
# Copyright 1999 MBARI                                             
##########################################################################
# Summary  : Makefile for StatePublisher
# Filename : Makefile
# Project  : 
# Version  : Version 1.0
# Created  : 02/07/07
# Archived :
##########################################################################
# Modification History:
#
##########################################################################

CC	    = cc
CCPP	    = cc
LD	    = cc
AR 	    = wlib
DEPEND_TOOL = makedepend

AUV_BIN_DIR = ../bin

DEBUG 	    = -g
EXCEPTION_HANDLING = -WC,-ei -WC,-xs

## OPTIMIZE = -4 -Os
OPTIMIZE = 

## MAP_OUTPUT = -S -ms -M
MAP_OUTPUT =

CFLAGS	    = -c -Wc,-ei $(DEBUG) $(MAP_OUTPUT) $(OPTIMIZE) -D_QNX -DUNIX  
CPPFLAGS    = -c $(DEBUG) $(MAP_OUTPUT) $(OPTIMIZE) -D_QNX -DUNIX \
	         $(EXCEPTION_HANDLING) $(RPC_FLAGS)

INCLUDES    = -I.  \
	      -I../ \
	      -I../utils \
	      -I../framework \
	      -I../system \
	      -I../taskIF \
	      -I../DataLog \
	      -I../reson6046 \
	      -I../Simulator \
	      -I/usr/include           

LDFLAGS	    = -g
LIBPATH	    = /usr/lib:../lib

LIBS        =   ../utils/utils.lib \
		../DataLog/dataLog.lib \
		../taskIF/taskInterfaces.lib \
		../framework/auvFramework.lib

OBJS        =	\
StatePacket_xdr.o \
StatePacketSender.o \
StatePublisher.o


StatePacket_xdr.c : StatePacket.x
	rpcgen StatePacket.x


TARGETS =	StatePacket_xdr.c $(OBJS) statePublisher statePacketListener xdrtest publisherTest

all:		$(TARGETS)


statePublisher:	_statePublisher.o $(OBJS) $(LIBS)
	$(LD) $(LDFLAGS) _statePublisher.o $(OBJS) $(LIBS) -o $@@

statePacketListener:	_statePacketListener.o $(OBJS) $(LIBS)
	$(LD) $(LDFLAGS) _statePacketListener.o $(OBJS) $(LIBS) -o $@@


xdrtest:	xdrtest.o StatePacket_xdr.o StatePacketSender.o 
	$(LD) $(LDFLAGS) xdrtest.o StatePacket_xdr.o StatePacketSender.o -l socket -l unix  -l rpc3s -o $@@

publisherTest:	publisherTest.o StatePacket_xdr.o StatePacketSender.o 
	$(LD) $(LDFLAGS) publisherTest.o StatePacket_xdr.o StatePacketSender.o -l socket -l unix  -l rpc3s -o $@@


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

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

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

%.d: %.c
	    @@echo Generating dependencies for $?
	    @@$(DEPEND_TOOL) $(INCLUDES) $? -f $@@.tmp
	    @@mv $@@.tmp $@@
%.d: %.cc
	    @@echo Generating dependencies for $?
	    @@$(DEPEND_TOOL) $(INCLUDES) $? -f $@@.tmp
	    @@mv $@@.tmp $@@

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

DEST	    = .

MAKEFILE    = Makefile

include       $(OBJS:.o=.d)

depend:	

clean:
	rm -f core *.o $(OBJS:.o=.d) *.lib *.yy *.tab.* $(TARGETS)

update:
	cvs update $(CC_SRCS) $MAKEFILE

commit:
	cvs commit $(CC_SRCS) $MAKEFILE

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

@


1.4.2.1
log
@New statepublisher with XDR support
@
text
@a59 15
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 


@


1.4.2.2
log
@include auv libs
@
text
@d92 2
a93 2
xdrtest:	xdrtest.o StatePacket_xdr.o StatePacketSender.o $(LIBS)
	$(LD) $(LDFLAGS) xdrtest.o StatePacket_xdr.o StatePacketSender.o $(LIBS) -l socket -l unix  -l rpc3s -o $@@
d95 2
a96 2
publisherTest:	publisherTest.o StatePacket_xdr.o StatePacketSender.o $(LIBS)
	$(LD) $(LDFLAGS) publisherTest.o StatePacket_xdr.o StatePacketSender.o $(LIBS) -l socket -l unix  -l rpc3s -o $@@
@


1.4.2.3
log
@*** empty log message ***
@
text
@d80 1
a80 1
TARGETS =	StatePacket_xdr.c $(OBJS) statePublisher #statePacketListener xdrtest # publisherTest
@


1.4.2.4
log
@StatePublisher now manage LC notifications
@
text
@d47 1
a47 1
LDFLAGS	    = -g -lmqueue
@


1.3
log
@Added cp -fnv
@
text
@d24 1
a24 1
EXCEPTION_HANDLING = -WC,-xs
d32 1
a32 1
CFLAGS	    = -c $(DEBUG) $(MAP_OUTPUT) $(OPTIMIZE) -D_QNX -DUNIX  
d34 1
a34 1
	         $(EXCEPTION_HANDLING)
d55 4
a58 2
OBJS	    =	StatePacket.o \
		StatePublisher.o 
d61 5
a65 1
TARGETS =	statePublisher statePublisherTest
d73 10
a82 2
statePublisherTest:	_statePublisherTest.o $(OBJS) $(LIBS)
	$(LD) $(LDFLAGS) _statePublisherTest.o $(OBJS) $(LIBS) -o $@@
@


1.2
log
@Fleshing-out functionality a little more
@
text
@d71 1
a71 1
		cp -f $(TARGETS)		$(AUV_BIN_DIR)/. 
@


1.1
log
@Initial check-in of vehicle state publisher app
@
text
@d43 1
d59 1
a59 1
TARGETS =	statePublisher
d67 2
@

