test/Makefile

19 lines
286 B
Makefile
Raw Permalink Normal View History

2019-04-13 11:47:57 +00:00
.PHONY: clean
all: tst.dll
cp tst_stub/mytst.h test
cp _build/default/dll/tst.dll test
cd test && i686-w64-mingw32-gcc -o test.exe tst.dll test.c
clean:
dune clean
cd test && rm mytst.h test.exe tst.dll
tst.dll:
dune build
test: all
cd test && ./test.exe