2 ProductType = staticlib
7 PRODUCT = $(shell tconf --product)
9 HFILES = aliasdb.h bootparams.h ils.h kvbuf.h libinfo.h netdb.h netdb_async.h \
10 printerdb.h si_data.h si_module.h thread_data.h
12 CFILES = cache_module.c file_module.c ils.c kvbuf.c libinfo.c\
14 search_module.c si_data.c si_getaddrinfo.c si_module.c thread_data.c
16 ifeq ($(PRODUCT),MacOSX)
18 USERDEFS = /usr/local/include/DSlibinfoMIG.defs
19 SERVERDEFS = /usr/local/include/DSlibinfoMIGAsyncReply.defs
22 MANPAGES = bootparams.5 gai_strerror.3 getaddrinfo.3 getfsent.3 getgrent.3 \
23 getgrouplist.3 getnameinfo.3 getnetgrent.3 getpwent.3 initgroups.3
25 Install_Headers = aliasdb.h bootparams.h netdb.h printerdb.h
26 Install_Private_Headers = ils.h kvbuf.h libinfo.h netdb_async.h si_data.h \
27 si_module.h thread_data.h
29 Extra_CC_Flags = -Wall -Werror -fno-common -I. \
31 -D__MigTypeCheck=1 -D__DARWIN_NON_CANCELABLE=1
33 ifeq ($(PRODUCT),MacOSX)
34 Extra_CC_Flags += -DCONFIG_MAC -DDS_AVAILABLE -DSYNTH_ROOTFS
36 ifeq ($(PRODUCT),AppleTV)
37 Extra_CC_Flags += -DCONFIG_APPLETV
39 ifeq ($(PRODUCT),iPhone)
40 Extra_CC_Flags += -DCONFIG_IPHONE
43 include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
46 $(LN) -f "$(DSTROOT)/usr/share/man/man3/getaddrinfo.3" \
47 "$(DSTROOT)/usr/share/man/man3/freeaddrinfo.3"
48 @for LINK in endfsent.3 getfsfile.3 getfsspec.3 getfstype.3 \
50 $(LN) -f "$(DSTROOT)/usr/share/man/man3/getfsent.3" \
51 "$(DSTROOT)/usr/share/man/man3/$${LINK}" ; \
53 @for LINK in endgrent.3 getgrgid.3 getgrgid_r.3 getgrnam.3 \
54 getgrnam_r.3 setgrent.3 setgroupent.3 ; do \
55 $(LN) -f "$(DSTROOT)/usr/share/man/man3/getgrent.3" \
56 "$(DSTROOT)/usr/share/man/man3/$${LINK}" ; \
58 @for LINK in endnetgrent.3 innetgr.3 setnetgrent.3 ; do \
59 $(LN) -f "$(DSTROOT)/usr/share/man/man3/getnetgrent.3" \
60 "$(DSTROOT)/usr/share/man/man3/$${LINK}" ; \
62 @for LINK in endpwent.3 getpwnam.3 getpwnam_r.3 getpwuid.3 \
63 getpwuid_r.3 setpassent.3 setpwent.3 setpwfile.3 ; do \
64 $(LN) -f "$(DSTROOT)/usr/share/man/man3/getpwent.3" \
65 "$(DSTROOT)/usr/share/man/man3/$${LINK}" ; \