]> git.lizzy.rs Git - plan9front.git/blob - sys/src/cmd/ip/mkfile
add hproxy to mkfile
[plan9front.git] / sys / src / cmd / ip / mkfile
1 </$objtype/mkfile
2
3 TARG =  6in4\
4         dhcpclient\
5         ftpd\
6         gping\
7         hogports\
8         hproxy\
9         httpfile\
10         linklocal\
11         ping\
12         pppoe\
13         pptp\
14         pptpd\
15         rarpd\
16         rexexec\
17         rip\
18         rlogind\
19         telnet\
20         telnetd\
21         tftpd\
22         tftpfs\
23         traceroute\
24         torrent\
25         udpecho\
26         socksd\
27         wol\
28
29 DIRS=ftpfs cifsd dhcpd httpd ipconfig ppp imap4d snoopy
30
31 BIN=/$objtype/bin/ip
32 HFILES=dhcp.h arp.h glob.h icmp.h telnet.h
33
34 UPDATE=\
35         mkfile\
36         $HFILES\
37         ${OFILES:%.$O=%.c}\
38         ${TARG:%=%.c}\
39
40 </sys/src/cmd/mkmany
41
42 all:V:  $DIRS
43
44 $DIRS:V:
45         for (i in $DIRS) @{
46                 echo mk $i
47                 cd $i
48                 mk all
49         }
50
51 install:V:      installdirs
52
53 installdirs:V:
54         for (i in $DIRS) @{
55                 echo mk $i
56                 cd $i
57                 mk install
58         }
59
60 update:V:
61         update $UPDATEFLAGS $UPDATE
62         for (i in $DIRS) @{
63                 echo update $i
64                 cd $i
65                 mk 'UPDATEFLAGS='$"UPDATEFLAGS update
66         }
67
68 clean:V:
69         for (i in $DIRS) @{
70                 echo clean $i
71                 cd $i
72                 mk clean
73         }
74         rm -f [$OS].* *.[$OS]
75
76 nuke:V:
77         for (i in $DIRS) @{
78                 echo nuke $i
79                 cd $i
80                 mk nuke
81         }
82         rm -f *.[$OS] y.tab.? y.debug y.output [$OS].$TARG $TARG
83
84 $O.fakearp:     fakearp.$O getether.$O
85         $LD -o $target $prereq
86
87 telnetd.$O:     telnet.h
88
89 telnet.$O:      telnet.h
90
91 $O.ftpd:        ftpd.$O glob.$O
92         $LD -o $target $prereq
93
94 $BIN/telnet:V:  $O.telnet
95         cp $prereq /$objtype/bin/telnet
96
97 $BIN/snoopy:V:  $O.snoopy
98         cp $prereq /$objtype/bin/snoopy
99
100 $BIN/sniffer:V: $O.sniffer
101         cp $prereq /$objtype/bin/sniffer