head	1.6;
access;
symbols
	Hobson_Rock_14Dec2009:1.6
	HEAD_CTD_MERGE:1.5.0.4
	BEFORE_VCS_CHANGE:1.6
	Hobson_Rock_16Oct2009:1.6
	Hobson_Rock_29June2009:1.6
	Jun15_2009:1.6
	Apr_7_2009:1.6
	mar19_2009:1.6
	mar18_2009:1.6
	feb13_2009:1.6
	feb10-2009:1.6
	feb09-2009:1.6
	dec15_2008:1.6
	dec12_2008:1.6
	ST_10_5:1.6
	ST_10_4b:1.6
	ST_10_4:1.6
	ST_10_3:1.6
	ST10_HW:1.6
	ST_10_2:1.6
	ST_10_1:1.6
	ST_10_0:1.6
	AUTONOMY_BRANCH:1.6.0.2
	AUTONOMY:1.6
	AUTONOMY-2008_07_30:1.6
	TREX_ST_1_0:1.5
	RELEASE_27_April_2007_CTD_1:1.5.0.2;
locks; strict;
comment	@# @;


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

1.5
date	2005.12.08.03.52.13;	author rob;	state Exp;
branches;
next	1.4;

1.4
date	2005.12.04.03.53.02;	author rob;	state Exp;
branches;
next	1.3;

1.3
date	2005.11.29.22.58.39;	author henthorn;	state Exp;
branches;
next	1.2;

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

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


desc
@@


1.6
log
@added global configuration file for make under autonomy
@
text
@##########################################################################
# Copyright 2005 MBARI
##########################################################################
# Summary  : Makefile for Sonardyne USBL transceiver driver
# Filename : Makefile
# Author   : Rich Henthorn
# Project  : 
# Version  : Version 1.0
# Created  : 11/15/05
# Archived :
##########################################################################
# Modification History:
#
##########################################################################

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

AUV_BIN_DIR = ../bin

DEBUG 	    = -g
EXCEPTION_HANDLING = -WC,-xs

## OPTIMIZE = -4 -Os
OPTIMIZE = 

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

CFLAGS	    = -c $(DEBUG) $(MAP_OUTPUT) $(OPTIMIZE) -D_QNX -DUNIX  
CPPFLAGS    = -c $(DEBUG) $(MAP_OUTPUT) $(OPTIMIZE) -D_QNX -DUNIX \
	         $(EXCEPTION_HANDLING)

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

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

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

OBJS	    =	SonardyneDriver.o \
		SonardyneOutput.o \
		SonardyneServer.o \
		SonardyneCommand.o \
		SonardyneLog.o 

TARGETS =	sonardyneDriver \
		sonardyneServer \
		sonardyneTest

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)


sonardyneDriver:	sonardyne.o $(OBJS) $(LIBS)
	$(LD) $(LDFLAGS) sonardyne.o $(OBJS) $(LIBS) -o $@@

sonardyneServer:	_sonardyneServer.o $(OBJS) $(LIBS)
	$(LD) $(LDFLAGS) _sonardyneServer.o $(OBJS) $(LIBS) -o $@@

sonardyneTest:	sonardyneTest.o $(OBJS) $(LIBS)
	$(LD) $(LDFLAGS) sonardyneTest.o $(OBJS) $(LIBS) -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 $@@

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

%.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.5
log
@Added the new log variables to the attribute list.  For some reason this code
will compile and run without them, which, predictably, causes an abrupt crash
with no warning.
@
text
@d65 14
@


1.4
log
@Made the log object work with the simulation also.
@
text
@d79 1
a79 1
		cp -f $(TARGETS)		$(AUV_BIN_DIR)/. 
@


1.3
log
@Add set_beacon command
@
text
@d44 1
@


1.2
log
@Create server and test programs
@
text
@d57 1
@


1.1
log
@Software driver for Sonardyne implementation of Usbl IF
@
text
@d56 1
a57 1
#		SonardyneServer.o \
d69 2
a70 2
sonardyneServer:	sonardyneServer.o $(OBJS) $(LIBS)
	$(LD) $(LDFLAGS) sonardyneServer.o $(OBJS) $(LIBS) -o $@@
@

