logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

gen.lua (1405B)


  1. cflags{
  2. '-D HAVE_CONFIG_H',
  3. '-I $outdir',
  4. '-I $srcdir',
  5. '-I $srcdir/include',
  6. '-I $srcdir/x86',
  7. '-I $srcdir/asm',
  8. '-I $srcdir/disasm',
  9. '-I $srcdir/output',
  10. }
  11. build('cat', '$outdir/config/config.h', {
  12. '$builddir/probe/HAVE___BUILTIN_CHOOSE_EXPR',
  13. '$builddir/probe/HAVE___BUILTIN_CLZ',
  14. '$dir/config.h',
  15. })
  16. pkg.deps = {'$outdir/config/config.h'}
  17. lib('libnasm.a', [[
  18. stdlib/(snprintf.c vsnprintf.c strlcpy.c strnlen.c strrchrnul.c)
  19. nasmlib/(
  20. ver.c
  21. alloc.c asprintf.c errfile.c
  22. crc32.c crc64.c md5c.c
  23. string.c nctype.c
  24. file.c mmap.c ilog2.c
  25. realpath.c path.c
  26. filename.c rlimit.c
  27. zerobuf.c readnum.c bsi.c
  28. rbtree.c hashtbl.c
  29. raa.c saa.c
  30. strlist.c
  31. perfhash.c badenum.c
  32. )
  33. common/common.c
  34. x86/(
  35. insnsa.c insnsb.c insnsd.c insnsn.c
  36. regs.c regvals.c regflags.c regdis.c
  37. disp8.c iflag.c
  38. )
  39. asm/(
  40. error.c warnings.c
  41. floats.c
  42. directiv.c directbl.c
  43. pragma.c
  44. assemble.c labels.c parser.c
  45. preproc.c quote.c pptok.c
  46. listing.c eval.c exprlib.c exprdump.c
  47. stdscan.c
  48. strfunc.c tokhash.c
  49. segalloc.c
  50. rdstrnum.c
  51. srcfile.c
  52. )
  53. macros/macros.c
  54. output/(
  55. outform.c outlib.c legacy.c
  56. nulldbg.c nullout.c
  57. outbin.c outaout.c outcoff.c
  58. outelf.c
  59. outobj.c outas86.c
  60. outdbg.c outieee.c outmacho.c
  61. codeview.c
  62. )
  63. disasm/(disasm.c sync.c)
  64. ]])
  65. exe('nasm', {'asm/nasm.c', 'libnasm.a'})
  66. file('bin/nasm', '755', '$outdir/nasm')
  67. man{'nasm.1'}
  68. fetch 'curl'