Erlang integration (basic) done. Docs updated

This commit is contained in:
John Newby
2019-08-02 15:55:46 +02:00
parent 155bcfbe11
commit 5ca237202e
13 changed files with 290 additions and 82 deletions
+17 -4
View File
@@ -1,13 +1,26 @@
DEBUG ?= 0
ifeq ($(DEBUG), 1)
CFLAGS =-DDEBUG=1
else
CFLAGS=-DNDEBUG
endif
CC = gcc
LIBS = -llibecrecover.so
LDPATH = -Ltarget/debug
INCLUDEPATH = -Iinclude
%.o: %.c $(DEPS)
$(CC) -c -o $@ $<
$(CC) $(CFLAGS) -c -o $(INCLUDEPATH) $@ $<
all: test erl_ecrecover
test: src/test.c target/debug/libecrecover.so
$(CC) -o $@ $^ $(CFLAGS) $(LDPATH)
test: src/test.c src/base64.c target/debug/libecrecover.so
$(CC) -o $@ $^ $(INCLUDEPATH) $(CFLAGS) $(LDPATH)
./test
erl_ecrecover: src/erl_ecrecover.c src/base64.c src/erl_comm.c target/debug/libecrecover.so
$(CC) -o$ $@ $^ $(INCLUDEPATH) $(CFLAGS) $(LDPATH)
clean:
rm -f erl_ecrecover test