1
2EXTRA_DIST =
3
4if ENABLE_DEBUG
5ASSEMBLY_COMPILER_COMMAND = mcs
6ASSEMBLY_COMPILER_FLAGS =  -noconfig -codepage:utf8 -warn:4 -optimize- -debug "-define:TRACE;DEBUG" "-main:Ntp.Analyzer.Validate.Cli.Program"
7ASSEMBLY = ../bin/Ntp.Analyzer.Validate.Cli.exe
8ASSEMBLY_MDB = $(ASSEMBLY).mdb
9COMPILE_TARGET = exe
10PROJECT_REFERENCES =  \
11	../bin/Ntp.Analyzer.dll \
12	../bin/Ntp.Common.dll
13BUILD_DIR = ../bin
14
15NTP_ANALYZER_VALIDATE_CLI_EXE_MDB_SOURCE=../bin/Ntp.Analyzer.Validate.Cli.exe.mdb
16NTP_ANALYZER_VALIDATE_CLI_EXE_MDB=$(BUILD_DIR)/Ntp.Analyzer.Validate.Cli.exe.mdb
17NTP_ANALYZER_DLL_SOURCE=../bin/Ntp.Analyzer.dll
18NTP_ANALYZER_DLL_MDB_SOURCE=../bin/Ntp.Analyzer.dll.mdb
19NTP_ANALYZER_DLL_MDB=$(BUILD_DIR)/Ntp.Analyzer.dll.mdb
20NTP_ANALYZER_OBJECTS_DLL_SOURCE=../bin/Ntp.Analyzer.Objects.dll
21NTP_ANALYZER_OBJECTS_DLL_MDB_SOURCE=../bin/Ntp.Analyzer.Objects.dll.mdb
22NTP_ANALYZER_OBJECTS_DLL_MDB=$(BUILD_DIR)/Ntp.Analyzer.Objects.dll.mdb
23NTP_DATA_DLL_SOURCE=../bin/Ntp.Data.dll
24NTP_DATA_DLL_MDB_SOURCE=../bin/Ntp.Data.dll.mdb
25NTP_DATA_DLL_MDB=$(BUILD_DIR)/Ntp.Data.dll.mdb
26NTP_COMMON_DLL_SOURCE=../bin/Ntp.Common.dll
27NTP_COMMON_DLL_MDB_SOURCE=../bin/Ntp.Common.dll.mdb
28NTP_COMMON_DLL_MDB=$(BUILD_DIR)/Ntp.Common.dll.mdb
29NTP_ANALYZER_DATA_DLL_SOURCE=../bin/Ntp.Analyzer.Data.dll
30NTP_ANALYZER_DATA_DLL_MDB_SOURCE=../bin/Ntp.Analyzer.Data.dll.mdb
31NTP_ANALYZER_DATA_DLL_MDB=$(BUILD_DIR)/Ntp.Analyzer.Data.dll.mdb
32NTP_DATA_PROVIDER_DLL_SOURCE=../bin/Ntp.Data.Provider.dll
33NTP_DATA_PROVIDER_DLL_MDB_SOURCE=../bin/Ntp.Data.Provider.dll.mdb
34NTP_DATA_PROVIDER_DLL_MDB=$(BUILD_DIR)/Ntp.Data.Provider.dll.mdb
35MYSQL_DATA_DLL_SOURCE=../packages/MySql.Data.6.9.9/lib/net45/MySql.Data.dll
36NPGSQL_DLL_SOURCE=../packages/Npgsql.3.1.9/lib/net451/Npgsql.dll
37NTP_ANALYZER_IMPORT_DLL_SOURCE=../bin/Ntp.Analyzer.Import.dll
38NTP_ANALYZER_IMPORT_DLL_MDB_SOURCE=../bin/Ntp.Analyzer.Import.dll.mdb
39NTP_ANALYZER_IMPORT_DLL_MDB=$(BUILD_DIR)/Ntp.Analyzer.Import.dll.mdb
40
41endif
42
43if ENABLE_RELEASE
44ASSEMBLY_COMPILER_COMMAND = mcs
45ASSEMBLY_COMPILER_FLAGS =  -noconfig -codepage:utf8 -warn:4 -optimize+ "-define:TRACE" "-main:Ntp.Analyzer.Validate.Cli.Program"
46ASSEMBLY = ../bin/Ntp.Analyzer.Validate.Cli.exe
47ASSEMBLY_MDB =
48COMPILE_TARGET = exe
49PROJECT_REFERENCES =  \
50	../bin/Ntp.Analyzer.dll \
51	../bin/Ntp.Common.dll
52BUILD_DIR = ../bin
53
54NTP_ANALYZER_VALIDATE_CLI_EXE_MDB=
55NTP_ANALYZER_DLL_SOURCE=../bin/Ntp.Analyzer.dll
56NTP_ANALYZER_DLL_MDB=
57NTP_ANALYZER_OBJECTS_DLL_SOURCE=../bin/Ntp.Analyzer.Objects.dll
58NTP_ANALYZER_OBJECTS_DLL_MDB=
59NTP_DATA_DLL_SOURCE=../bin/Ntp.Data.dll
60NTP_DATA_DLL_MDB=
61NTP_COMMON_DLL_SOURCE=../bin/Ntp.Common.dll
62NTP_COMMON_DLL_MDB=
63NTP_ANALYZER_DATA_DLL_SOURCE=../bin/Ntp.Analyzer.Data.dll
64NTP_ANALYZER_DATA_DLL_MDB=
65NTP_DATA_PROVIDER_DLL_SOURCE=../bin/Ntp.Data.Provider.dll
66NTP_DATA_PROVIDER_DLL_MDB=
67MYSQL_DATA_DLL_SOURCE=../packages/MySql.Data.6.9.9/lib/net45/MySql.Data.dll
68NPGSQL_DLL_SOURCE=../packages/Npgsql.3.1.9/lib/net451/Npgsql.dll
69NTP_ANALYZER_IMPORT_DLL_SOURCE=../bin/Ntp.Analyzer.Import.dll
70NTP_ANALYZER_IMPORT_DLL_MDB=
71
72endif
73
74AL=al
75SATELLITE_ASSEMBLY_NAME=$(notdir $(basename $(ASSEMBLY))).resources.dll
76
77PROGRAMFILES = \
78	$(NTP_ANALYZER_VALIDATE_CLI_EXE_MDB) \
79	$(NTP_ANALYZER_DLL) \
80	$(NTP_ANALYZER_DLL_MDB) \
81	$(NTP_ANALYZER_OBJECTS_DLL) \
82	$(NTP_ANALYZER_OBJECTS_DLL_MDB) \
83	$(NTP_DATA_DLL) \
84	$(NTP_DATA_DLL_MDB) \
85	$(NTP_COMMON_DLL) \
86	$(NTP_COMMON_DLL_MDB) \
87	$(NTP_ANALYZER_DATA_DLL) \
88	$(NTP_ANALYZER_DATA_DLL_MDB) \
89	$(NTP_DATA_PROVIDER_DLL) \
90	$(NTP_DATA_PROVIDER_DLL_MDB) \
91	$(MYSQL_DATA_DLL) \
92	$(NPGSQL_DLL) \
93	$(NTP_ANALYZER_IMPORT_DLL) \
94	$(NTP_ANALYZER_IMPORT_DLL_MDB)
95
96BINARIES = $(NTPAV)
97
98RESGEN=resgen2
99
100all: $(ASSEMBLY) $(PROGRAMFILES) $(BINARIES)
101
102FILES = ../Shared/AssemblyInfo.cs Program.cs
103
104DATA_FILES =
105
106RESOURCES =
107
108EXTRAS =
109
110REFERENCES = System
111
112DLL_REFERENCES =
113
114CLEANFILES = $(PROGRAMFILES) $(BINARIES)
115
116include $(top_srcdir)/Makefile.include
117
118NTP_ANALYZER_DLL = $(BUILD_DIR)/Ntp.Analyzer.dll
119NTP_ANALYZER_OBJECTS_DLL = $(BUILD_DIR)/Ntp.Analyzer.Objects.dll
120NTP_DATA_DLL = $(BUILD_DIR)/Ntp.Data.dll
121NTP_COMMON_DLL = $(BUILD_DIR)/Ntp.Common.dll
122NTP_ANALYZER_DATA_DLL = $(BUILD_DIR)/Ntp.Analyzer.Data.dll
123NTP_DATA_PROVIDER_DLL = $(BUILD_DIR)/Ntp.Data.Provider.dll
124MYSQL_DATA_DLL = $(BUILD_DIR)/MySql.Data.dll
125NPGSQL_DLL = $(BUILD_DIR)/Npgsql.dll
126NTP_ANALYZER_IMPORT_DLL = $(BUILD_DIR)/Ntp.Analyzer.Import.dll
127NTPAV = $(BUILD_DIR)/Ntp.Analyzer.Validate.Cli.exe
128
129$(eval $(call emit-deploy-target,MYSQL_DATA_DLL))
130$(eval $(call emit-deploy-target,NPGSQL_DLL))
131$(eval $(call emit-deploy-wrapper,NTPAV))
132
133
134$(eval $(call emit_resgen_targets))
135$(build_xamlg_list): %.xaml.g.cs: %.xaml
136	xamlg '$<'
137
138$(ASSEMBLY_MDB): $(ASSEMBLY)
139
140$(ASSEMBLY): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list) $(build_satellite_assembly_list)
141	mkdir -p $(shell dirname $(ASSEMBLY))
142	$(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_resources_embed) $(build_references_ref)
143