head	1.1;
access;
symbols
	OctansJune5:1.1;
locks; strict;
comment	@# @;


1.1
date	2001.06.04.10.47.49;	author hthomas;	state Exp;
branches;
next	;


desc
@@


1.1
log
@octans driver
@
text
@##########################################################################
# Copyright 1999 MBARI                                             
##########################################################################
# Summary  : Makefile for Crossbow AHRS driver, server, interface, and test
# Filename : Makefile
# Author   : Andrew Pearce
# Project  : 
# Version  : Version 1.0
# Created  : 12/06/99
# Modified : 12/06/99
# Archived :
##########################################################################
# Modification History:
# $Header: /usr/local/cvs/auv/altex/onboard/crossbow/Makefile,v 1.14 2000/05/12 15:27:21 oreilly Exp $
#
##########################################################################

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../utils \
	      	-I../framework  \
		-I../taskIF \
		-I../DataLog \
		-I../ahrs \
	      	-I/usr/include \
		-I..

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

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

OBJS	=	Octans.o \
		OctansServer.o \
		OctansOutput.o \
		OctansLog.o

TARGETS =       octansServer \
		octans \
		octansTest

all:		$(TARGETS)

octans:	_octans.o $(OBJS) $(LIBS)
	$(LD) $(LDFLAGS) _octans.o $(OBJS) $(LIBS) -o $@@

octansServer:	_octansServer.o $(OBJS) $(LIBS)
	$(LD) $(LDFLAGS) _octansServer.o $(OBJS) $(LIBS) -o $@@

octansTest:	_octansTest.o	$(OBJS) $(LIBS)
	$(LD) $(LDFLAGS) _octansTest.o $(OBJS) $(LIBS) -o $@@

install:
		cp -f $(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 $@@	

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

DEST	    = .

MAKEFILE    = Makefile



depend:	

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

update:
	cvs update $(CC_SRCS) $MAKEFILE

commit:
	cvs commit $(CC_SRCS) $MAKEFILE

include       $(OBJS:.o=.d)
##########################################################################









@
