# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.72 92/09/14 11:44:22 rws Exp $
#
# The cpp used on this machine replaces all newlines and multiple tabs and
# spaces in a macro expansion with a single space.  Imake tries to compensate
# for this, but is not always successful.
#

###########################################################################
# Makefile generated from "Imake.tmpl" and </tmp/IIf.a0035O>
# $Id: Imake.tmpl,v 1.1.1.1 1996/12/18 05:50:25 sib Exp $
#
# Platform-specific parameters may be set in the appropriate .cf
# configuration files.  Site-wide parameters may be set in the file
# site.def.  Full rebuilds are recommended if any parameters are changed.
#
# If you absolutely can't get imake to work, you'll need to set the
# variables at the top of each Makefile as well as the dependencies at the
# bottom (makedepend will do this automatically).
#

###########################################################################
# Platform-specific configuration parameters - edit vx68k.cf to change
###########################################################################

# Platform:  $Id: vx68k.cf,v 1.1.1.1 1996/12/18 05:50:25 sib Exp $

VXWORKS_DIR			= /usr/vxworks/vx5.2
VXWORKS_COMP_DIR		= /usr/rti/gnu/sparcSol2-m68k/bin

###########################################################################
# Site-specific configuration parameters - edit site.def to change
###########################################################################

# Site:  $Id: site.def,v 1.1.1.1 1996/12/18 05:50:25 sib Exp $

###########################################################################
# Configured Parameters
# $Id: Imake.tmpl,v 1.1.1.1 1996/12/18 05:50:25 sib Exp $
###########################################################################

RELEASE_DIR	= /usr/sib/lri/software/vx68k

CURRENT_DIR	= .

CC		= $(VXWORKS_COMP_DIR)/g++
CCC		= $(VXWORKS_COMP_DIR)/g++
CFG_CFLAGS	= -fno-builtin -nostdinc -m68881 -fno-gnu-linker -B/usr/rti/gnu/sparcSol2-m68k/lib/gcc-lib/ -DCPU=MC68020 -DVXWORKS -DVX68K -I$(VXWORKS_DIR)/h
CFG_CPPFLAGS.cfg=

LD		= $(VXWORKS_COMP_DIR)/m68k-ld
CFG_LDFLAGS	=

RANLIB		= $(VXWORKS_COMP_DIR)/m68k-ranlib

AR		= $(VXWORKS_COMP_DIR)/m68k-ar

INSTALL		= install
RM		= rm -f
MV		= mv -f

COMPILE.c	= $(CC) $(CFLAGS) $(CPPFLAGS) -c

COMPILE.cc	= $(CCC) $(CFLAGS) $(CPPFLAGS) -c

LINK.c		= $(LD) $(LDFLAGS) -r

###########################################################################
# Imake rules for building libraries, programs, scripts, and data files
# rules:  $Id: Imake.rules,v 1.1.1.1 1996/12/18 05:50:25 sib Exp $

###########################################################################
# start of Imakefile
###########################################################################

# ############################################################################
#       $Id: Imakefile,v 1.1 1997/01/28 06:49:40 sib Exp $
# $Revision: 1.1 $
#     $Date: 1997/01/28 06:49:40 $
#
# (c) Copyright 1994 Carnegie Mellon University. All rights reserved.
#
# PROJECT:	Atacama Desert Trek
#
# FILE:		Imakefile
#		Based on Erebus prototypical Imakefile
#		Imakefile.proto,v 1.7 1994/03/09 19:09:26 jwest Exp
#
# DESCRIPTION:
#	RELAY interface class
#
# EXPORTS:
#	Targets available after imake configuration:
#		all, libs, bins, install, install.bins, install.incs
#		install.libs install.mans clean
#
# HISTORY:
# $Log: Imakefile,v $
# Revision 1.1  1997/01/28  06:49:40  sib
# Got all intefaces working and tested them.
#
# Revision 1.2  1997/01/18  20:53:53  sib
# Modified to get encoder interface completely working
#
# Revision 1.1.1.1  1997/01/15  22:27:28  sib
# Initial cvs import of the vxworks 68k code so far
#
# Revision 1.1.1.1  1996/12/18  05:51:35  sib
# Software for the Atacama Desert Trek for all computing platforms
#
#
# ############################################################################
# Required Makefile Macro Definitions used by Imake macros
#
# INSTALL_DIR		Must not be empty.
#			Used by the Install[Inc Bin ...](..) macros
# SUBDIRS		List of subdirectories you generally want make
#			to recursively go through.
# CFLAGS		Used during compilation/linking
# CPPFLAGS		Used during compilation/linking
# LDLIBS		Used during compilation/linking
# LDFLAGS		Used during compilation/linking
# FILES_TO_CLEAN	Additional files to rm on 'make clean'
#
# See the Imake generated Makefile for how these macros are used.
#
# Some (not all listed here) useful macro functions:
#
# "ComplexProgramTarget(program,objects,deplibs,locallibs)"
#	<program> is dependent on <deplibs>
#	Program is build by
#		 $(LINK.c) -o $@ objects locallibs $(LDLIBS)
# "SimpleProgramTarget(program)"
#	Equivalent to "ComplexProgramTarget(program,program.o,,)"
# "NormalProgramTarget(program,objects)"
#	Equivalent to "ComplexProgramTarget(program,objects,,)"
# "NormalLibraryTarget(libname,objlist)"
# 	lib<libname>.a is dependent on <objlist>
#	Builds lib<libname>.a from <objlist>
# "InstallInc(singleFile)"
#	installs <singleFile> to $(INSTALL_DIR)/include upon
#		"make install" or "make install.incs"
# "InstallBin(singleFile)"
#	installs <singleFile> to $(INSTALL_DIR)/bin upon
#		"make install" or "make install.bin"
# "InstallLib(singleFile)"
#	installs <singleFile> to $(INSTALL_DIR)/lib upon
#		"make install" or "make install.lib"
#
# Targets automatically generated:  libs, bins, install, install.bins
#	install.incs install.libs install.mans clean

