2010-11-24 05:33:20 +01:00
|
|
|
|
2010-11-24 09:36:53 +01:00
|
|
|
CFLAGS= -O2 -Wall -g -march=native -pthread
|
2010-11-24 05:33:20 +01:00
|
|
|
|
|
|
|
PROG = minerd
|
|
|
|
|
|
|
|
OBJS = cpu-miner.o
|
|
|
|
|
|
|
|
LDFLAGS = $(CFLAGS)
|
|
|
|
|
|
|
|
LIBS = -lcurl -ljansson -lcrypto
|
|
|
|
|
|
|
|
all: $(PROG)
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
gcc $(CFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(PROG) $(OBJS)
|
|
|
|
|
|
|
|
$(PROG): $(OBJS)
|
|
|
|
gcc $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBS)
|
|
|
|
|
2010-11-25 00:25:06 +01:00
|
|
|
cpu-miner.o: cpu-miner.c sha256_generic.c
|
|
|
|
|