change sizeof(a_cast) to sizeof(void*)
[liba.git] / test / make.lua
blob20db4e7bf23f18ff132338099aef559ea1a8c571
1 ---@diagnostic disable
2 local lm = require("luamake")
3 lm.workdir = WORKDIR
4 lm:source_set("a.o")({
5 defines = { "A_EXPORTS" },
6 includes = { "../include" },
7 sources = { "../src/*.c*" },
8 links = lm.os ~= "windows" and { "m" } or {},
9 })
10 local executable = function(target)
11 lm:executable(target)({
12 defines = { "HAS_CXX" },
13 includes = { "../include" },
14 sources = { target .. ".c*" },
15 deps = { "a.o" },
17 end
18 executable("a")
19 executable("avl")
20 executable("buf")
21 executable("complex")
22 executable("crc")
23 executable("hpf")
24 executable("list")
25 executable("lpf")
26 executable("math")
27 executable("mf")
28 executable("notefreqs")
29 executable("operator")
30 executable("pid")
31 executable("pid_expert")
32 executable("pid_fuzzy")
33 executable("pid_neuro")
34 executable("poly")
35 executable("que")
36 executable("rbt")
37 executable("slist")
38 executable("str")
39 executable("test")
40 executable("tf")
41 executable("trajbell")
42 executable("trajpoly3")
43 executable("trajpoly5")
44 executable("trajpoly7")
45 executable("trajtrap")
46 executable("utf")
47 executable("vec")
48 executable("version")