forked from BlinkyStitt/vanitygen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (30 loc) · 867 Bytes
/
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
CFLAGS := -O4 -march=native -Wall
# CFLAGS := -O3
SRCS := vanitygen.c \
oclvanitygen.c \
oclvanityminer.c \
oclengine.c \
keyconv.c \
pattern.c \
util.c
OBJS := $(SRCS:.c=.o)
UTIL_OBJS := pattern.o util.o
PROGS := vanitygen keyconv oclvanitygen oclvanityminer
LIBS := -lpcre -lcrypto -lm -lpthread
PLATFORM = $(shell uname -s)
ifeq ($(PLATFORM),Darwin)
OPENCL_LIBS := -framework OpenCL
else
OPENCL_LIBS := -lOpenCL
endif
all: $(PROGS)
vanitygen: vanitygen.o $(UTIL_OBJS)
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
keyconv: keyconv.o util.o
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
oclvanitygen: oclvanitygen.o oclengine.o $(UTIL_OBJS)
$(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(OPENCL_LIBS)
oclvanityminer: oclvanityminer.o oclengine.o $(UTIL_OBJS)
$(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(OPENCL_LIBS) -lcurl
clean:
rm -f $(OBJS) $(PROGS)