Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/src/cmd/aquarela/mkfile

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


</$objtype/mkfile

CFLAGS=$CFLAGS

UPDATEFLAGS=

FILES=\
	nbnsconv\
	dump\
	message\
	findname\
	addname\
	alarm\
	nbss\
	nbns\
	nbname\
	alloc\
	nbresolve\
	smbconv\
	smbnegotiate\
	smballoc\
	smbcommon\
	smbcomsessionsetupandx\
	smbstring\
	smbresponse\
	smbcomtreeconnectandx\
	smbtree\
	smbservice\
	smbcomtransaction\
	smbrap2\
	smbcomdir\
	smbglobals\
	smboptable\
	smbconnect\
	smbbuffer\
	nbdgram\
	nbdgramconv\
	nbdgramdump\
	nb\
	nblistener\
	smbtransaction\
	smbbrowse\
	smbtrans2find\
	smbidmap\
	smbcomecho\
	smbcomopen\
	smbtime\
	smbpath\
	smbfile\
	smbtrans2query\
	smbcomclose\
	smbcomread\
	smblog\
	smbcomquery\
	smbcomfindclose2\
	smbcomtreedisconnect\
	smbsharedfile\
	smblisten\
	smbrap2client\
	smbtrans2client\
	smbcomdelete\
	smbdircache\
	smbrep\
	smbcomflush\
	smbcomwrite\
	smbclientopen\
	smbcomsetinfo\
	smbcomcreatedir\
	smbcomdeletedir\
	smbcomrename\
	smbcomlocking\
	smbtrans2set\

LIBCFILES=${FILES:%=%.c}
LIBOFILES=${FILES:%=%.$O}

SLIB=libsmb.a.$O

LIB=$SLIB\

HFILES=\
	headers.h\
	netbios.h\
	smb.h\
	smbfns.h\
	smbdat.h

TARG=\
	aquarela\
	cifscmd\
#	testconnect\
#	testnbdgram\
#	testtime\


CFILES=${TARG:%=%.c} $LIBCFILES

BIN=/$objtype/bin

it:V: all

</sys/src/cmd/mkmany

INC=
CFLAGS=$INC $CFLAGS $XCFLAGS

$SLIB(%.$O):N: %.$O
$SLIB:	${LIBOFILES:%=$SLIB(%)}
	names = `{echo $newprereq |sed 's/ /\n/g' |sed -n 's/'$SLIB'\(([^)]+)\)/\1/gp'}
	ar vu $SLIB $names
#	rm $names

clean:V:
	rm -f *.[$OS] y.tab.? y.debug y.output [$OS].* $TARG *.log

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].