From f5fd5ac81904160c6bd4ccda04e333ca44461b22 Mon Sep 17 00:00:00 2001 From: Magnus Ahltorp Date: Thu, 25 Sep 2014 17:57:31 +0200 Subject: Add Makefile to c_src --- Makefile | 5 ++++- c_src/Makefile | 13 +++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 c_src/Makefile diff --git a/Makefile b/Makefile index 4e54096..b4bb715 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,9 @@ build all: (cd c_src && make all) - cp c_src/fsynchelper priv/fsynchelper + mkdir -p priv + cp c_src/fsynchelper priv/ erl -make clean: + (cd c_src && make clean) + -rm priv/fsynchelper -rm ebin/*.beam diff --git a/c_src/Makefile b/c_src/Makefile new file mode 100644 index 0000000..338dc6d --- /dev/null +++ b/c_src/Makefile @@ -0,0 +1,13 @@ +CC = gcc +CFLAGS = -Wall +LDFLAGS = + +PORTS = fsynchelper + +all: $(PORTS) + +clean: + rm -f *.o $(PORTS) + +fsynchelper: net_read_write.o erlport.o fsynchelper.o + $(CC) $(LDFLAGS) -o fsynchelper net_read_write.o erlport.o fsynchelper.o -- cgit v1.1