blob: 114b168612f1d48ea726b6216ca9d5e98eab41d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
|