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