| 1 | Project = lookup |
| 2 | ProductType = staticlib |
| 3 | Install_Dir = /scratch |
| 4 | BuildDebug = YES |
| 5 | BuildProfile = YES |
| 6 | |
| 7 | PRODUCT = $(shell tconf --product) |
| 8 | |
| 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 |
| 11 | |
| 12 | CFILES = 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 | |
| 16 | ifeq ($(PRODUCT),MacOSX) |
| 17 | CFILES += ds_module.c |
| 18 | USERDEFS = /usr/local/include/DSlibinfoMIG.defs |
| 19 | SERVERDEFS = /usr/local/include/DSlibinfoMIGAsyncReply.defs |
| 20 | endif |
| 21 | |
| 22 | MANPAGES = bootparams.5 gai_strerror.3 getaddrinfo.3 getfsent.3 getgrent.3 \ |
| 23 | getgrouplist.3 getnameinfo.3 getnetgrent.3 getpwent.3 initgroups.3 |
| 24 | |
| 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 |
| 28 | |
| 29 | Extra_CC_Flags = -Wall -Werror -fno-common -I. \ |
| 30 | -I../gen.subproj \ |
| 31 | -D__MigTypeCheck=1 -D__DARWIN_NON_CANCELABLE=1 |
| 32 | |
| 33 | ifeq ($(PRODUCT),MacOSX) |
| 34 | Extra_CC_Flags += -DCONFIG_MAC -DDS_AVAILABLE -DSYNTH_ROOTFS |
| 35 | endif |
| 36 | ifeq ($(PRODUCT),AppleTV) |
| 37 | Extra_CC_Flags += -DCONFIG_APPLETV |
| 38 | endif |
| 39 | ifeq ($(PRODUCT),iPhone) |
| 40 | Extra_CC_Flags += -DCONFIG_IPHONE |
| 41 | endif |
| 42 | |
| 43 | include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make |
| 44 | |
| 45 | after_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 |