summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ac4519e
--- /dev/null
+++ b/Makefile
@@ -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)
+