Skip to content

Commit

Permalink
mw first push
Browse files Browse the repository at this point in the history
  • Loading branch information
kk47 committed Aug 21, 2019
1 parent 4cc50e4 commit 5d12601
Show file tree
Hide file tree
Showing 141 changed files with 32,592 additions and 0 deletions.
4 changes: 4 additions & 0 deletions privacy/mimblewimble/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
a.out
mwtest
*.o
*.d
32 changes: 32 additions & 0 deletions privacy/mimblewimble/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
CC = g++
CXXFLAGS = -O -Wno-unused-parameter -std=c++11 -fPIC -Wno-unused-variable
INCLUDEFLAGS = -I.
LDLIBS = -L.
LDLIBS += -lsecp256k1
SRC_FILES := main.cpp
#SRC_FILES := $(wildcard *.cpp)
OBJS = $(patsubst %.cpp, %.o,$(SRC_FILES))
TARGETS = mwtest

all: secp256k1-zkp $(TARGETS)

secp256k1-zkp:
make -C ./secp256k1-zkp
.PHONY: secp256k1-zkp

$(TARGETS): $(OBJS)
$(CC) -o $@ $^ $(LDLIBS) $(CXXFLAGS)

%.o: %.c
$(CC) -o $@ -c $< $(CXXFLAGS) $(LDLIBS) $(INCLUDEFLAGS)

%.d:%.c
@set -e; rm -f $@; $(CC) -MM $< $(INCLUDEFLAGS) > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; rm -f $@.$$$$

-include $(OBJS:.o=.d)

.PHONY: clean
clean:
rm -f $(TARGETS) *.o *.d *.d.*

1 change: 1 addition & 0 deletions privacy/mimblewimble/common.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "utility/common.h"
Loading

0 comments on commit 5d12601

Please sign in to comment.