Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for MacOSX #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions INSTALL
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Linux/OSX with GNU make:
make

MacOSX:
You need to have `openssl` and `pcre` libraries installed:
`$ brew install openssl && brew install pcre`
Now, use Makefile.macosx to `make`:
`$ make -f Makefile.macosx`

(It has two options appended to CFLAGS: `-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib`)

Windows:
Tools: Microsoft Visual Studio 2010, Visual C++
Prerequisites:
Expand Down
30 changes: 30 additions & 0 deletions Makefile.macosx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
LIBS=-lpcre -lcrypto -lm -lpthread
CFLAGS=-ggdb -O3 -Wall -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib
OBJS=vanitygen.o oclvanitygen.o oclvanityminer.o oclengine.o keyconv.o pattern.o util.o
PROGS=vanitygen keyconv oclvanitygen oclvanityminer

PLATFORM=$(shell uname -s)
ifeq ($(PLATFORM),Darwin)
OPENCL_LIBS=-framework OpenCL
else
OPENCL_LIBS=-lOpenCL
endif

most: vanitygen keyconv

all: $(PROGS)

vanitygen: vanitygen.o pattern.o util.o
$(CC) $^ -o $@ $(CFLAGS) $(LIBS)

oclvanitygen: oclvanitygen.o oclengine.o pattern.o util.o
$(CC) $^ -o $@ $(CFLAGS) $(LIBS) $(OPENCL_LIBS)

oclvanityminer: oclvanityminer.o oclengine.o pattern.o util.o
$(CC) $^ -o $@ $(CFLAGS) $(LIBS) $(OPENCL_LIBS) -lcurl

keyconv: keyconv.o util.o
$(CC) $^ -o $@ $(CFLAGS) $(LIBS)

clean:
rm -f $(OBJS) $(PROGS) $(TESTS)