#############################################################################
#       $Id: Imakefile,v 1.3 1997/02/06 16:27:37 sib Exp $
# $Revision: 1.3 $
#     $Date: 1997/02/06 16:27:37 $
#
# (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:
#	Compass components
#
# 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.3  1997/02/06  16:27:37  sib
# Got pointing system demo up.
#
# Revision 1.2  1997/02/04  08:09:56  sib
# Made Trajectory generator work with everything else.
#
# Revision 1.1.1.1  1997/01/09  18:00:37  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
#
# Revision 1.2  1994/03/18  20:50:53  hmp
# Split more logically into pio/adc/dac sections
#
# Revision 1.1  1994/03/10  16:30:42  hmp
# Converted to Imake system
#
#############################################################################
# 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        = components/compass

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             = compass compass_cwrap
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


ObjectTarget(compass.o)
InstallModuleInc(compass.h)
InstallBin(compass.o)



