xref: /plan9/sys/src/cmd/aquarela/mkfile (revision 8ccd4a6360d974db7bd7bbd4f37e7018419ea908)
1</$objtype/mkfile
2
3CFLAGS=$CFLAGS
4
5UPDATEFLAGS=
6
7FILES=\
8	nbnsconv\
9	dump\
10	message\
11	findname\
12	addname\
13	alarm\
14	nbss\
15	nbns\
16	nbname\
17	alloc\
18	nbresolve\
19	smbconv\
20	smbnegotiate\
21	smballoc\
22	smbcommon\
23	smbcomsessionsetupandx\
24	smbstring\
25	smbresponse\
26	smbcomtreeconnectandx\
27	smbtree\
28	smbservice\
29	smbcomtransaction\
30	smbrap2\
31	smbcomdir\
32	smbglobals\
33	smboptable\
34	smbconnect\
35	smbbuffer\
36	nbdgram\
37	nbdgramconv\
38	nbdgramdump\
39	nb\
40	nblistener\
41	smbtransaction\
42	smbbrowse\
43	smbtrans2find\
44	smbidmap\
45	smbcomecho\
46	smbcomopen\
47	smbtime\
48	smbpath\
49	smbfile\
50	smbtrans2query\
51	smbcomclose\
52	smbcomread\
53	smblog\
54	smbcomquery\
55	smbcomfindclose2\
56	smbcomtreedisconnect\
57	smbsharedfile\
58	smblisten\
59	smbrap2client\
60	smbtrans2client\
61	smbcomdelete\
62	smbdircache\
63	smbrep\
64	smbcomflush\
65	smbcomwrite\
66	smbclientopen\
67	smbcomsetinfo\
68	smbcomcreatedir\
69	smbcomdeletedir\
70	smbcomrename\
71	smbcomlocking\
72	smbtrans2set\
73
74LIBCFILES=${FILES:%=%.c}
75LIBOFILES=${FILES:%=%.$O}
76
77SLIB=libsmb.a.$O
78
79LIB=$SLIB\
80
81HFILES=\
82	headers.h\
83	netbios.h\
84	smb.h\
85	smbfns.h\
86	smbdat.h
87
88TARG=\
89	aquarela\
90	cifscmd\
91#	testconnect\
92#	testnbdgram\
93#	testtime\
94
95
96CFILES=${TARG:%=%.c} $LIBCFILES
97
98BIN=/$objtype/bin
99
100it:V: all
101
102</sys/src/cmd/mkmany
103
104INC=
105CFLAGS=$INC $CFLAGS $XCFLAGS
106
107$SLIB(%.$O):N: %.$O
108$SLIB:	${LIBOFILES:%=$SLIB(%)}
109	names = `{echo $newprereq |sed 's/ /\n/g' |sed -n 's/'$SLIB'\(([^)]+)\)/\1/gp'}
110	ar vu $SLIB $names
111#	rm $names
112
113clean:V:
114	rm -f *.[$OS] y.tab.? y.debug y.output [$OS].* $TARG *.log
115