#
# Mach Operating System
# Copyright (c) 1989 Carnegie-Mellon University
# All rights reserved.  The CMU software License Agreement specifies
# the terms and conditions for use and redistribution.
#
#
# HISTORY
# $Log:	Makeconf,v $
# Revision 1.1.1.1  92/03/02  17:54:52  pha
# osf/1 server V3.5
# 
# Revision 1.1  92/03/02  17:54:51  pha
# Initial revision
# 
# Revision 1.1.1.1  92/03/02  17:50:46  pha
# osf/1 server V3.5
# 
# Revision 1.1  92/03/02  17:50:45  pha
# Initial revision
# 
# Revision 3.1  91/11/07  15:14:55  condict
# Combined the contents of server/Makeconf, emulator/Makeconf and
# Makefile.machine into one root Makeconf file (Paul Roy's changes to
# support shadow source trees).  All three former files have been deleted.
# 
# Revision 2.4  91/10/14  21:27:59  roy
# Fix MKMACHLIB def.
# 
# Revision 2.3  91/10/08  17:44:35  rabii
# 	Added change for making shadowing work
# 
#

#
# Specify the type of target machine and operating system for the build.
#
# NOTE1: By default, target machine type will be assumed to be same as the
# machine being used to do the build.  This can be overridden in the shell
# environment, by setting $TARGET_CPU and $target_cpu
#
# NOTE2: The following uses the CMU extensions to make, namely the CPUTYPE
# and cputype macros:
#
TARGET_CPU=${TARGET_CPU?${TARGET_CPU}:${CPUTYPE}}
target_cpu=${target_cpu?${target_cpu}:${cputype}}

# Need to distinguish between the cpu type (TARGET_CPU) and the make/model
# of computer in which that cpu is installed.  The following defines the latter
# in the case of the i386.  For other cpu types, MODEL and CPU are the same.
# Use another substitution in an intermediate assignment to do the same thing
# for a different cpu type:
TARGET_MODEL = ${TARGET_CPU:I386=AT386}
target_model = ${target_cpu:i386=at386}

# This one has to be in the form produced by the AFS "sys" command or "@sys"
# translation, which has an operating system name appended to a cpu type.  For
# us, the only valid operating system is Mach 3.0, so:
target_sys = ${target_cpu}_mach

.EXPORT: TARGET_CPU target_cpu TARGET_MODEL target_model target_sys

SOURCEDIR=${BCSSBASE?$(BCSSBASE):/afs/gr.osf.org/projects/osf1_svr/svr/src/latest}
OBJECTDIR=../../obj/${target_sys}/${BCSBBASE?$(BCSBBASE:t):latest}

MKREL= $(MAKECONF:h)/../../../mk/release/${target_sys}/${BCSBBASE?$(BCSBBASE:t):latest}
MKINC= ${MKREL}/include
MKLIB= ${MKREL}/lib
MKBIN= ${MKREL}/bin

.EXPORT: MKINC MKLIB MKBIN

