Debian Codegraph @

mcs/class/System.Web/Test/tools/Makefile

raw
1 thisdir = class/System.Web/Test/tools
2
3 include ../../../../build/rules.make
4
5 CLASSLIB_DIR = $(topdir)/class/lib/$(PROFILE)
6 STANDALONE_RUNNER_SUPPORT_ASSEMBLY = $(CLASSLIB_DIR)/standalone-runner-support.dll
7
8 STANDALONE_RUNNER_SOURCES = \
9 standalone-runner.cs \
10 ../../../Mono.Options/Mono.Options/Options.cs \
11
12 STANDALONE_RUNNER_REFERENCES = \
13 -r:$(STANDALONE_RUNNER_SUPPORT_ASSEMBLY) \
14 -r:$(CLASSLIB_DIR)/System.Web.dll \
15 -r:$(CLASSLIB_DIR)/System.dll \
16 -r:$(CLASSLIB_DIR)/mscorlib.dll
17
18 CACHE_PQ_TEST_GENERATOR_SOURCES = \
19 CachePQTestGenerator/CacheItemComparer.cs \
20 CachePQTestGenerator/PriorityQueue.cs \
21 CachePQTestGenerator/PriorityQueueState.cs \
22 CachePQTestGenerator/Sequences.cs \
23 CachePQTestGenerator/Utils.cs \
24 CachePQTestGenerator/cache-pq-test-generator.cs \
25 ../../System.Web.Caching/CacheItem.cs \
26 ../../System.Web.Caching/CacheItemPriorityQueue.cs \
27 ../../System.Web.Caching/CacheItemPriorityQueueDebug.cs \
28 ../System.Web.Caching/CacheItemPriorityQueueTestSupport.cs
29
30 CACHE_PQ_TEST_GENERATOR_REFERENCES = \
31 -pkg:dotnet
32
33 CACHE_PQ_TEST_SEQUENCES = $(wildcard ./CachePQTestGenerator/Sequences/*.seq)
34 CACHE_PQ_TEST_PACKED_SEQUENCES = $(wildcard ./CachePQTestGenerator/Sequences/*.seq.gz)
35
36 all-local: HtmlWriter.dll standalone-runner.exe cache-pq-test-generator.exe
37
38 HtmlWriter.dll: HtmlWriter.cs
39 $(CSCOMPILE) -t:library -r:System.Web.dll $<
40
41 standalone-runner.exe: deps $(STANDALONE_RUNNER_SOURCES)
42 $(CSCOMPILE) $(STANDALONE_RUNNER_REFERENCES) -out:$@ $(STANDALONE_RUNNER_SOURCES)
43
44 cache-pq-test-generator.exe: $(CACHE_PQ_TEST_GENERATOR_SOURCES)
45 $(CSCOMPILE) -d:DEBUG $(CACHE_PQ_TEST_GENERATOR_REFERENCES) -out:$@ $(CACHE_PQ_TEST_GENERATOR_SOURCES)
46
47 generate-cache-pq-tests: cache-pq-test-generator.exe
48 for f in $(patsubst %.seq.gz,%.seq,$(CACHE_PQ_TEST_PACKED_SEQUENCES)); do \
49 gunzip -c $$f.gz > $$f ; \
50 done ;
51 $(RUNTIME) --debug cache-pq-test-generator.exe ./CachePQTestGenerator/Sequences/ ../System.Web.Caching/CacheItemPriorityQueueTestData/ > ../System.Web.Caching/CacheItemPriorityQueueTest_generated.cs
52
53 deps:
54 ifndef STANDALONE_SUPPORT_BUILT
55 $(MAKE) -C ../../ standalone-runner-support
56 endif
57
58 clean:
59 rm -f HtmlWriter.dll HtmlWriter.*db
60 rm -f standalone-runner.exe standalone-runner.*db
61 for f in $(patsubst %.seq.gz,%.seq,$(CACHE_PQ_TEST_PACKED_SEQUENCES)); do \
62 rm -f $$f ; \
63 done ;