xref: /plan9/sys/src/cmd/ip/httpd/mkfile (revision 7f38d7f03acb4120754eb8f3d238d56a00c17b2e)
1</$objtype/mkfile
2
3HFILES=\
4	/sys/include/httpd.h\
5	httpsrv.h\
6
7TARG=\
8	httpd\
9	imagemap\
10	man2html\
11	save\
12	netlib_find\
13	netlib_history\
14	webls\
15	wikipost\
16
17XTARG=\
18	httpd\
19	imagemap\
20	netlib_find\
21	netlib_history\
22	man2html\
23	save\
24	wikipost\
25
26LIB=libhttps.a$O
27
28LIBS=libhttps.a$O
29LIBSOFILES=\
30	anonymous.$O\
31	content.$O\
32	emem.$O\
33	hints.$O\
34	init.$O\
35	log.$O\
36	redirect.$O\
37	sendfd.$O\
38	authorize.$O\
39
40BIN=/$objtype/bin/ip/httpd
41
42UPDATE=\
43	$HFILES\
44	${LIBSOFILES:%.$O=%.c}\
45	${XTARG:%=%.c}\
46
47</sys/src/cmd/mkmany
48
49trial: $O.netlib_history
50	# should first   mount -b /srv/histnetlib /usr/web/historic
51	echo '
52	' | $O.netlib_history GET HTTP/1.0 xxx 'file=fp%2Fdtoa.c.gz'
53
54trial2: $O.netlib_find
55	echo "\n" | $O.netlib_find GET HTTP/1.0 xxx 'db=1&pat=Hearing' > /tmp/search
56	sed 17q /tmp/search
57
58$LIBS:	$LIBSOFILES
59	ar vu $LIBS $newprereq
60	rm $newprereq
61	# rm $newmember - cannot do this because of mk race
62
63
64re:N: v.re
65	v.re redirect.urls
66
67none:VQ:
68	echo usage: mk all, install, installall, '$O'.cmd, cmd.install, or cmd.installall
69	echo usage: mk safeinstall, safeinstallall, cmd.safeinstallall, or cmd.safeinstallall
70
71$O.9down: 9down.$O whois.$O classify.$O $LIB
72	$LD -o $target $prereq
73
74$O.test9down: 9down4e.$O whois.$O classify.$O $LIB
75	$LD -o $target $prereq
76
77$O.testclassify: testclassify.$O whois.$O classify.$O $LIB
78	$LD -o $target $prereq
79
80