1
0
mirror of https://github.com/GOSTSec/vanitygen synced 2025-02-07 12:24:20 +00:00

Merge pull request #4 from dinox/master

Make it work on Mac OS X
This commit is contained in:
samr7 2011-08-01 12:45:43 -07:00
commit a4a407fc1e
3 changed files with 30 additions and 0 deletions

7
INSTALL Normal file
View File

@ -0,0 +1,7 @@
Linux:
make vanitygen
make oclvanitygen
OSX:
make -f Makefile.osx vanitygen
make -f Makefile.osx vanitygen

16
Makefile.osx Normal file
View File

@ -0,0 +1,16 @@
LIBS=-lpcre -lcrypto -lm -lpthread
CFLAGS=-ggdb -O3 -Wall
OBJS=vanitygen.o oclvanitygen.o pattern.o
PROGS=vanitygen
TESTS=
all: $(PROGS)
vanitygen: vanitygen.o pattern.o
$(CC) $^ -o $@ $(CFLAGS) $(LIBS)
oclvanitygen: oclvanitygen.o pattern.o
$(CC) $^ -o $@ $(CFLAGS) $(LIBS) -framework OpenCL
clean:
rm -f $(OBJS) $(PROGS) $(TESTS)

View File

@ -28,7 +28,14 @@
#include <openssl/rand.h>
#include <openssl/md5.h>
#ifdef __APPLE__
#include <OpenCL/cl.h>
#ifndef CL_CALLBACK
#define CL_CALLBACK
#endif
#else
#include <CL/cl.h>
#endif
#include "pattern.h"