-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
38 lines (28 loc) · 1.54 KB
/
Makefile
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
all: demo1 demo2 demo3 myjit-disassembler
demo1: demo1.c jitlib-core.o
$(CC) -c -g -Winline -Wall -std=c99 -pedantic -D_XOPEN_SOURCE=600 demo1.c
$(CC) -o demo1 -g -Wall -std=c99 -pedantic demo1.o jitlib-core.o -ldl
demo2: demo2.c jitlib-core.o
$(CC) -c -g -Winline -Wall -std=c99 -pedantic -D_XOPEN_SOURCE=600 demo2.c
$(CC) -o demo2 -g -Wall -std=c99 -pedantic demo2.o jitlib-core.o -ldl
demo3: demo3.c jitlib-core.o
$(CC) -O2 -c -g -Winline -Wall -std=c99 -pedantic -D_XOPEN_SOURCE=600 demo3.c
$(CC) -O2 -o demo3 -g -Wall -std=c99 -pedantic demo3.o jitlib-core.o -ldl
debug: debug.c jitlib-core.o
$(CC) -c -g -Winline -Wall -std=c99 -pedantic -D_XOPEN_SOURCE=600 debug.c
$(CC) -o debug -g -Wall -std=c99 -pedantic debug.o jitlib-core.o -ldl
myjit-disassembler:
rm myjit-disasm || true
$(MAKE) -C disasm
ln -s disasm/myjit-disasm .
run-tests:
cd test && ${MAKE} test
jitlib-core.o: myjit/jitlib.h myjit/jitlib-core.h myjit/jitlib-core.c myjit/jitlib-debug.c myjit/x86-codegen.h myjit/x86-specific.h myjit/reg-allocator.h myjit/flow-analysis.h myjit/set.h myjit/amd64-specific.h myjit/amd64-codegen.h myjit/sparc-codegen.h myjit/sparc-specific.h myjit/llrb.c myjit/reg-allocator.h myjit/rmap.h myjit/cpu-detect.h myjit/x86-common-stuff.c myjit/common86-specific.h myjit/common86-codegen.h myjit/sse2-specific.h myjit/code-check.c myjit/arm32-codegen.h myjit/arm32-specific.h
$(CC) -c -g -Winline -Wall -std=c99 -pedantic -D_XOPEN_SOURCE=600 myjit/jitlib-core.c
clean:
rm -f demo1
rm -f demo2
rm -f demo3
rm -f debug
rm -f *.o
rm -f myjit-disasm