-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSConstruct
More file actions
44 lines (39 loc) · 955 Bytes
/
Copy pathSConstruct
File metadata and controls
44 lines (39 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
env = Environment()
sources = [
"cpu.cpp",
"branch.cpp",
"flags.cpp",
"stack.cpp",
"ora.cpp",
"lda.cpp",
"sta.cpp",
"sbc.cpp",
"cmp.cpp",
"asl.cpp",
"and.cpp",
"adc.cpp",
"eor.cpp",
"cpx.cpp",
"cpy.cpp",
"ror.cpp",
"ldy.cpp",
"sty.cpp",
"lsr.cpp",
"rol.cpp",
"inc.cpp",
"dec.cpp",
"ldx.cpp",
"stx.cpp"
]
env["lib"] = env.SharedLibrary(
"6502",
source = ["src/%s" % x for x in sources],
CPPFLAGS = ["-O2", "-Wall", "-std=c++11"],
CPPPATH = ["include/"]
)
SConscript(dirs = ["test"], exports = ["env"])
env.Alias("install", env.Install("/usr/lib", env["lib"]))
env.Alias("install", env.Install("/usr/include/lib6502", "include/lib6502/cpu.h"))
env.Alias("install", env.Install("/usr/include/lib6502", "include/lib6502/memory.h"))
env.Alias("install", env.Install("/usr/include/lib6502", "include/lib6502/makestring.h"))
Default(env["lib"])