gen.lua (673B)
1 cflags({ 2 '-std=c99', '-Wall', '-Wpedantic', 3 '-I $dir', 4 '-I $srcdir/src', 5 '-D MD4C_USE_UTF8', 6 '-D MD_VERSION_MAJOR=0', 7 '-D MD_VERSION_MINOR=5', 8 '-D MD_VERSION_RELEASE=2', 9 }) 10 11 pkg.hdrs = { 12 copy('$outdir/include', '$srcdir/src', {'md4c.h', 'md4c-html.h'}), 13 install=true, 14 } 15 16 lib('libmd4c.a', {'src/md4c.c'}) 17 file('lib/libmd4c.a', '644', '$outdir/libmd4c.a') 18 19 lib('libmd4c-html.a', expand({'src/', {'md4c-html.c', 'entity.c'}})) 20 file('lib/libmd4c-html.a', '644', '$outdir/libmd4c-html.a') 21 22 exe('md2html-bin', [[ 23 md2html/(cmdline.c md2html.c) 24 libmd4c-html.a.d 25 libmd4c.a.d 26 ]]) 27 file('bin/md2html', '755', '$outdir/md2html-bin') 28 man({'md2html/md2html.1'}) 29 30 fetch('git')