.KEEP_STATE:

# Paths
# RELEASE_DIR defined by configuration
# CURRENT_DIR defined by configuration
INSTALL_DIR   = ../../..

MODULE        = interfaces/relay

INC_PATH      = -I. \
		-I$(INSTALL_DIR)/include/$(MODULE) \
		-I$(INSTALL_DIR)/include \
		-I$(RELEASE_DIR)/include/$(MODULE) \
		-I$(RELEASE_DIR)/include
LIB_PATH      = -L. \
		-L$(INSTALL_DIR)/lib \
		-L$(RELEASE_DIR)/lib
# Compiler Options
# CFG_CFLAGS   defined by configuration
# CFG_CPPFLAGS defined by configuration
DEFINES       = -D__PROTOTYPE_5_2
CFLAGS        = -g -Wall -Wshadow -Wpointer-arith -Wcast-qual $(CFG_CFLAGS)
CPPFLAGS      = $(DEFINES) $(INC_PATH) $(CFG_CPPFLAGS)

# Loader Options
# CFG_LDFLAGS defined by configuration
LIBRARIES             = relay
DEP_LIBS              = $(LIBRARIES:%=lib%.a)
LOCAL_LIBS	      = $(LIB_PATH) $(LIBRARIES:%=-l%)

LDLIBS		      =

LDFLAGS		      = $(LIB_PATH) $(CFG_LDFLAGS)

FILES_TO_CLEAN	      = core \#*\# *~ .*~ *.o .make.state

# ############################################################################
# Targets
# ############################################################################

all:: libs bins

bins:: relay.o

installFiles.incs:: $(INSTALL_DIR)/include/$(MODULE)/relay.h

RM_INSTALL_CMD = $(RM)
INSTALL_FILE_LIST += $(INSTALL_DIR)/include/$(MODULE)/relay.h
$(INSTALL_DIR)/include/$(MODULE)/relay.h:: relay.h
	@if [ ! -d $(INSTALL_DIR)/include/$(MODULE) ]; then \
	mkdir -p $(INSTALL_DIR)/include/$(MODULE); \
	fi
	$(INSTALL) -m 444 relay.h $(INSTALL_DIR)/include/$(MODULE)

installFiles.bins:: $(INSTALL_DIR)/bin/relay.o

RM_INSTALL_CMD = $(RM)
INSTALL_FILE_LIST += $(INSTALL_DIR)/bin/relay.o
$(INSTALL_DIR)/bin/relay.o:: relay.o
	@if [ ! -d $(INSTALL_DIR)/bin ]; then \
	mkdir -p $(INSTALL_DIR)/bin; \
	fi
	$(INSTALL) -m 555 relay.o $(INSTALL_DIR)/bin

###########################################################################
# common rules for all Makefiles - do not edit

emptyrule::

bins:: emptyrule
libs:: emptyrule

clean:: $(SUBDIRS)

clean::
	$(RM) $(FILES_TO_CLEAN)

uninstall:: $(SUBDIRS)
	$(RM_INSTALL_CMD) $(INSTALL_FILE_LIST)

.c.o:
	$(COMPILE.c) -o $@ $<

