#############################################################################
#       $Id: Imakefile,v 1.1 1997/02/25 11:54:07 sib Exp $
# $Revision: 1.1 $
#     $Date: 1997/02/25 11:54:07 $
#
# (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:
#	Imakefile for NETwork COMMunications Module
#
# EXPORTS:
#	Targets available after imake configuration:
#		all, libs, bins, install, install.bins, install.incs
#		install.libs install.mans clean
#
#
#############################################################################
# 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        = modules/netcomm

INC_PATH      = -I. \
		-I$(INSTALL_DIR)/include/$(MODULE) \
		-I$(INSTALL_DIR)/include \
		-I$(RELEASE_DIR)/include/$(MODULE) \
		-I$(RELEASE_DIR)/include \
		-I/user/rti/rtilib/include/vx \
		-I/user/rti/scope/include/vx \
		-I/user/rti/rtilib/include/share \
		-I/user/rti/scope/include/share
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             = netcomm
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(netcomm.o)
InstallModuleInc(netcomm.h)
InstallBin(netcomm.o)



