# 
# $Makefile$
#
# x-kernel v3.3
#
# Copyright (c) 1996,1993,1991,1990  Arizona Board of Regents
#
# $Log: Makefile,v $
# Revision 1.4  1996/06/03 23:33:41  slm
# Updated version & copyright.
#
# Revision 1.3  1996/01/27  00:04:03  slm
# Added OBJS to DEST_BIN_DIR.
#
# Revision 1.2  1995/10/17  15:28:44  slm
# Create .o files in OBJS directories.
#
# Revision 1.1  1995/07/29  03:06:35  slm
# Initial revision
#
# Revision 1.25.1.1.1.1  1994/11/14  15:42:31  hkaram
# New branch
#
# Revision 1.25.1.1  1994/10/14  22:08:01  menze
# Install targets are now in common makefiles
# Added usc
#
# Revision 1.25  1994/10/14  18:57:32  menze
#   [ 1994/07/18          menze ]
#   Added libraries for phostnumber and pnetnum under solaris
#   dirname is only built for mach
#
# Revision 1.24  1994/01/04  20:46:33  menze
# Utility programs are now built from an xkernel build directory.
#

XRT = ..

DIRS = compose

# The ptbldump utility requires certain object files from the xkernel tree and
# is currently only used by standalone platforms, so we don't build it by
# default.  Define 'XK_UTILS = ALL' to include it.

ifeq ($(XK_UTILS),ALL)
DIRS += ptbldump
endif

ifeq ($(XK_VIEW),TRUE)
DIRS += dump_trace extrace ptcp
endif

SIMPLE_PGMS = fixRelPaths fperm pfakeether phostnumber pnetnum promfile \
              random_int 

ifeq ($(XPLATFORM),solaris)
phostnumber_LIBS = -lnsl 
pnetnum_LIBS = -lnsl 
endif

# The normal 'HOW' definition includes DEBUG/OPTIMIZE and the xkernel type
# distinctions which aren't relevant for utilities, so we override it here.

HOW := $(XPLATFORM)-$(MACHINE)

include $(MAKE_INCLUDE)/Makefile.common

WARNINGS :=

DEST_BIN_DIR = $(ABSOLUTE_XRT)/bin/$(HOW)
