]> git.saurik.com Git - apple/libinfo.git/blame - lookup.subproj/Makefile
Libinfo-324.tar.gz
[apple/libinfo.git] / lookup.subproj / Makefile
CommitLineData
d49d4c81
A
1Project = lookup
2ProductType = staticlib
3Install_Dir = /scratch
4BuildDebug = YES
5BuildProfile = YES
6
7PRODUCT = $(shell tconf --product)
8
9HFILES = 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
11
12CFILES = cache_module.c file_module.c ils.c kvbuf.c libinfo.c\
13 mdns_module.c \
14 search_module.c si_data.c si_getaddrinfo.c si_module.c thread_data.c
15
16ifeq ($(PRODUCT),MacOSX)
17CFILES += ds_module.c
18USERDEFS = /usr/local/include/DSlibinfoMIG.defs
19SERVERDEFS = /usr/local/include/DSlibinfoMIGAsyncReply.defs
20endif
21
22MANPAGES = bootparams.5 gai_strerror.3 getaddrinfo.3 getfsent.3 getgrent.3 \
23 getgrouplist.3 getnameinfo.3 getnetgrent.3 getpwent.3 initgroups.3
24
25Install_Headers = aliasdb.h bootparams.h netdb.h printerdb.h
26Install_Private_Headers = ils.h kvbuf.h libinfo.h netdb_async.h si_data.h \
27 si_module.h thread_data.h
28
29Extra_CC_Flags = -Wall -Werror -fno-common -I. \
30 -I../gen.subproj \
31 -D__MigTypeCheck=1 -D__DARWIN_NON_CANCELABLE=1
32
33ifeq ($(PRODUCT),MacOSX)
34Extra_CC_Flags += -DCONFIG_MAC -DDS_AVAILABLE -DSYNTH_ROOTFS
35endif
36ifeq ($(PRODUCT),AppleTV)
37Extra_CC_Flags += -DCONFIG_APPLETV
38endif
39ifeq ($(PRODUCT),iPhone)
40Extra_CC_Flags += -DCONFIG_IPHONE
41endif
42
43include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
44
45after_install:
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 \
49 setfsent.3 ; do \
50 $(LN) -f "$(DSTROOT)/usr/share/man/man3/getfsent.3" \
51 "$(DSTROOT)/usr/share/man/man3/$${LINK}" ; \
52 done
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}" ; \
57 done
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}" ; \
61 done
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}" ; \
66 done