# C++ support

.SUFFIXES: suffixes .cc .cxx
.cc:
	$(LINK.c) -o $@ $< $(LDLIBS)
.cc.o:
	$(COMPILE.cc) -o $@ $<
.cxx:
	$(LINK.c) -o $@ $< $(LDLIBS)
.cxx.o:
	$(COMPILE.cc) -o $@ $<

###########################################################################
# rules for building in SUBDIRS - do not edit

allSubdirs:: $(SUBDIRS)

installFiles.bins:: emptyrule
installFiles.incs:: emptyrule
installFiles.libs:: emptyrule
installFiles.mans:: emptyrule

install: install.incs install.libs install.binsMans

install.binsMans: $(SUBDIRS) installFiles.bins installFiles.mans
install.incs: $(SUBDIRS) installFiles.incs
install.libs: $(SUBDIRS) installFiles.libs

all := RECURSE_CMD = \
	cd $@; \
	$(MAKE)

allSubdirs := RECURSE_CMD = \
	cd $@; \
	$(MAKE)

install := RECURSE_CMD = \
	cd $@; \
	$(MAKE) install

install.binsMans := RECURSE_CMD = \
	cd $@; \
	$(MAKE) install.binsMans

install.incs := RECURSE_CMD = \
	cd $@; \
	$(MAKE) install.incs

install.libs := RECURSE_CMD = \
	cd $@; \
	$(MAKE) install.libs

uninstall := RECURSE_CMD = \
	cd $@; \
	$(MAKE) uninstall

clean := RECURSE_CMD = \
	cd $@; \
	$(MAKE) clean

depend:
	makedepend $(INC_PATH) -I$(VXWORKS_DIR)/h *.cxx *.c *.cc *.c++ *.cpp

$(SUBDIRS): emptyrule
	$(RECURSE_CMD)

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

relay.o: relay.h ../../../include/common/nomad_global.h
relay.o: /usr/vxworks/vx5.2/h/vxWorks.h /usr/vxworks/vx5.2/h/types/vxCpu.h
relay.o: /usr/vxworks/vx5.2/h/types/vxArch.h
relay.o: /usr/vxworks/vx5.2/h/types/vxParams.h
relay.o: /usr/vxworks/vx5.2/h/types/vxTypesBase.h
relay.o: /usr/vxworks/vx5.2/h/types/vxTypes.h
relay.o: /usr/vxworks/vx5.2/h/types/vxANSI.h
relay.o: /usr/vxworks/vx5.2/h/types/vxTypesOld.h
relay.o: /usr/vxworks/vx5.2/h/sys/types.h /usr/vxworks/vx5.2/h/sysLib.h
relay.o: /usr/vxworks/vx5.2/h/bootLib.h /usr/vxworks/vx5.2/h/vme.h
relay.o: /usr/vxworks/vx5.2/h/stdioLib.h /usr/vxworks/vx5.2/h/stdio.h
relay.o: /usr/vxworks/vx5.2/h/classLib.h /usr/vxworks/vx5.2/h/vwModNum.h
relay.o: /usr/vxworks/vx5.2/h/objLib.h /usr/vxworks/vx5.2/h/errno.h
relay.o: /usr/vxworks/vx5.2/h/memLib.h /usr/vxworks/vx5.2/h/private/objLibP.h
relay.o: /usr/vxworks/vx5.2/h/private/classLibP.h
relay.o: ../../../include/common/nomad_types.h
relay.o: ../../../include/devices/devices.h ../../../include/robot/robot.h
relay.o: ../../../include/interfaces/interface.h
relay.o: ../../../include/devices/device_hardware.h
relay.o: ../../../include/devices/devices.h
relay.o: ../../../include/devices/vmio/vmio14.h
relay.o: ../../../include/devices/vmio/vmio10.h /usr/vxworks/vx5.2/h/semLib.h
relay.o: ../../../include/devices/vmio/vmio28.h
relay.o: ../../../include/devices/vadc/vadc.h
relay.o: ../../../include/devices/vadm/vadm.h
relay.o: ../../../include/modules/modules.h
relay.o: ../../../include/components/components.h
relay.o: ../../../include/components/amps/amps.h
relay.o: ../../../include/interfaces/encoder/encoder.h
relay.o: ../../../include/interfaces/adc/adc.h
relay.o: ../../../include/interfaces/dac/dac.h
relay.o: ../../../include/interfaces/di/di.h
relay.o: ../../../include/interfaces/do/do.h
relay.o: ../../../include/components/traject/traject.h
relay.o: ../../../include/components/pid/pid.h
