Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
Initial revision of CPU miner.
Browse files Browse the repository at this point in the history
NOTE: non-functional (incorrectly thinks it finds solution, too quickly)
  • Loading branch information
Jeff Garzik authored and Jeff Garzik committed Nov 24, 2010
0 parents commit 9599867
Show file tree
Hide file tree
Showing 4 changed files with 638 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

minerd
*.o

22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

CFLAGS= -O2 -Wall -g

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)

Loading

0 comments on commit 9599867

Please sign in to comment.