]> git.saurik.com Git - apple/libinfo.git/blob - gen.subproj/Makefile
Libinfo-330.10.tar.gz
[apple/libinfo.git] / gen.subproj / Makefile
1 Project = gen
2 ProductType = staticlib
3 Install_Dir = /scratch
4 BuildDebug = YES
5 BuildProfile = YES
6
7 CFILES = ether_addr.c getifaddrs.c \
8 if_indextoname.c if_nameindex.c if_nametoindex.c \
9 inet_ntop.c inet_pton.c map_v4v6.c ip6opt.c rthdr.c vars.c \
10 $(OBJROOT)/_version.c
11
12 MANPAGES = getifaddrs.3 if_indextoname.3 inet6_rthdr_space.3 \
13 gethostbyname.3 inet6_option_space.3 \
14 getprotoent.3 gethostbyname.3 getipnodebyname.3 \
15 getnetent.3 getservent.3 inet6_option_space.3
16
17 Install_Headers = ifaddrs.h
18
19 Extra_CC_Flags = -Wall -fno-common -I. \
20 -I../dns.subproj -I../lookup.subproj \
21 -D__DARWIN_NON_CANCELABLE=1 -DINET6=1
22
23
24 include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
25
26 $(OBJROOT)/_version.c:
27 /Developer/Makefiles/bin/version.pl Libinfo > $@
28
29 after_install:
30 @for LINK in endhostent.3 gethostbyaddr.3 gethostbyname2.3 \
31 gethostent.3 herror.3 hstrerror.3 sethostent.3 ; do \
32 $(LN) -f "$(DSTROOT)/usr/share/man/man3/gethostbyname.3" \
33 "$(DSTROOT)/usr/share/man/man3/$${LINK}" ; \
34 done
35 $(LN) -f "$(DSTROOT)/usr/share/man/man3/getifaddrs.3" \
36 "$(DSTROOT)/usr/share/man/man3/freeifaddrs.3"
37 @for LINK in freehostent.3 getipnodebyaddr.3 ; do \
38 $(LN) -f "$(DSTROOT)/usr/share/man/man3/getipnodebyname.3" \
39 "$(DSTROOT)/usr/share/man/man3/$${LINK}" ; \
40 done
41 @for LINK in endnetent.3 getnetbyaddr.3 getnetbyname.3 \
42 setnetent.3 ; do \
43 $(LN) -f "$(DSTROOT)/usr/share/man/man3/getnetent.3" \
44 "$(DSTROOT)/usr/share/man/man3/$${LINK}" ; \
45 done
46 @for LINK in endprotoent.3 getprotobyname.3 getprotobynumber.3 \
47 setprotoent.3 ; do \
48 $(LN) -f "$(DSTROOT)/usr/share/man/man3/getprotoent.3" \
49 "$(DSTROOT)/usr/share/man/man3/$${LINK}" ; \
50 done
51 @for LINK in endservent.3 getservbyname.3 getservbyport.3 \
52 setservent.3 ; do \
53 $(LN) -f "$(DSTROOT)/usr/share/man/man3/getservent.3" \
54 "$(DSTROOT)/usr/share/man/man3/$${LINK}" ; \
55 done
56 @for LINK in if_freenameindex.3 if_nameindex.3 if_nametoindex.3 ; do \
57 $(LN) -f "$(DSTROOT)/usr/share/man/man3/if_indextoname.3" \
58 "$(DSTROOT)/usr/share/man/man3/$${LINK}" ; \
59 done
60 @for LINK in inet6_option_alloc.3 inet6_option_append.3 \
61 inet6_option_find.3 inet6_option_init.3 inet6_option_next.3 ; do \
62 $(LN) -f "$(DSTROOT)/usr/share/man/man3/inet6_option_space.3" \
63 "$(DSTROOT)/usr/share/man/man3/$${LINK}" ; \
64 done
65 @for LINK in inet6_rthdr_add.3 inet6_rthdr_getaddr.3 \
66 inet6_rthdr_getflags.3 inet6_rthdr_init.3 \
67 inet6_rthdr_lasthop.3 inet6_rthdr_reverse.3 \
68 inet6_rthdr_segments.3 ; do \
69 $(LN) -f "$(DSTROOT)/usr/share/man/man3/inet6_rthdr_space.3" \
70 "$(DSTROOT)/usr/share/man/man3/$${LINK}" ; \
71 done