mirror of
https://github.com/oasislinux/oasis.git
synced 2026-02-05 11:33:57 +01:00
66 lines
1.2 KiB
Lua
66 lines
1.2 KiB
Lua
cflags{
|
|
'-D HAVE_CONFIG_H',
|
|
'-I include',
|
|
'-I $dir',
|
|
'-I $srcdir',
|
|
'-I $srcdir/include',
|
|
'-I $srcdir/x86',
|
|
'-I $srcdir/asm',
|
|
'-I $srcdir/disasm',
|
|
'-I $srcdir/output',
|
|
}
|
|
|
|
lib('libnasm.a', [[
|
|
stdlib/(snprintf.c vsnprintf.c strlcpy.c strnlen.c)
|
|
nasmlib/(
|
|
ver.c
|
|
crc64.c malloc.c
|
|
md5c.c string.c
|
|
file.c mmap.c ilog2.c
|
|
realpath.c path.c
|
|
filename.c srcfile.c
|
|
zerobuf.c readnum.c bsi.c
|
|
rbtree.c hashtbl.c
|
|
raa.c saa.c
|
|
strlist.c
|
|
perfhash.c badenum.c
|
|
)
|
|
common/common.c
|
|
x86/(
|
|
insnsa.c insnsb.c insnsd.c insnsn.c
|
|
regs.c regvals.c regflags.c regdis.c
|
|
disp8.c iflag.c
|
|
)
|
|
asm/(
|
|
error.c
|
|
float.c
|
|
directiv.c directbl.c
|
|
pragma.c
|
|
assemble.c labels.c parser.c
|
|
preproc.c quote.c pptok.c
|
|
listing.c eval.c exprlib.c exprdump.c
|
|
stdscan.c
|
|
strfunc.c tokhash.c
|
|
segalloc.c
|
|
preproc-nop.c
|
|
rdstrnum.c
|
|
)
|
|
macros/macros.c
|
|
output/(
|
|
outform.c outlib.c legacy.c
|
|
nulldbg.c nullout.c
|
|
outbin.c outaout.c outcoff.c
|
|
outelf.c
|
|
outobj.c outas86.c outrdf2.c
|
|
outdbg.c outieee.c outmacho.c
|
|
codeview.c
|
|
)
|
|
disasm/(disasm.c sync.c)
|
|
]])
|
|
|
|
exe('nasm', {'asm/nasm.c', 'libnasm.a'})
|
|
file('bin/nasm', '755', '$outdir/nasm')
|
|
man{'nasm.1'}
|
|
|
|
fetch 'curl'
|