#############################################################################
#       $Id: Imakefile,v 1.3 1997/01/22 18:39:55 sib Exp $
# $Revision: 1.3 $
#     $Date: 1997/01/22 18:39:55 $
#   $Author: sib $
#    $State: Exp $
#
# PROJECT:	Carnegie Mellon Lunar Rover Terestrial Prototype
#
# FILE:		Imakefile (Imakefile.proto,v 1.11 1994/03/10 21:16:17 jwest)
#
# DESCRIPTION:
#  This imakefile is for building the devices
#  
#
# EXPORTS:
#  First use configure [vx68k, sun4, etc] and a make file will be created.
#  Make targets available after configure: all, libs, bins, install, 
#  install.bins, install.incs,install.libs install.mans clean and objects.
#
# HISTORY:
#  Use "cvs log".
#
# (c) Copyright 1994 Carnegie Mellon University. All rights reserved.
#############################################################################

.KEEP_STATE:


# Subdirectories
SUBDIRS       = vadm vmio vadc vscsi vser vcpu


# Paths
INSTALL_DIR   = ../..

MODULE	      = devices

INC_PATH      = -I. \
		-I$(INSTALL_DIR)/include \
		-I$(RELEASE_DIR)/include \
		-I$(GNU_DIR)/include/gcc \
		-I/usr/local/include \
		-I/usr/include

LIB_PATH      = -L. \
		-L$(INSTALL_DIR)/lib \
		-L$(RELEASE_DIR)/lib \


# Compiler Options
DEFINES	      = -DVERBOSE \
		-DBOMBASTIC
CFLAGS        = -g -Wall -Wshadow -Wpointer-arith -Wcast-qual $(CFG_CFLAGS)
CPPFLAGS      = $(DEFINES) $(INC_PATH) $(CFG_CPPFLAGS)


# Loader Options - NONE


#Sources and Objects - NONE

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

LIBRARIES		= device_hardware

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

$(SUBDIRS): emptyrule
	$(RECURSE_CMD)

all:: configure libs

configure := RECURSE_CMD = \
	cd $@; make

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

InstallModuleInc(devices.h)

