|
|
|
CC = cl
|
|
|
|
OPENSSL_DIR = C:\OpenSSL-Win32
|
|
|
|
PTHREADS_DIR = C:\pthreads-w32-2-8-0-release
|
|
|
|
PCRE_DIR = C:\pcre-7.9-src
|
|
|
|
OPENCL_DIR = "C:\Program Files (x86)\AMD APP"
|
|
|
|
OPENCL_INCLUDE = /I$(OPENCL_DIR)\include
|
|
|
|
OPENCL_LIBS = $(OPENCL_DIR)\lib\x86\OpenCL.lib
|
|
|
|
CFLAGS = /D_WIN32 /DPTW32_STATIC_LIB /DPCRE_STATIC /I$(OPENSSL_DIR)\include /I$(PTHREADS_DIR) /I$(PCRE_DIR)
|
|
|
|
LIBS = $(OPENSSL_DIR)\lib\libeay32.lib $(PTHREADS_DIR)\pthreadVC2.lib $(PCRE_DIR)\pcre.lib ws2_32.lib
|
|
|
|
OBJS = vanitygen.obj oclvanitygen.obj pattern.obj util.obj winglue.obj
|
|
|
|
|
|
|
|
all: vanitygen.exe
|
|
|
|
|
|
|
|
vanitygen.exe: vanitygen.obj pattern.obj util.obj winglue.obj
|
|
|
|
link /nologo /out:$@ $** $(LIBS)
|
|
|
|
|
|
|
|
oclvanitygen.exe: oclvanitygen.obj pattern.obj util.obj winglue.obj
|
|
|
|
link /nologo /out:$@ $** $(LIBS) $(OPENCL_LIBS)
|
|
|
|
|
|
|
|
.c.obj:
|
|
|
|
@$(CC) /nologo $(CFLAGS) /c /Tp$< /Fo$@
|
|
|
|
|
|
|
|
oclvanitygen.obj: oclvanitygen.c
|
|
|
|
@$(CC) /nologo $(CFLAGS) $(OPENCL_INCLUDE) /c /Tpoclvanitygen.c /Fo$@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
del vanitygen.exe $(OBJS)
|