New test.
[mono.git] / mcs / tools / mono-shlib-cop / Makefile
1 thisdir = tools/mono-shlib-cop
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 LOCAL_MCS_FLAGS = -r:Mono.Posix.dll -r:Mono.GetOptions.dll
6
7 PROGRAM = mono-shlib-cop.exe
8
9 TEST_INPUT = test.dll
10
11 EXTRA_DISTFILES = test.cs
12
13 include ../../build/executable.make
14
15 test-local: $(PROGRAM) $(TEST_INPUT)
16
17 clean-local: cleanup
18
19 cleanup:
20         -rm $(TEST_INPUT)
21
22 run-test-local: run-mono-shlib-cop-test
23
24 run-mono-shlib-cop-test: $(PROGRAM) $(TEST_INPUT)
25         $(RUNTIME) $(PROGRAM) $(TEST_INPUT) | diff - test.dll.out
26
27 $(TEST_INPUT) : test.cs
28         $(CSCOMPILE) -target:library $< -out:$@
29