diff options
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | c_src/Makefile | 13 |
2 files changed, 17 insertions, 1 deletions
@@ -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 |