-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMakefile
118 lines (82 loc) · 6.35 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
CC = gcc
CFLAGS = -O2 -Werror-implicit-function-declaration
all: disasOV1 disasOV2 emulate emulatesdl extractplanets1 extractplanetsdata1 extractdata1 extractinstance1 extractinstance2 extractvessels1 emulatecomm1
disasmX86.o: src/disasmX86/debugger.c
$(CC) $(CFLAGS) -c src/disasmX86/debugger.c -o disasmX86.o
utils.o: src/disasOV/utils.c src/disasOV/utils.h
$(CC) $(CFLAGS) -DSTARFLT2 -c src/disasOV/utils.c -o utils.o
cpu.o: src/cpu/cpu.c
$(CC) $(CFLAGS) -c src/cpu/cpu.c -o cpu.o
patch.o: src/patch/patch.c
$(CC) $(CFLAGS) -DSTARFLT1 -c src/patch/patch.c -o patch.o
transpile2C1.o: src/disasOV/transpile2C.c src/disasOV/transpile2C.h
$(CC) $(CFLAGS) -DSTARFLT1 -c src/disasOV/transpile2C.c -o transpile2C1.o
transpile2C2.o: src/disasOV/transpile2C.c src/disasOV/transpile2C.h
$(CC) $(CFLAGS) -DSTARFLT2 -c src/disasOV/transpile2C.c -o transpile2C2.o
dictionary1.o: src/disasOV/dictionary.c src/disasOV/global.h
$(CC) $(CFLAGS) -DSTARFLT1 -c src/disasOV/dictionary.c -o dictionary1.o
dictionary2.o: src/disasOV/dictionary.c src/disasOV/global.h
$(CC) $(CFLAGS) -DSTARFLT2 -c src/disasOV/dictionary.c -o dictionary2.o
parser1.o: src/disasOV/parser.c src/disasOV/global.h
$(CC) $(CFLAGS) -DSTARFLT1 -c src/disasOV/parser.c -o parser1.o
parser2.o: src/disasOV/parser.c src/disasOV/global.h
$(CC) $(CFLAGS) -DSTARFLT2 -c src/disasOV/parser.c -o parser2.o
extract1.o: src/disasOV/extract.c src/disasOV/global.h
$(CC) $(CFLAGS) -DSTARFLT1 -c src/disasOV/extract.c -o extract1.o
extract2.o: src/disasOV/extract.c src/disasOV/global.h
$(CC) $(CFLAGS) -DSTARFLT2 -c src/disasOV/extract.c -o extract2.o
global1.o: src/disasOV/global.c src/disasOV/global.h
$(CC) $(CFLAGS) -DSTARFLT1 -c src/disasOV/global.c -o global1.o
global2.o: src/disasOV/global.c src/disasOV/global.h
$(CC) $(CFLAGS) -DSTARFLT2 -c src/disasOV/global.c -o global2.o
stack1.o: src/disasOV/stack.c src/disasOV/stack.h
$(CC) $(CFLAGS) -DSTARFLT1 -c src/disasOV/stack.c -o stack1.o
stack2.o: src/disasOV/stack.c src/disasOV/stack.h
$(CC) $(CFLAGS) -DSTARFLT2 -c src/disasOV/stack.c -o stack2.o
huffman1.o: src/extract/huffman.c src/extract/huffman.h
$(CC) $(CFLAGS) -DSTARFLT1 -c src/extract/huffman.c -o huffman1.o
huffman2.o: src/extract/huffman.c src/extract/huffman.h
$(CC) $(CFLAGS) -DSTARFLT2 -c src/extract/huffman.c -o huffman2.o
postfix2infix1.o: src/disasOV/postfix2infix.c src/disasOV/postfix2infix.h
$(CC) $(CFLAGS) -DSTARFLT1 -c src/disasOV/postfix2infix.c -o postfix2infix1.o
postfix2infix2.o: src/disasOV/postfix2infix.c src/disasOV/postfix2infix.h
$(CC) $(CFLAGS) -DSTARFLT2 -c src/disasOV/postfix2infix.c -o postfix2infix2.o
graph1.o: src/disasOV/graph.c src/disasOV/graph.h
$(CC) $(CFLAGS) -DSTARFLT1 -c src/disasOV/graph.c -o graph1.o
graph2.o: src/disasOV/graph.c src/disasOV/graph.h
$(CC) $(CFLAGS) -DSTARFLT2 -c src/disasOV/graph.c -o graph2.o
extractdata1: src/extract/extractdata.c
$(CC) $(CFLAGS) -DSTARFLT1 src/extract/extractdata.c -o extractdata1
disasOV1: src/disasOV/disasOV.c disasmX86.o global1.o dictionary1.o extract1.o parser1.o cpu.o utils.o stack1.o postfix2infix1.o transpile2C1.o graph1.o huffman1.o
$(CC) $(CFLAGS) -DSTARFLT1 src/disasOV/disasOV.c -o disasOV1 disasmX86.o global1.o dictionary1.o extract1.o parser1.o cpu.o utils.o stack1.o postfix2infix1.o transpile2C1.o graph1.o huffman1.o
disasOV2: src/disasOV/disasOV.c disasmX86.o global2.o dictionary2.o extract2.o parser2.o cpu.o utils.o stack2.o postfix2infix2.o transpile2C2.o graph2.o huffman2.o
$(CC) $(CFLAGS) -DSTARFLT2 src/disasOV/disasOV.c -o disasOV2 disasmX86.o global2.o dictionary2.o extract2.o parser2.o cpu.o utils.o stack2.o postfix2infix2.o transpile2C2.o graph2.o huffman2.o
emulate: src/emul/emul.c src/emul/call.c src/emul/findword.c src/emul/callstack.c cpu.o src/disasOV/global.c src/emul/graphics.c src/emul/fract.c patch.o
$(CC) $(CFLAGS) -DSTARFLT1 src/emul/emul.c src/emul/call.c src/emul/findword.c src/emul/callstack.c cpu.o src/disasOV/global.c src/emul/graphics.c src/emul/fract.c patch.o -o emulate
emulatesdl: src/emul/emul.c src/emul/call.c cpu.o src/emul/findword.c src/emul/callstack.c src/disasOV/global.c src/emul/graphics.c src/emul/fract.c
$(CC) $(CFLAGS) -DSTARFLT1 -DSDL src/emul/emul.c src/emul/call.c src/emul/findword.c src/emul/callstack.c cpu.o src/disasOV/global.c src/emul/graphics.c src/emul/fract.c -o emulatesdl -lSDL2
extractplanets1: src/extract/extractplanets.c src/emul/call.c src/emul/findword.c src/emul/callstack.c cpu.o src/disasOV/global.c src/emul/graphics.c src/emul/fract.c patch.o
$(CC) $(CFLAGS) -DSTARFLT1 src/extract/extractplanets.c src/emul/call.c src/emul/findword.c src/emul/callstack.c cpu.o src/disasOV/global.c src/emul/graphics.c src/emul/fract.c patch.o -o extractplanets1
extractplanetsdata1: src/extract/extractplanetsdata.c src/emul/call.c src/emul/findword.c src/emul/callstack.c cpu.o src/disasOV/global.c src/emul/graphics.c src/emul/fract.c patch.o
$(CC) $(CFLAGS) -DSTARFLT1 src/extract/extractplanetsdata.c src/emul/call.c src/emul/findword.c src/emul/callstack.c cpu.o src/disasOV/global.c src/emul/graphics.c src/emul/fract.c patch.o -o extractplanetsdata1
extractinstance1: src/extract/instance.c extract1.o huffman1.o
$(CC) $(CFLAGS) -DSTARFLT1 src/extract/instance.c -o extractinstance1 extract1.o global1.o huffman1.o
extractinstance2: src/extract/instance.c extract2.o huffman2.o
$(CC) $(CFLAGS) -DSTARFLT2 src/extract/instance.c -o extractinstance2 extract2.o global2.o huffman2.o
extractvessels1: src/extract/extractvessels.c src/emul/call.c src/emul/findword.c src/emul/callstack.c cpu.o src/disasOV/global.c src/emul/graphics.c src/emul/fract.c patch.o
$(CC) $(CFLAGS) -DSDL -DSTARFLT1 src/extract/extractvessels.c src/emul/call.c src/emul/findword.c src/emul/callstack.c cpu.o src/disasOV/global.c src/emul/graphics.c src/emul/fract.c patch.o -o extractvessels1 -lSDL2
emulatecomm1: src/extract/emulatecomm.c src/emul/call.c src/emul/findword.c src/emul/callstack.c cpu.o src/disasOV/global.c src/emul/graphics.c src/emul/fract.c patch.o
$(CC) $(CFLAGS) -DSTARFLT1 src/extract/emulatecomm.c src/emul/call.c src/emul/findword.c src/emul/callstack.c cpu.o src/disasOV/global.c src/emul/graphics.c src/emul/fract.c patch.o -o emulatecomm1
.PHONY: clean all
clean:
rm -f *.o
rm -f disasOV1
rm -f disasOV2
rm -f extractinstance1
rm -f extractinstance2
rm -f emulate
rm -f emulatesdl
rm -f extractplanets1
rm -f extractplanetsdata1
rm -f extractvessels1
rm -f emulatecomm1