Debian Codegraph @

include/Makefile

raw symbols SCIP
1 ## Currently just handles creation of the automatically generated header
2 ## files. Eventually, rules for installing INN's header files will go
3 ## here.
4
5 include ../Makefile.global
6
7 top = ..
8
9 ALL = inn/portable-getaddrinfo.h inn/portable-getnameinfo.h \
10 inn/portable-macros.h inn/portable-socket.h \
11 inn/portable-stdbool.h inn/system.h inn/version.h
12
13 EXTRA = config.h inn/paths.h
14
15 all: $(ALL) $(EXTRA)
16
17 warnings: all
18
19 bootstrap:
20
21 clean:
22 rm -f $(ALL)
23
24 clobber distclean maintclean: clean
25 rm -f $(EXTRA)
26
27 depend:
28
29 profiled: all
30
31 $(EXTRA):
32 @echo Run configure before running make. See INSTALL for details.
33 @exit 1
34
35
36 ## Build rules.
37
38 inn/portable-getaddrinfo.h: portable/getaddrinfo.h
39 $(SED) 's/"portable\//"inn\/portable-/g' portable/getaddrinfo.h \
40 | $(SED) -e 's/HAVE_GETADDRINFO/INN_HAVE_GETADDRINFO/g' \
41 -e 's/config\.h/inn\/system.h/g' \
42 -e 's/portable\/socket\.h/inn\/portable-socket.h/g' \
43 > inn/portable-getaddrinfo.h
44
45 inn/portable-getnameinfo.h: portable/getnameinfo.h
46 $(SED) 's/"portable\//"inn\/portable-/g' portable/getnameinfo.h \
47 | $(SED) -e 's/HAVE_GETNAMEINFO/INN_HAVE_GETNAMEINFO/g' \
48 -e 's/config\.h/inn\/system.h/g' \
49 -e 's/portable\/socket\.h/inn\/portable-socket.h/g' \
50 > inn/portable-getnameinfo.h
51
52 inn/portable-macros.h: portable/macros.h
53 $(SED) 's/"portable\//"inn\/portable-/g' portable/macros.h \
54 > inn/portable-macros.h
55
56 inn/portable-socket.h: portable/socket.h
57 $(SED) 's/"portable\//"inn\/portable-/g' portable/socket.h \
58 | $(SED) -e 's/HAVE_BROKEN_IN6_ARE_ADDR_EQUAL/INN_HAVE_BROKEN_IN6_ARE_ADDR_EQUAL/g' \
59 -e 's/HAVE_GETADDRINFO_ADDRCONFIG/INN_HAVE_GETADDRINFO_ADDRCONFIG/g' \
60 -e 's/HAVE_LONG_LONG_INT/INN_HAVE_LONG_LONG_INT/g' \
61 -e 's/HAVE_SOCKLEN_T/INN_HAVE_SOCKLEN_T/g' \
62 -e 's/HAVE_STRUCT_SOCKADDR_SA_LEN/INN_HAVE_STRUCT_SOCKADDR_SA_LEN/g' \
63 -e 's/HAVE_STRUCT_SOCKADDR_STORAGE/INN_HAVE_STRUCT_SOCKADDR_STORAGE/g' \
64 -e 's/HAVE_DECL_INET_ATON/INN_HAVE_DECL_INET_ATON/g' \
65 -e 's/HAVE_DECL_INET_NTOA/INN_HAVE_DECL_INET_NTOA/g' \
66 -e 's/HAVE_INET_ATON/INN_HAVE_INET_ATON/g' \
67 -e 's/HAVE_INET_NTOA/INN_HAVE_INET_NTOA/g' \
68 -e 's/HAVE_INET_NTOP/INN_HAVE_INET_NTOP/g' \
69 -e 's/config\.h/inn\/system.h/g' \
70 > inn/portable-socket.h
71
72 inn/portable-stdbool.h: portable/stdbool.h
73 $(SED) 's/"portable\//"inn\/portable-/g' portable/stdbool.h \
74 | $(SED) -e 's/HAVE__BOOL/INN_HAVE__BOOL/g' \
75 -e 's/HAVE_STDBOOL_H/INN_HAVE_STDBOOL_H/g' \
76 -e 's/config\.h/inn\/system.h/g' \
77 > inn/portable-stdbool.h
78
79 inn/system.h: config.h $(top)/support/mksystem
80 $(SHELL) $(top)/support/mksystem $(AWK) config.h > $@
81
82 inn/version.h: $(top)/support/mkversion $(top)/Makefile.global
83 $(SHELL) $(top)/support/mkversion '$(VERSION)' '$(VERSION_EXTRA)' > $@
84
85
86 ## Installation rules.
87
88 install:
89 $(top)/support/install-sh $(OWNER) -m 0755 -d $D$(PATHINCLUDE)/inn
90 for F in inn/*.h ; do \
91 $(CP_RPUB) $$F $D$(PATHINCLUDE)/$$F ; \
92 done