1
ASSEMBLY_COMPILER_COMMAND = gmcs
2
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG
3
ASSEMBLY = ../lib/SystemInfoExtension.dll
4
COMPILE_TARGET = library
6
../../bin/Mono.Addins.dll \
7
../lib/CommandExtension.dll \
8
../UnitTests/bin/Debug/UnitTests.dll
13
all: $(ASSEMBLY) $(SATELLITE_ASSEMBLY)
17
ModuleExtensionNode.cs \
21
DATA_FILES = SystemInfoExtension.addin.xml
24
SATELLITE_ASSEMBLY = ../lib/ca/SystemInfoExtension.resources.dll
25
MAIN_RESOURCE = Resources.resources
27
EXTRAS = Resources.resx Resources.ca.resx
29
REFERENCES = -r:System
33
$(ASSEMBLY).mdb: $(ASSEMBLY)
35
$(ASSEMBLY): $(build_sources) $(build_resources) $(build_datafiles) $(MAIN_RESOURCE)
36
mkdir -p $(dir $(ASSEMBLY))
37
$(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$@ -target:$(COMPILE_TARGET) /res:$(MAIN_RESOURCE) $(build_sources) $(build_resources_embed) $(build_references_ref)
39
$(MAIN_RESOURCE): Resources.resx
40
resgen /compile Resources.resx
42
$(SATELLITE_ASSEMBLY): Resources.ca.resx
43
resgen /compile Resources.ca.resx
44
mkdir -p $(dir $(ASSEMBLY))/ca
45
al /t:lib /embed:Resources.ca.resources,Resources.ca.resources /out:$(SATELLITE_ASSEMBLY) /culture:ca
46
# Workaround to mono bug #345627 - Satellite resource assemblies not loaded from the main assembly directory
47
mkdir -p ../UnitTests/bin/Debug/ca
48
cp $(SATELLITE_ASSEMBLY) ../UnitTests/bin/Debug/ca
52
include $(top_srcdir)/makefile-sample.include
54
CLEANFILES += $(SATELLITE_ASSEMBLY) $(MAIN_RESOURCE)