Browse Source

Merge branch 'master' of github.com:samr7/vanitygen

master
samr7 13 years ago
parent
commit
2de1c2e647
  1. 7
      INSTALL
  2. 16
      Makefile.osx
  3. 7
      oclvanitygen.c

7
INSTALL

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

16
Makefile.osx vendored

@ -0,0 +1,16 @@ @@ -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)

7
oclvanitygen.c

@ -28,7 +28,14 @@ @@ -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"

Loading…
Cancel
Save