-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
41 lines (34 loc) · 1.08 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
CC=g++
CCFLAGS=-g
LDIR=/usr/local/lib
IDIR=/usr/local/include
EXECS=master slave console
.PHONY: master slave console
all: $(EXECS)
master: bin/disthcm
slave: bin/disthcs
console: bin/disthcc
bin/disthcm: src/djob.cpp src/dtalk.cpp src/disthcm.cpp
@echo "Compiling Application (master server)..."
@echo "#########################################"
$(CC) -o $@ $(CCFLAGS) $^ -lPocoNet -lPocoNetSSL -lPocoUtil -lPocoFoundation -lPocoDataSQLite -lPocoData -lPocoCrypto
@echo "done."
@echo
bin/disthcs: src/engines/hashcat.cpp src/djob.cpp src/dtalk.cpp src/disthcs.cpp
@echo "Compiling Application (slave)..."
@echo "#################################"
$(CC) -o $@ $(CCFLAGS) $^ -lPocoNet -lPocoNetSSL -lPocoUtil -lPocoFoundation
@echo "done."
@echo
bin/disthcc: src/dtalk.cpp src/tinycon.cpp src/disthcc.cpp
@echo "Compiling Application (console)..."
@echo "###################################"
$(CC) -o $@ $(CCFLAGS) $^ -lPocoNet -lPocoNetSSL -lPocoUtil -lPocoFoundation
@echo "done."
@echo
clean:
@echo "Cleaning..."
@echo "############"
rm -rf *.o $(EXECS) bin/*
@echo "done."
@echo