-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
71 lines (47 loc) · 3.66 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
OBJS = build/Public.o build/ChainWalkContext.o build/ChainWalkSet.o build/CrackEngine.o build/HashAlgorithm.o build/HashSet.o build/HashRoutine.o build/MemoryPool.o build/RainbowCrack.o build/RainbowTableDump.o build/RainbowTableGenerate.o build/RainbowTableSort.o build/csv.o build/PrefixParser.o build/HashGenerator.o
all: rtgen rtdump rtsort rcrack hashgen
# Build hacks for DragonFlyBSD (run "pkg install openssl" first)
LDFLAGS += -L/usr/local/lib -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib -lgmp -lomp
CXXFLAGS += -std=c++11 -Xpreprocessor -fopenmp
build/ChainWalkContext.o: src/ChainWalkContext.cpp
$(CXX) $(CXXFLAGS) -c src/ChainWalkContext.cpp -I/usr/local/include -O3 -o build/ChainWalkContext.o
build/HashAlgorithm.o: src/HashAlgorithm.cpp
$(CXX) $(CXXFLAGS) -c src/HashAlgorithm.cpp -I/usr/local/include -O3 -o build/HashAlgorithm.o
build/RainbowCrack.o: src/RainbowCrack.cpp
$(CXX) $(CXXFLAGS) -c src/RainbowCrack.cpp -I/usr/local/include -O3 -o build/RainbowCrack.o
build/csv.o: src/csv.h
$(CXX) $(CXXFLAGS) -c src/csv.h -I/usr/local/include -O3 -o build/csv.o -lpthread
build/PrefixParser.o: src/PrefixParser.cpp
$(CXX) $(CXXFLAGS) -c src/PrefixParser.cpp -I/usr/local/include -O3 -o build/PrefixParser.o
build/Public.o: src/Public.cpp
$(CXX) $(CXXFLAGS) -c src/Public.cpp -I/usr/local/include -O3 -o build/Public.o
build/ChainWalkSet.o: src/ChainWalkSet.cpp
$(CXX) $(CXXFLAGS) -c src/ChainWalkSet.cpp -I/usr/local/include -O3 -o build/ChainWalkSet.o
build/CrackEngine.o: src/CrackEngine.cpp
$(CXX) $(CXXFLAGS) -c src/CrackEngine.cpp -I/usr/local/include -O3 -o build/CrackEngine.o
build/HashSet.o: src/HashSet.cpp
$(CXX) $(CXXFLAGS) -c src/HashSet.cpp -I/usr/local/include -O3 -o build/HashSet.o
build/HashRoutine.o: src/HashRoutine.cpp
$(CXX) $(CXXFLAGS) -c src/HashRoutine.cpp -I/usr/local/include -O3 -o build/HashRoutine.o
build/MemoryPool.o: src/MemoryPool.cpp
$(CXX) $(CXXFLAGS) -c src/MemoryPool.cpp -I/usr/local/include -O3 -o build/MemoryPool.o
build/RainbowTableDump.o: src/RainbowTableDump.cpp
$(CXX) $(CXXFLAGS) -c src/RainbowTableDump.cpp -I/usr/local/include -O3 -o build/RainbowTableDump.o
build/RainbowTableGenerate.o: src/RainbowTableGenerate.cpp
$(CXX) $(CXXFLAGS) -c src/RainbowTableGenerate.cpp -I/usr/local/include -O3 -o build/RainbowTableGenerate.o
build/RainbowTableSort.o: src/RainbowTableSort.cpp
$(CXX) $(CXXFLAGS) -c src/RainbowTableSort.cpp -I/usr/local/include -O3 -o build/RainbowTableSort.o
build/HashGenerator.o: src/HashGenerator.cpp
$(CXX) $(CXXFLAGS) -c src/HashGenerator.cpp -I/usr/local/include -O3 -o build/HashGenerator.o
rtgen: $(OBJS)
$(CXX) $(CXXFLAGS) -O3 $(LDFLAGS) build/PrefixParser.o build/Public.o build/ChainWalkContext.o build/HashAlgorithm.o build/HashRoutine.o build/RainbowTableGenerate.o -lssl -lcrypto -lpthread -o bin/rtgen
rtdump: $(OBJS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) build/PrefixParser.o build/Public.o build/ChainWalkContext.o build/HashAlgorithm.o build/HashRoutine.o build/RainbowTableDump.o -lssl -lcrypto -lpthread -o bin/rtdump
rtsort: $(OBJS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) build/Public.o build/RainbowTableSort.o -o bin/rtsort
rcrack: $(OBJS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) build/PrefixParser.o build/Public.o build/ChainWalkContext.o build/HashAlgorithm.o build/HashRoutine.o build/HashSet.o build/MemoryPool.o build/ChainWalkSet.o build/CrackEngine.o build/RainbowCrack.o -lssl -lcrypto -lpthread -o bin/rcrack
hashgen: $(OBJS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) build/Public.o build/PrefixParser.o build/ChainWalkContext.o build/HashAlgorithm.o build/HashRoutine.o build/HashGenerator.o -lssl -lcrypto -lpthread -o bin/hashgen
clean:
rm -f $(OBJS) bin/rtgen bin/rtdump bin/rtsort bin/rcrack bin/hashgen