head	1.1;
access;
symbols
	Hobson_Rock_14Dec2009:1.1
	Hobson_Rock_16Oct2009:1.1
	Hobson_Rock_29June2009:1.1;
locks; strict;
comment	@# @;


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


desc
@@


1.1
log
@initial checkin of driver for ADAM module
@
text
@##########################################################################
# Copyright 2003 MBARI                                             
##########################################################################
# Summary  : Makefile for ADAM 6017 Analog I/O Module
# Filename : Makefile
# Author   : Hans 
# Project  : 
# Version  : Version 1.0
# Created  : 5/05/2009 
# Archived :
##########################################################################
# Modification History:
# $Header: 
#
##########################################################################

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../LayeredControl \
		-I../taskIF \
		-I../Simulator \
		-I../DataLog 

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

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

OBJS	    =	adam6017.o adam6017Log.o adam6017Output.o adam6017Server.o 

TARGETS =	adam6017Driver adam6017Server adam6017Test 

all:		$(TARGETS)

adam6017Driver:	_adam6017Driver.o $(OBJS) $(LIBS)
	$(LD) $(LDFLAGS) _adam6017Driver.o $(OBJS) $(LIBS) -o $@@

adam6017Server: _adam6017Server.o $(OBJS) $(LIBS)
	$(LD) $(LDFLAGS) _adam6017Server.o $(OBJS) $(LIBS) -o $@@

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

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

include       $(OBJS:.o=.d)

depend:	

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

update:
	cvs update $(CC_SRCS) $MAKEFILE

commit:
	cvs commit $(CC_SRCS) $MAKEFILE

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









# DO NOT DELETE THIS LINE -- make depend depends on it.
@
