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


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

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

1.1
date	2006.08.31.18.11.50;	author rob;	state Exp;
branches;
next	;


desc
@@


1.3
log
@added global configuration file for make under autonomy
@
text
@##########################################################################
# Copyright 2005 MBARI
##########################################################################
# Summary  : Makefile for DockOnBoard USBL transceiver driver
# Filename : Makefile
# Author   : rsm
# Project  : 
# Version  : Version 1.0
# Created  : 9/5/2006
# 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../DataLog \
	      -I../taskIF \
	      -I../framework \
	      -I../system \
	      -I/usr/include           

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

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

OBJS	    =	MTComm.o MtiOutput.o MtiLog.o MtiDriver.o

TARGETS     =	mtiExample mtiDriver

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)

mtiExample:	XbusExample.o $(OBJS) $(LIBS)
	$(LD) $(LDFLAGS) XbusExample.o $(OBJS) $(LIBS) -o $@@

mtiDriver:	_mtiDriver.o $(OBJS) $(LIBS)
	$(LD) $(LDFLAGS) _mtiDriver.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.2
log
@First cut at MTi driver/logger
@
text
@d55 13
@


1.1
log
@These are Xsen's example code files.  They have been modified to compile
under QNX. The exectuable mtiExample has  been tested on the MTi in the Usbl
on the docking vehicle, and works.
@
text
@d39 1
a39 1
	      -I../utils \
d48 1
a48 1
LIBS        =   ../utils/utils.lib \
d51 1
a51 1
OBJS	    =	MTComm.o Xbus.o
d53 1
a53 1
TARGETS     =	mtiTest mtiExample
a57 3
mtiTest:	_mtiTest.o $(OBJS) $(LIBS)
	$(LD) $(LDFLAGS) _mtiTest.o $(OBJS) $(LIBS) -o $@@

d60 3
@

