Adding copyright notices to most files. Also add readme file, and some
[jitcs.git] / make.lua
blob8332a49e8a452a7ab964dfa545a8763ccfefa38b
1 generated_source_files = {
2 ["src/data/x86_inslist.@(ltxt -> dat)"] = {
3 tools = "tools/x86_inslist2data.lua",
4 params = {"$(SRC)", "$(DST)"},
5 },
6 ["src/data/x86_insalias.@(ltxt -> dat)"] = {
7 tools = "tools/x86_insalias2data.lua",
8 params = {"$(SRC)", "$(DST)"},
9 },
10 --[[ ["src/data/x86_reglist.@(ltxt -> dat)"] = {
11 tools = "tools/x86_reglist2data.lua",
12 params = {"$(SRC)", "$(DST)"},
14 --]]
15 ["include/jitcs_x86_xx_cons.lh -> include/jitcs_x86_$(N)_cons.h"] = {
16 tools = "tools/template2header.lua",
17 params = {"$(SRC)", "N=$(N)", "$(DST)" },
18 N = {"32", "64"},
19 add_deps = {"src/data/x86_inslist.dat", "src/data/x86_insalias.dat"},
21 ["include/jitcs_x86_xx_insids.lh -> include/jitcs_x86_$(N)_insids.h"] = {
22 tools = "tools/template2header.lua",
23 params = {"$(SRC)", "N=$(N)", "$(DST)" },
24 N = {"32", "64"},
25 add_deps = {"src/data/x86_inslist.dat", "src/data/x86_insalias.dat"},
27 ["include/jitcs_x86_xx_regs.lh -> include/jitcs_x86_$(N)_regs.h"] = {
28 tools = "tools/template2header.lua",
29 params = {"include/jitcs_x86_xx_regs.h", "N=$(N)", "$(DST)" },
30 N = {"32", "64"},
31 add_deps = {"src/data/x86_reglist.dat"},
34 includefiles = {
35 "include/jitcs.h",
36 "include/jitcs_adt_bitstore.h",
37 "include/jitcs_adt_ref.h",
38 "include/jitcs_base.h",
39 "include/jitcs_bblock.h",
40 "include/jitcs_callconv.h",
41 "include/jitcs_cpu.h",
42 "include/jitcs_function.h",
43 "include/jitcs_ids.h",
44 "include/jitcs_insref.h",
45 "include/jitcs_memmgr.h",
46 "include/jitcs_memref.h",
47 "include/jitcs_tmpalloc.h",
48 "include/jitcs_vregref.h",
49 "include/jitcs_x86_32.h",
50 "include/jitcs_x86_64.h",
51 "include/jitcs_x86_common_insids.h",
52 "include/jitcs_x86_32_cons.h",
53 "include/jitcs_x86_64_cons.h",
54 "include/jitcs_x86_32_insids.h",
55 "include/jitcs_x86_64_insids.h",
56 "include/jitcs_x86_32_regs.h",
57 "include/jitcs_x86_64_regs.h",
59 sourcefiles = {
60 "src/cpu.cpp",
61 "src/memmgr.cpp",
63 testfiles = {