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

Update Makefile #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
28 changes: 13 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,26 @@
# apt install libcurl4-openssl-dev
# apt install check # Only need if you want to run tests

LIBS=-lpcre -lcrypto -lm -lpthread
CFLAGS=-ggdb -O3 -Wall -Wno-deprecated
# CFLAGS=-ggdb -Wall -Wno-deprecated -fsanitize=address
# CFLAGS=-ggdb -O3 -Wall -I /usr/local/cuda-10.2/include/
CC = gcc
CFLAGS = -ggdb -O3 -Wall -Wno-deprecated
LIBS = -lpcre -lcrypto -lm -lpthread

OBJS=vanitygen.o oclvanitygen.o oclvanityminer.o oclengine.o keyconv.o pattern.o util.o groestl.o sha3.o ed25519.o \
stellar.o base32.o crc16.o bech32.o segwit_addr.o
PROGS=vanitygen++ keyconv oclvanitygen++ oclvanityminer
OBJS = vanitygen.o oclvanitygen.o oclvanityminer.o oclengine.o keyconv.o pattern.o util.o groestl.o sha3.o ed25519.o \
stellar.o base32.o crc16.o bech32.o segwit_addr.o simplevanitygen.o
PROGS = vanitygen++ keyconv oclvanitygen++ oclvanityminer

PLATFORM=$(shell uname -s)
PLATFORM = $(shell uname -s)
ifeq ($(PLATFORM),Darwin)
OPENCL_LIBS=-framework OpenCL
LIBS+=-L/usr/local/opt/openssl/lib
CFLAGS+=-I/usr/local/opt/openssl/include
OPENCL_LIBS = -framework OpenCL
LIBS += -L/usr/local/opt/openssl/lib
CFLAGS += -I/usr/local/opt/openssl/include
else ifeq ($(PLATFORM),NetBSD)
LIBS+=`pcre-config --libs`
CFLAGS+=`pcre-config --cflags`
LIBS += `pcre-config --libs`
CFLAGS += `pcre-config --cflags`
else
OPENCL_LIBS=-lOpenCL
OPENCL_LIBS = -lOpenCL
endif


most: vanitygen++ keyconv

all: $(PROGS)
Expand Down