forked from foretagsplatsen/Divan
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
162 lines (126 loc) · 4.82 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
EXTRA_DIST = Makefile
# Warning: This is an automatically generated file, do not edit!
srcdir=.
top_srcdir=..
include $(top_srcdir)/config.make
ifeq ($(CONFIG),DEBUG)
ASSEMBLY_COMPILER_COMMAND = gmcs
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize- -debug "-define:DEBUG;TRACE"
ASSEMBLY = bin/Debug/Divan.Test.dll
ASSEMBLY_MDB = $(ASSEMBLY).mdb
COMPILE_TARGET = library
PROJECT_REFERENCES = \
../src/bin/Debug/Divan.dll
BUILD_DIR = bin/Debug/
NEWTONSOFT_JSON_DLL_SOURCE=../lib/Newtonsoft.Json.dll
NUNIT_FRAMEWORK_DLL_SOURCE=../lib/nunit.framework.dll
DIVAN_DLL_SOURCE=../src/bin/Debug/Divan.dll
DIVAN_DLL_MDB_SOURCE=../src/bin/Debug/Divan.dll.mdb
DIVAN_DLL_MDB=$(BUILD_DIR)/Divan.dll.mdb
DIVAN_TEST_DLL_MDB_SOURCE=bin/Debug/Divan.Test.dll.mdb
DIVAN_TEST_DLL_MDB=$(BUILD_DIR)/Divan.Test.dll.mdb
endif
ifeq ($(CONFIG),RELEASE)
ASSEMBLY_COMPILER_COMMAND = gmcs
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ "-define:TRACE"
ASSEMBLY = bin/Release/Divan.Test.dll
ASSEMBLY_MDB =
COMPILE_TARGET = library
PROJECT_REFERENCES = \
../src/bin/Release/Divan.dll
BUILD_DIR = bin/Release/
NEWTONSOFT_JSON_DLL_SOURCE=../lib/Newtonsoft.Json.dll
NUNIT_FRAMEWORK_DLL_SOURCE=../lib/nunit.framework.dll
DIVAN_DLL_SOURCE=../src/bin/Release/Divan.dll
DIVAN_DLL_MDB=
DIVAN_TEST_DLL_MDB=
endif
AL=al2
SATELLITE_ASSEMBLY_NAME=$(notdir $(basename $(ASSEMBLY))).resources.dll
PROGRAMFILES = \
$(NEWTONSOFT_JSON_DLL) \
$(NUNIT_FRAMEWORK_DLL) \
$(DIVAN_DLL) \
$(DIVAN_DLL_MDB) \
$(DIVAN_TEST_DLL_MDB)
LINUX_PKGCONFIG = \
$(DIVAN_TEST_PC)
RESGEN=resgen2
NEWTONSOFT_JSON_DLL = $(BUILD_DIR)/Newtonsoft.Json.dll
NUNIT_FRAMEWORK_DLL = $(BUILD_DIR)/nunit.framework.dll
DIVAN_DLL = $(BUILD_DIR)/Divan.dll
DIVAN_TEST_PC = $(BUILD_DIR)/divan.test.pc
FILES = \
CouchTest.cs \
Lucene/CouchLuceneTest.cs \
Properties/AssemblyInfo.cs
DATA_FILES =
RESOURCES =
EXTRAS = \
App.config \
divan.test.pc.in
REFERENCES = \
../lib/Newtonsoft.Json.dll \
../lib/nunit.framework.dll \
../src/bin/Debug/Divan.dll \
System \
System.Configuration \
System.Core \
System.Data \
System.Data.DataSetExtensions \
System.Web \
System.Xml \
System.Xml.Linq
DLL_REFERENCES = \
../lib/Newtonsoft.Json.dll \
../lib/nunit.framework.dll
CLEANFILES = $(PROGRAMFILES) $(LINUX_PKGCONFIG)
#Targets
all: $(ASSEMBLY) $(PROGRAMFILES) $(LINUX_PKGCONFIG) $(top_srcdir)/config.make
include $(top_srcdir)/Makefile.include
#include $(srcdir)/custom-hooks.make
$(eval $(call emit-deploy-target,NEWTONSOFT_JSON_DLL))
$(eval $(call emit-deploy-target,NUNIT_FRAMEWORK_DLL))
$(eval $(call emit-deploy-target,DIVAN_DLL))
$(eval $(call emit-deploy-target,DIVAN_DLL_MDB))
$(eval $(call emit-deploy-wrapper,DIVAN_TEST_PC,divan.test.pc))
$(eval $(call emit_resgen_targets))
$(build_xamlg_list): %.xaml.g.cs: %.xaml
xamlg '$<'
$(ASSEMBLY) $(ASSEMBLY_MDB): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list) $(build_satellite_assembly_list)
make pre-all-local-hook prefix=$(prefix)
mkdir -p $(shell dirname $(ASSEMBLY))
make $(CONFIG)_BeforeBuild
$(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_resources_embed) $(build_references_ref)
make $(CONFIG)_AfterBuild
make post-all-local-hook prefix=$(prefix)
install-local: $(ASSEMBLY) $(ASSEMBLY_MDB)
make pre-install-local-hook prefix=$(prefix)
make install-satellite-assemblies prefix=$(prefix)
mkdir -p '$(DESTDIR)$(libdir)/$(PACKAGE)'
$(call cp,$(ASSEMBLY),$(DESTDIR)$(libdir)/$(PACKAGE))
$(call cp,$(ASSEMBLY_MDB),$(DESTDIR)$(libdir)/$(PACKAGE))
$(call cp,$(NEWTONSOFT_JSON_DLL),$(DESTDIR)$(libdir)/$(PACKAGE))
$(call cp,$(NUNIT_FRAMEWORK_DLL),$(DESTDIR)$(libdir)/$(PACKAGE))
$(call cp,$(DIVAN_DLL),$(DESTDIR)$(libdir)/$(PACKAGE))
$(call cp,$(DIVAN_DLL_MDB),$(DESTDIR)$(libdir)/$(PACKAGE))
$(call cp,$(DIVAN_TEST_DLL_MDB),$(DESTDIR)$(libdir)/$(PACKAGE))
mkdir -p '$(DESTDIR)$(libdir)/pkgconfig'
$(call cp,$(DIVAN_TEST_PC),$(DESTDIR)$(libdir)/pkgconfig)
make post-install-local-hook prefix=$(prefix)
uninstall-local: $(ASSEMBLY) $(ASSEMBLY_MDB)
make pre-uninstall-local-hook prefix=$(prefix)
make uninstall-satellite-assemblies prefix=$(prefix)
$(call rm,$(ASSEMBLY),$(DESTDIR)$(libdir)/$(PACKAGE))
$(call rm,$(ASSEMBLY_MDB),$(DESTDIR)$(libdir)/$(PACKAGE))
$(call rm,$(NEWTONSOFT_JSON_DLL),$(DESTDIR)$(libdir)/$(PACKAGE))
$(call rm,$(NUNIT_FRAMEWORK_DLL),$(DESTDIR)$(libdir)/$(PACKAGE))
$(call rm,$(DIVAN_DLL),$(DESTDIR)$(libdir)/$(PACKAGE))
$(call rm,$(DIVAN_DLL_MDB),$(DESTDIR)$(libdir)/$(PACKAGE))
$(call rm,$(DIVAN_TEST_DLL_MDB),$(DESTDIR)$(libdir)/$(PACKAGE))
$(call rm,$(DIVAN_TEST_PC),$(DESTDIR)$(libdir)/pkgconfig)
make post-uninstall-local-hook prefix=$(prefix)
install: install-local
uninstall: uninstall-local
clean: clean-local
include $(top_srcdir)/rules.make