forked from Nexusoft/PrimePool--DEPRECATED
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile.mingw
70 lines (56 loc) · 1.77 KB
/
makefile.mingw
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
# Copyright (c) Videlicet[2014]++
# Distributed under the MIT/X11 software license, see the accompanying
# file license.txt or http://www.opensource.org/licenses/mit-license.php.
INCLUDEPATHS= \
-I"$(CURDIR)\src" \
-I"$(CURDIR)\src\hash" \
-I"$(CURDIR)\src\LLP" \
-I"C:\Deps\boost_1_57_0" \
-I"C:\Deps\openssl-1.0.1l\include" \
-I"C:\Deps\GMP\include"
LIBPATHS= \
-L"C:\Deps\boost_1_57_0\stage\lib" \
-L"C:\Deps\openssl-1.0.1l" \
-L"C:\Deps\GMP\lib"
LIBS= \
-l boost_system-mgw49-mt-s-1_57 \
-l boost_filesystem-mgw49-mt-s-1_57 \
-l boost_program_options-mgw49-mt-s-1_57 \
-l boost_thread-mgw49-mt-s-1_57 \
-l ssl \
-l crypto \
-l gmp \
-l mysqlclient
DEFS=-DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE
DEBUGFLAGS=-g
CFLAGS=-static -static-libgcc -static-libstdc++ -O2 -w -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
LIBS +=-l kernel32 -l user32 -l gdi32 -l comdlg32 -l winspool -l winmm -l shell32 -l comctl32 -l ole32 -l oleaut32 -l uuid -l rpcrt4 -l advapi32 -l ws2_32 -l shlwapi
HEADERS = $(wildcard *.h)
OBJS= \
build/skein.o \
build/skein_block.o \
build/KeccakDuplex.o \
build/KeccakSponge.o \
build/Keccak-compact64.o \
build/KeccakHash.o \
build/prime.o \
build/core.o \
build/main.o \
build/daemon.o \
build/webui.o \
build/pool.o \
build/util.o \
build/statscollector.o \
build/config.o \
build/mysqlstatspersister.o
all: pool.exe
build/%.o: src/%.cpp $(HEADERS)
g++ -c -fpermissive $(CFLAGS) -o $@ $<
build/%.o: src/LLP/%.cpp $(HEADERS)
g++ -c -fpermissive $(CFLAGS) -o $@ $<
build/%.o: src/hash/%.c $(HEADERS)
g++ -c -fpermissive $(CFLAGS) -o $@ $<
build/%.o: src/hash/%.cpp $(HEADERS)
g++ -c -fpermissive $(CFLAGS) -o $@ $<
pool.exe: $(OBJS:obj/%=obj/%)
g++ $(CFLAGS) -o $@ $(LIBPATHS) $^ $(LIBS)