Plan 9 from Bell Labs’s /usr/web/sources/contrib/fgb/mkfile.expat

Copyright © 2009 Alcatel-Lucent.
Distributed under the Lucent Public License version 1.02.
Download the Plan 9 distribution.


# download expat from http://sourceforge.net/projects/expat
# untar it, copy this mkfile into expat-$VERSION/lib/
# then mk there. You may need to modify expat.h (i.e. s/size_t/ulong/).
# enjoy!
# benavento@gmail.com

</$objtype/mkfile

LIB=libexpat.a$O

OFILES=\
	xmlparse.$O\
	xmlrole.$O\
	xmltok.$O\

HFILES=\
	expat.h\
	expat_config.h\

</sys/src/cmd/mklib

CFLAGS=-p -DHAVE_EXPAT_CONFIG_H

expat_config.h:
	echo '
	#include <u.h>
	#include <libc.h>
	#define size_t	ulong
	#define NULL	((void*)0)
	#define HAVE_MEMMOVE
	' > expat_config.h

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2009 Alcatel-Lucent. All Rights Reserved.
Comments to webmaster@plan9.bell-labs.com.