diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..114b168 --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,20 @@ +CC=gcc + +CFLAGS=-g -O0 + +rep.so: binding.c ../target/debug/librep.dylib helper.o big_endian.o + $(CC) $(CFLAGS) $+ -shared -export-dynamic -o $@ + +test: test.c ../target/debug/librep.dylib helper.o big_endian.o + $(CC) $(CFLAGS) $+ -o $@ + +.PHONY: clean rs windows + +clean: + rm *.o + +rs: + cargo build + +windows: + cargo build --target=x86_64-pc-windows-gnu |