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

*Added makefile for osx

*Added INSTALL file
*Changed one include for running oclvanitygen on osx
*Added some files to .gitignore
This commit is contained in:
Erik Henriksson 2011-08-01 19:22:49 +02:00
parent b20eb08517
commit ca372318b3
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/rand.h>
#include <openssl/md5.h> #include <openssl/md5.h>
#ifdef __APPLE__
#include <OpenCL/cl.h>
#ifndef CL_CALLBACK
#define CL_CALLBACK
#endif
#else
#include <CL/cl.h> #include <CL/cl.h>
#endif
#include "pattern.h" #include "pattern.h"