aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: b004836216d9c0dfb1ab06789a9390a02aabe81b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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