]> git.saurik.com Git - apple/xnu.git/blob - iokit/User/Makefile.user
xnu-123.5.tar.gz
[apple/xnu.git] / iokit / User / Makefile.user
1 #
2 # User level code makefile
3 #
4
5 export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
6 export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
7 export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
8 export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir
9
10 include $(MakeInc_cmd)
11 include $(MakeInc_def)
12
13 INSTALL_DIR= /usr/lib
14 LIB_NAME= libIOKit
15 BUILD_VERS= .A
16 COMPAT_VERS= 1
17 LIB_INSTALL_FLAGS= -c -m 555 -S "-S"
18 BUILD_NAME= $(LIB_NAME)$(BUILD_VERS).dylib
19 FRAMEWORK_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
23 do_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
38 do_build_install: $(DSTROOT)$(INSTALL_DIR)/$(LIB_NAME).dylib
39
40 # include $(MakeInc_rule)
41 include $(MakeInc_dir)