Skip to content

Instantly share code, notes, and snippets.

@jart
Last active November 12, 2016 00:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jart/68b1fd09d48197850981d45e85758936 to your computer and use it in GitHub Desktop.
Save jart/68b1fd09d48197850981d45e85758936 to your computer and use it in GitHub Desktop.
NASM build file
# http://www.nasm.us/pub/nasm/releasebuilds/2.12.02/nasm-2.12.02.tar.bz2
licenses(["notice"]) # As of v2.07, nasm is licensed under the 2-clause BSD license.
cc_binary(
name = "nasm",
srcs = [
"assemble.c",
"crc64.c",
"directiv.c",
"disp8.c",
"eval.c",
"exprlib.c",
"float.c",
"hashtbl.c",
"iflag.c",
"ilog2.c",
"insnsa.c",
"insnsb.c",
"labels.c",
"lib/strlcpy.c",
"listing.c",
"macros.c",
"md5c.c",
"nasm.c",
"nasmlib.c",
"output/codeview.c",
"output/nulldbg.c",
"output/nullout.c",
"output/outaout.c",
"output/outas86.c",
"output/outbin.c",
"output/outcoff.c",
"output/outdbg.c",
"output/outelf.c",
"output/outelf32.c",
"output/outelf64.c",
"output/outelfx32.c",
"output/outform.c",
"output/outieee.c",
"output/outlib.c",
"output/outmacho.c",
"output/outobj.c",
"output/outrdf2.c",
"parser.c",
"pptok.c",
"preproc.c",
"preproc-nop.c",
"quote.c",
"raa.c",
"rbtree.c",
"realpath.c",
"regflags.c",
"regvals.c",
"saa.c",
"srcfile.c",
"stdscan.c",
"strfunc.c",
"tokhash.c",
"ver.c",
],
copts = ["-std=gnu11"],
includes = ["."],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment