##########################################################################
# Copyright 1999 MBARI                                             
##########################################################################
# Summary  : Makefile for Paroscientific depth sensor
# 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/tests/Makefile,v 1.9 2000/08/11 17:52:12 oreilly Exp $
#
##########################################################################

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

AUV_BIN_DIR = ../bin

DEBUG 	    = -g1
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../taskIF \
	      	-I/usr/include \
		-I../DataLog \
		-I../Simulator \
		-I../LayeredControl 

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

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


OBJS	=	PeriodicTest.o \
		PeriodicTestLog.o

all:		periodicTest

AGTailConeTest: AGTailConeTest.o $(LIBS)

periodicTest:	periodicTest.o $(OBJS) $(LIBS)

exceptionTest:	exceptionTest.o $(OBJS) $(LIBS)

consoleTest:	consoleTest.o $(OBJS) $(LIBS)

serialTest:	serialTest.o $(LIBS)

navtest:	navtest.o $(OBJS) $(LIBS) /usr/local/lib/gctpc/geolib.a

mathTest:	mathTest.o $(OBJS) $(LIBS) 

mathTest2:	mathTest2.o $(OBJS) $(LIBS) 

getClockRes:	getClockRes.o $(LIBS)

cheby:	cheby.o $(LIBS)

chebyTime:	chebyTime.o $(LIBS)

wstest:	wstest.o $(LIBS)

AGtailcone: AGtailcone.o $(LIBS) 


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

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

DEST	    = .

MAKEFILE    = Makefile

include       $(OBJS:.o=.d)

depend:	

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

update:
	cvs update $(CC_SRCS) $MAKEFILE

commit:
	cvs commit $(CC_SRCS) $MAKEFILE

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









