#
# User level code makefile
#

export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir

include $(MakeInc_cmd)
include $(MakeInc_def)

INSTALL_DIR= 		/usr/lib
LIB_NAME=		libIOKit
BUILD_VERS=		.A
COMPAT_VERS=		1
LIB_INSTALL_FLAGS= 	-c -m 555 -S "-S"
BUILD_NAME=		$(LIB_NAME)$(BUILD_VERS).dylib
FRAMEWORK_NAME=		/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit

# ALLARCHLIBS	= $(foreach archlib, $(INSTALL_ARCHS), $(OBJROOT)/$(KERNEL_CONFIG)_$(archlib)/$(COMPONENT)/User/$(BUILD_NAME))

do_build_all:

$(DSTROOT)$(INSTALL_DIR)/$(BUILD_NAME):	
	${MKDIR} $(DSTROOT)$(INSTALL_DIR);				\
	(cd $(DSTROOT)$(INSTALL_DIR);					\
	if [ ! -h $(BUILD_NAME) ]; then					\
			$(LN) $(FRAMEWORK_NAME) $(BUILD_NAME);	 	\
	fi ); 

$(DSTROOT)$(INSTALL_DIR)/$(LIB_NAME).dylib:	$(DSTROOT)$(INSTALL_DIR)/$(BUILD_NAME)
	(cd $(DSTROOT)$(INSTALL_DIR);					\
	if [ ! -h $(LIB_NAME).dylib ]; then				\
			$(LN) $(BUILD_NAME) $(LIB_NAME).dylib;		\
	fi ); 

do_build_install: $(DSTROOT)$(INSTALL_DIR)/$(LIB_NAME).dylib

# include $(MakeInc_rule)
include $(MakeInc_dir)
