# 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
|