-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
57 lines (48 loc) · 1.62 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
.PHONY: gen
gen:
mkdir -p build
javac -d build `find com/gen -name \*.java`
echo "Manifest-Version: 1.0" > jar.manifest
echo "Name: Ian's Disassembler" >> jar.manifest
echo "Created-By: Ian Preston" >> jar.manifest
echo "Specification-Version: 1" >> jar.manifest
echo "Main-Class: com.gen.TableGen" >> jar.manifest
echo "" >> jar.manifest
jar -cfm Gen.jar jar.manifest -C build com
rm -f jar.manifest
.PHONY: dis
dis:
mkdir -p build
javac -g -d build `find com -name \*.java`
echo "Manifest-Version: 1.0" > jar.manifest
echo "Name: Ian's Disassembler" >> jar.manifest
echo "Created-By: Ian Preston" >> jar.manifest
echo "Specification-Version: 1" >> jar.manifest
echo "Main-Class: com.Dis" >> jar.manifest
echo "" >> jar.manifest
jar -cfm Dis.jar jar.manifest -C build com
rm -f jar.manifest
.PHONY: pat
pat:
mkdir -p build
javac -g -d build `find com -name \*.java`
echo "Manifest-Version: 1.0" > jar.manifest
echo "Name: Ian's Disassembler" >> jar.manifest
echo "Created-By: Ian Preston" >> jar.manifest
echo "Specification-Version: 1" >> jar.manifest
echo "Main-Class: com.PatternGenerator" >> jar.manifest
echo "" >> jar.manifest
jar -cfm Pat.jar jar.manifest -C build com
rm -f jar.manifest
.PHONY: compare
compare:
mkdir -p build
javac -g -d build `find com -name \*.java`
echo "Manifest-Version: 1.0" > jar.manifest
echo "Name: Ian's Disassembler" >> jar.manifest
echo "Created-By: Ian Preston" >> jar.manifest
echo "Specification-Version: 1" >> jar.manifest
echo "Main-Class: com.ObjdumpCompare" >> jar.manifest
echo "" >> jar.manifest
jar -cfm Compare.jar jar.manifest -C build com
rm -f jar.manifest