-#
-# Generated by the NeXT Project Builder.
-#
-# NOTE: Do NOT change this file -- Project Builder maintains it.
-#
-# Put all of your customizations in files called Makefile.preamble
-# and Makefile.postamble (both optional), and Makefile will include them.
-#
-
-NAME = lookup
-
-PROJECTVERSION = 2.8
-PROJECT_TYPE = Component
-
-HFILES = aliasdb.h bootparams.h lookup_types.h lu_overrides.h\
- lu_host.h lu_utils.h netdb_async.h netgr.h printerdb.h
-
-CFILES = lu_alias.c lu_bootp.c lu_bootparam.c lu_fstab.c lu_group.c\
- lu_host.c lu_host_async.c lu_netgroup.c lu_network.c lu_printer.c\
- lu_protocol.c lu_rpc.c lu_service.c lu_user.c lu_utils.c
-
-OTHERSRCS = Makefile.preamble Makefile Makefile.postamble lookup.defs\
- _lu_types.x
-
-
-MAKEFILEDIR = $(MAKEFILEPATH)/pb_makefiles
-CODE_GEN_STYLE = DYNAMIC
-MAKEFILE = subproj.make
-NEXTSTEP_INSTALLDIR = /Local/Developer/System
-LIBS =
-DEBUG_LIBS = $(LIBS)
-PROF_LIBS = $(LIBS)
-
-
-PUBLIC_HEADERS = aliasdb.h bootparams.h printerdb.h
-
-
-
-NEXTSTEP_OBJCPLUS_COMPILER = /usr/bin/cc
-WINDOWS_OBJCPLUS_COMPILER = $(DEVDIR)/gcc
-PDO_UNIX_OBJCPLUS_COMPILER = $(NEXTDEV_BIN)/gcc
-NEXTSTEP_JAVA_COMPILER = /usr/bin/javac
-WINDOWS_JAVA_COMPILER = $(JDKBINDIR)/javac.exe
-PDO_UNIX_JAVA_COMPILER = $(JDKBINDIR)/javac
-
-include $(MAKEFILEDIR)/platform.make
-
--include Makefile.preamble
-
-include $(MAKEFILEDIR)/$(MAKEFILE)
-
--include Makefile.postamble
-
--include Makefile.dependencies
+Project = lookup
+ProductType = staticlib
+Install_Dir = /scratch
+BuildDebug = YES
+BuildProfile = YES
+
+PRODUCT = $(shell tconf --product)
+
+HFILES = aliasdb.h bootparams.h ils.h kvbuf.h libinfo.h netdb.h netdb_async.h \
+ printerdb.h si_data.h si_module.h thread_data.h
+
+CFILES = cache_module.c file_module.c ils.c kvbuf.c libinfo.c\
+ mdns_module.c \
+ search_module.c si_data.c si_getaddrinfo.c si_module.c thread_data.c
+
+ifeq ($(PRODUCT),MacOSX)
+CFILES += ds_module.c
+USERDEFS = /usr/local/include/DSlibinfoMIG.defs
+SERVERDEFS = /usr/local/include/DSlibinfoMIGAsyncReply.defs
+endif
+
+MANPAGES = bootparams.5 gai_strerror.3 getaddrinfo.3 getfsent.3 getgrent.3 \
+ getgrouplist.3 getnameinfo.3 getnetgrent.3 getpwent.3 initgroups.3
+
+Install_Headers = aliasdb.h bootparams.h netdb.h printerdb.h
+Install_Private_Headers = ils.h kvbuf.h libinfo.h netdb_async.h si_data.h \
+ si_module.h thread_data.h
+
+Extra_CC_Flags = -Wall -Werror -fno-common -I. \
+ -I../gen.subproj \
+ -D__MigTypeCheck=1 -D__DARWIN_NON_CANCELABLE=1
+
+ifeq ($(PRODUCT),MacOSX)
+Extra_CC_Flags += -DCONFIG_MAC -DDS_AVAILABLE -DSYNTH_ROOTFS
+endif
+ifeq ($(PRODUCT),AppleTV)
+Extra_CC_Flags += -DCONFIG_APPLETV
+endif
+ifeq ($(PRODUCT),iPhone)
+Extra_CC_Flags += -DCONFIG_IPHONE
+endif
+
+include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
+
+after_install:
+ $(LN) -f "$(DSTROOT)/usr/share/man/man3/getaddrinfo.3" \
+ "$(DSTROOT)/usr/share/man/man3/freeaddrinfo.3"
+ @for LINK in endfsent.3 getfsfile.3 getfsspec.3 getfstype.3 \
+ setfsent.3 ; do \
+ $(LN) -f "$(DSTROOT)/usr/share/man/man3/getfsent.3" \
+ "$(DSTROOT)/usr/share/man/man3/$${LINK}" ; \
+ done
+ @for LINK in endgrent.3 getgrgid.3 getgrgid_r.3 getgrnam.3 \
+ getgrnam_r.3 setgrent.3 setgroupent.3 ; do \
+ $(LN) -f "$(DSTROOT)/usr/share/man/man3/getgrent.3" \
+ "$(DSTROOT)/usr/share/man/man3/$${LINK}" ; \
+ done
+ @for LINK in endnetgrent.3 innetgr.3 setnetgrent.3 ; do \
+ $(LN) -f "$(DSTROOT)/usr/share/man/man3/getnetgrent.3" \
+ "$(DSTROOT)/usr/share/man/man3/$${LINK}" ; \
+ done
+ @for LINK in endpwent.3 getpwnam.3 getpwnam_r.3 getpwuid.3 \
+ getpwuid_r.3 setpassent.3 setpwent.3 setpwfile.3 ; do \
+ $(LN) -f "$(DSTROOT)/usr/share/man/man3/getpwent.3" \
+ "$(DSTROOT)/usr/share/man/man3/$${LINK}" ; \
+ done