24 lines
319 B
Makefile
24 lines
319 B
Makefile
|
|
CFLAGS= -O2 -Wall -g -march=native -pthread
|
|
|
|
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)
|
|
|
|
cpu-miner.o: cpu-miner.c sha256_generic.c
|
|
|