1 2EXTRA_DIST = 3 4if ENABLE_DEBUG 5ASSEMBLY_COMPILER_COMMAND = mcs 6ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize- -debug -define:DEBUG 7ASSEMBLY = ../bin/Ntp.Data.Provider.dll 8ASSEMBLY_MDB = $(ASSEMBLY).mdb 9COMPILE_TARGET = library 10PROJECT_REFERENCES = \ 11 ../bin/Ntp.Data.dll 12BUILD_DIR = ../bin 13 14NTP_DATA_PROVIDER_DLL_MDB_SOURCE=../bin/Ntp.Data.Provider.dll.mdb 15NTP_DATA_PROVIDER_DLL_MDB=$(BUILD_DIR)/Ntp.Data.Provider.dll.mdb 16MYSQL_DATA_DLL_SOURCE=../packages/MySql.Data.6.9.9/lib/net45/MySql.Data.dll 17NPGSQL_DLL_SOURCE=../packages/Npgsql.3.1.9/lib/net451/Npgsql.dll 18NTP_DATA_DLL_SOURCE=../bin/Ntp.Data.dll 19NTP_DATA_DLL_MDB_SOURCE=../bin/Ntp.Data.dll.mdb 20NTP_DATA_DLL_MDB=$(BUILD_DIR)/Ntp.Data.dll.mdb 21NTP_COMMON_DLL_SOURCE=../bin/Ntp.Common.dll 22NTP_COMMON_DLL_MDB_SOURCE=../bin/Ntp.Common.dll.mdb 23NTP_COMMON_DLL_MDB=$(BUILD_DIR)/Ntp.Common.dll.mdb 24 25endif 26 27if ENABLE_RELEASE 28ASSEMBLY_COMPILER_COMMAND = mcs 29ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ 30ASSEMBLY = ../bin/Ntp.Data.Provider.dll 31ASSEMBLY_MDB = 32COMPILE_TARGET = library 33PROJECT_REFERENCES = \ 34 ../bin/Ntp.Data.dll 35BUILD_DIR = ../bin 36 37NTP_DATA_PROVIDER_DLL_MDB= 38MYSQL_DATA_DLL_SOURCE=../packages/MySql.Data.6.9.9/lib/net45/MySql.Data.dll 39NPGSQL_DLL_SOURCE=../packages/Npgsql.3.1.9/lib/net451/Npgsql.dll 40NTP_DATA_DLL_SOURCE=../bin/Ntp.Data.dll 41NTP_DATA_DLL_MDB= 42NTP_COMMON_DLL_SOURCE=../bin/Ntp.Common.dll 43NTP_COMMON_DLL_MDB= 44 45endif 46 47AL=al 48SATELLITE_ASSEMBLY_NAME=$(notdir $(basename $(ASSEMBLY))).resources.dll 49 50PROGRAMFILES = \ 51 $(NTP_DATA_PROVIDER_DLL_MDB) \ 52 $(MYSQL_DATA_DLL) \ 53 $(NPGSQL_DLL) \ 54 $(NTP_DATA_DLL) \ 55 $(NTP_DATA_DLL_MDB) \ 56 $(NTP_COMMON_DLL) \ 57 $(NTP_COMMON_DLL_MDB) 58 59RESGEN=resgen2 60 61all: $(ASSEMBLY) $(PROGRAMFILES) 62 63FILES = \ 64 ../Shared/AssemblyInfo.cs \ 65 MySqlFactory.cs \ 66 SqlDatabaseFactory.cs \ 67 PostgreSqlFactory.cs 68 69DATA_FILES = 70 71RESOURCES = 72 73EXTRAS = packages.config 74 75REFERENCES = \ 76 System \ 77 System.Data 78 79DLL_REFERENCES = \ 80 $(MYSQL_DATA_DLL_SOURCE) \ 81 $(NPGSQL_DLL_SOURCE) 82 83CLEANFILES = $(PROGRAMFILES) 84 85include $(top_srcdir)/Makefile.include 86 87MYSQL_DATA_DLL = $(BUILD_DIR)/MySql.Data.dll 88NPGSQL_DLL = $(BUILD_DIR)/Npgsql.dll 89NTP_DATA_DLL = $(BUILD_DIR)/Ntp.Data.dll 90NTP_COMMON_DLL = $(BUILD_DIR)/Ntp.Common.dll 91 92$(eval $(call emit-deploy-target,MYSQL_DATA_DLL)) 93$(eval $(call emit-deploy-target,NPGSQL_DLL)) 94 95 96$(eval $(call emit_resgen_targets)) 97$(build_xamlg_list): %.xaml.g.cs: %.xaml 98 xamlg '$<' 99 100$(ASSEMBLY_MDB): $(ASSEMBLY) 101 102$(ASSEMBLY): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list) $(build_satellite_assembly_list) 103 mkdir -p $(shell dirname $(ASSEMBLY)) 104 $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_resources_embed) $(build_references_ref) 105