2017-10-09 19:16:51 +00:00
|
|
|
INCLUDEPATHS=-I.
|
2011-02-04 23:44:17 +00:00
|
|
|
|
2017-10-09 19:16:51 +00:00
|
|
|
LIBS=-lOpenCL -ljansson -lcurl -lpthread
|
|
|
|
# LDFLAGS = -L$(AMDAPPSDKROOT)/lib/x86_64
|
|
|
|
LDFLAGS = -L/usr/local/cuda/lib64
|
2011-02-04 23:44:17 +00:00
|
|
|
|
|
|
|
DEFS=
|
|
|
|
DEBUGFLAGS=-g
|
|
|
|
CFLAGS=-O3 -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
|
|
|
|
HEADERS=
|
|
|
|
|
2017-10-09 19:16:51 +00:00
|
|
|
OBJS=miner.o ocl.o util.o streebog.o
|
2011-02-04 23:44:17 +00:00
|
|
|
|
2017-10-09 19:16:51 +00:00
|
|
|
all: gostoclminer
|
2011-02-04 23:44:17 +00:00
|
|
|
|
|
|
|
%.o: %.c $(HEADERS)
|
|
|
|
gcc -c $(CFLAGS) -o $@ $<
|
|
|
|
|
2017-10-09 19:16:51 +00:00
|
|
|
gostoclminer: $(OBJS)
|
|
|
|
gcc $(LDFLAGS) -o $@ $^ $(LIBS)
|
2011-02-04 23:44:17 +00:00
|
|
|
|
|
|
|
clean:
|
2017-10-09 19:16:51 +00:00
|
|
|
-rm *.o gostoclminer
|