diff --git a/INSTALL b/INSTALL index 8cd86e1..9c54f1e 100644 --- a/INSTALL +++ b/INSTALL @@ -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: diff --git a/Makefile.macosx b/Makefile.macosx new file mode 100644 index 0000000..3f33dbf --- /dev/null +++ b/Makefile.macosx @@ -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)