autossl AUTOSSL_SILENT option and improve documentation
[hband-ld-preload-libs.git] / src / Makefile
blob710a89558790758dc535b3dcda4aebd60b186c57
2 all: \
3 autossl.so \
4 connredir.so \
5 cupsgetpass.so \
6 forcebindip.so \
7 getenv.so \
8 ip_dscp.so \
9 ld_env_restore.so \
10 lnbuf.so \
11 pathrewrite.so \
12 recyclix.so \
13 xopenhook.so
15 .PHONY: all
18 autossl.so:
19 gcc $(CCFLAGS) autossl.c -D_GNU_SOURCE -ldl -lbsd -shared -fPIC -o $@
20 strip $@
21 chmod -x $@
23 install-autossl: /usr/tool/autossl /usr/tool/autossl-conn /usr/lib/tool/preload/autossl.so
24 .PHONY: install-autossl
25 /usr/tool/autossl: autossl
26 install $< $@
27 /usr/tool/autossl-conn: autossl-conn
28 install $< $@
29 /usr/lib/tool/preload/autossl.so: autossl.so | /usr/lib/tool/preload
30 install $< $@
31 /usr/lib/tool/preload:
32 mkdir -p $@
33 /usr/share/man/man8/autossl.1.xz: autossl.pod
34 pod2man --name=autossl --section 1 --utf8 $< | xz > $@.tmp && \
35 mv $@.tmp $@
36 /usr/share/man/man8/autossl.so.8.xz: autossl.so.pod
37 pod2man --name=autossl.so --section 8 --utf8 $< | xz > $@.tmp && \
38 mv $@.tmp $@
39 define rid
40 $(shell [ ! -e ] || rm)
41 endef
42 uninstall-autossl:
43 $(rid /usr/tool/autossl)
44 $(rid /usr/tool/autossl-conn)
45 $(rid /usr/lib/tool/preload/autossl.so)
46 $(rid /usr/share/man/man8/autossl.1.xz.tmp)
47 $(rid /usr/share/man/man8/autossl.1.xz)
48 $(rid /usr/share/man/man8/autossl.so.8.xz.tmp)
49 $(rid /usr/share/man/man8/autossl.so.8.xz)
50 .PHONY: uninstall-autossl
52 connredir.so:
53 gcc $(CCFLAGS) connredir.c -D_GNU_SOURCE -ldl -shared -fPIC -o $@
54 strip $@
55 chmod -x $@
57 cupsgetpass.so:
58 gcc $(CCFLAGS) -s -x c cupsgetpass.c -ldl -fPIC -shared -o $@
59 strip $@
60 chmod -x $@
62 forcebindip.so:
63 gcc $(CCFLAGS) -Wall -fPIC -D _GNU_SOURCE -shared forcebindip.c -o $@
64 strip $@
65 chmod -x $@
67 getenv.so:
68 gcc $(CCFLAGS) -Wall -fPIC -D _GNU_SOURCE -O0 -ldl -shared getenv.c -o $@
69 strip $@
70 chmod -x $@
72 ignore_read_flock.so:
73 gcc $(CCFLAGS) -ldl -D_GNU_SOURCE -shared -fPIC ignore_read_flock.c -o $@
74 strip $@
75 chmod -x $@
77 ip_dscp.so:
78 gcc $(CCFLAGS) ip_dscp.c -fPIC -shared -ldl -D_GNU_SOURCE -o $@
79 strip $@
80 chmod -x $@
82 ld_env_restore.so:
83 gcc $(CCFLAGS) ld_env_restore.c -fPIC -shared -ldl -lbsd -D_GNU_SOURCE -o $@
84 strip $@
85 chmod -x $@
87 lnbuf.so:
88 gcc $(CCFLAGS) -Wall -fPIC -s -include stdio.h -x c lnbuf.c -shared -o $@
89 strip $@
90 chmod -x $@
92 nofail_setfacl.so:
93 gcc $(CCFLAGS) -D_GNU_SOURCE -shared -fPIC nofail_setfacl.c -o $@
94 strip $@
95 chmod -x $@
97 openhelper.so:
98 gcc $(CCFLAGS) -ldl -D_GNU_SOURCE -shared -fPIC openhelper.c -o $@
99 strip $@
100 chmod -x $@
102 pathrewrite.so:
103 gcc -D _GNU_SOURCE -O0 -ldl -shared pathrewrite.c -o $@
104 strip $@
105 chmod -x $@
107 recyclix.so:
108 gcc $(CCFLAGS) -Wall -fPIC -D _GNU_SOURCE -O0 -ldl -shared recyclix.c -o $@
109 strip $@
110 chmod -x $@
112 saveunlinedinode.so:
113 gcc -D _GNU_SOURCE -O0 -ldl -shared saveunlinedinode.c -o $@
114 strip $@
115 chmod -x $@
117 uds_chmod.so:
118 gcc $(CCFLAGS) uds_chmod.c -fPIC -shared -ldl -D_GNU_SOURCE -o $@
119 strip $@
120 chmod -x $@
122 xdev.so:
123 gcc -D _GNU_SOURCE -fPIC -O0 -ldl -shared xdev.c -o $@
124 strip $@
125 chmod -x $@
127 xopenhook.so:
128 gcc $(CCFLAGS) xopenhook.c -D_GNU_SOURCE -ldl -lXv -shared -fPIC -o $@
129 strip $@
130 chmod -x $@