]> git.saurik.com Git - apple/xnu.git/blame - iokit/User/Makefile.user
xnu-344.12.2.tar.gz
[apple/xnu.git] / iokit / User / Makefile.user
CommitLineData
1c79356b
A
1#
2# User level code makefile
3#
4
5export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
6export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
7export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
8export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
9
10include $(MakeInc_cmd)
11include $(MakeInc_def)
12
13INSTALL_DIR= /usr/lib
14LIB_NAME= libIOKit
15BUILD_VERS= .A
16COMPAT_VERS= 1
17LIB_INSTALL_FLAGS= -c -m 555 -S "-S"
18BUILD_NAME= $(LIB_NAME)$(BUILD_VERS).dylib
19FRAMEWORK_NAME= /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
20
21# ALLARCHLIBS = $(foreach archlib, $(INSTALL_ARCHS), $(OBJROOT)/$(KERNEL_CONFIG)_$(archlib)/$(COMPONENT)/User/$(BUILD_NAME))
22
23do_build_all:
24
25$(DSTROOT)$(INSTALL_DIR)/$(BUILD_NAME):
26 ${MKDIR} $(DSTROOT)$(INSTALL_DIR); \
27 (cd $(DSTROOT)$(INSTALL_DIR); \
28 if [ ! -h $(BUILD_NAME) ]; then \
29 $(LN) $(FRAMEWORK_NAME) $(BUILD_NAME); \
30 fi );
31
32$(DSTROOT)$(INSTALL_DIR)/$(LIB_NAME).dylib: $(DSTROOT)$(INSTALL_DIR)/$(BUILD_NAME)
33 (cd $(DSTROOT)$(INSTALL_DIR); \
34 if [ ! -h $(LIB_NAME).dylib ]; then \
35 $(LN) $(BUILD_NAME) $(LIB_NAME).dylib; \
36 fi );
37
38do_build_install: $(DSTROOT)$(INSTALL_DIR)/$(LIB_NAME).dylib
39
40# include $(MakeInc_rule)
41include $(MakeInc_dir)