2009-06-12 Bill Holmes <billholmes54@gmail.com>
[mono.git] / mcs / nunit20 / util / Makefile
1 thisdir = nunit20/util
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 LIBRARY = NUnit.Util.dll
6 LIBRARY_NAME = nunit.util.dll
7 LIBRARY_SNK = $(topdir)/nunit.key
8
9 LOCAL_MCS_FLAGS= \
10         /resource:Transform.resources,NUnit.Util.Transform.resources \
11         -r:nunit.framework.dll -r:nunit.core.dll -r:System.dll \
12         -r:System.Xml.dll /d:MONO /d:StronglyNamedAssembly
13 NO_TEST = yo
14
15 RESX_RES = Transform.resources
16
17 EXTRA_DISTFILES = \
18         nunit.util.dll.csproj   \
19         $(RESX_RES:.resources=.resx)
20
21 CLEAN_FILES = $(RESX_RES)
22
23 ifeq (net_2_0, $(PROFILE))
24 NO_INSTALL = yes
25 install-local: install-symlink
26 uninstall-local: uninstall-symlink
27 endif
28
29 include ../../build/library.make
30
31 $(the_lib): $(RESX_RES)
32
33 $(RESX_RES): %.resources: %.resx
34         $(RESGEN) `echo $< | $(PLATFORM_CHANGE_SEPARATOR_CMD)`
35
36 symlinkdir = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)
37 install-symlink:
38         $(MKINSTALLDIRS) $(DESTDIR)$(symlinkdir)
39         cd $(DESTDIR)$(symlinkdir) && rm -f $(LIBRARY_NAME) && ln -s ../1.0/$(LIBRARY_NAME) $(LIBRARY_NAME)
40
41 uninstall-symlink:
42         rm -f $(DESTDIR)$(symlinkdir)/$(LIBRARY_NAME)