ntpa/Ntp.Analyzer.Monitor.Cli/Makefile.am

92 lines
2.8 KiB
Makefile

EXTRA_DIST =
if ENABLE_DEBUG
ASSEMBLY_COMPILER_COMMAND = mcs
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize- -debug "-define:TRACE;DEBUG" "-main:Ntp.Analyzer.Monitor.Cli.Program"
ASSEMBLY = ../bin/Ntp.Analyzer.Monitor.Cli.exe
ASSEMBLY_MDB = $(ASSEMBLY).mdb
COMPILE_TARGET = exe
PROJECT_REFERENCES = \
../bin/Ntp.Analyzer.Monitor.Client.dll \
../bin/Ntp.Common.dll
BUILD_DIR = ../bin
NTP_ANALYZER_MONITOR_CLI_EXE_MDB_SOURCE=../bin/Ntp.Analyzer.Monitor.Cli.exe.mdb
NTP_ANALYZER_MONITOR_CLI_EXE_MDB=$(BUILD_DIR)/Ntp.Analyzer.Monitor.Cli.exe.mdb
NTP_ANALYZER_MONITOR_CLIENT_DLL_SOURCE=../bin/Ntp.Analyzer.Monitor.Client.dll
NTP_ANALYZER_MONITOR_CLIENT_DLL_MDB_SOURCE=../bin/Ntp.Analyzer.Monitor.Client.dll.mdb
NTP_ANALYZER_MONITOR_CLIENT_DLL_MDB=$(BUILD_DIR)/Ntp.Analyzer.Monitor.Client.dll.mdb
NTP_COMMON_DLL_SOURCE=../bin/Ntp.Common.dll
NTP_COMMON_DLL_MDB_SOURCE=../bin/Ntp.Common.dll.mdb
NTP_COMMON_DLL_MDB=$(BUILD_DIR)/Ntp.Common.dll.mdb
endif
if ENABLE_RELEASE
ASSEMBLY_COMPILER_COMMAND = mcs
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ "-define:TRACE" "-main:Ntp.Analyzer.Monitor.Cli.Program"
ASSEMBLY = ../bin/Ntp.Analyzer.Monitor.Cli.exe
ASSEMBLY_MDB =
COMPILE_TARGET = exe
PROJECT_REFERENCES = \
../bin/Ntp.Analyzer.Monitor.Client.dll \
../bin/Ntp.Common.dll
BUILD_DIR = ../bin
NTP_ANALYZER_MONITOR_CLI_EXE_MDB=
NTP_ANALYZER_MONITOR_CLIENT_DLL_SOURCE=../bin/Ntp.Analyzer.Monitor.Client.dll
NTP_ANALYZER_MONITOR_CLIENT_DLL_MDB=
NTP_COMMON_DLL_SOURCE=../bin/Ntp.Common.dll
NTP_COMMON_DLL_MDB=
endif
AL=al
SATELLITE_ASSEMBLY_NAME=$(notdir $(basename $(ASSEMBLY))).resources.dll
PROGRAMFILES = \
$(NTP_ANALYZER_MONITOR_CLI_EXE_MDB) \
$(NTP_ANALYZER_MONITOR_CLIENT_DLL) \
$(NTP_ANALYZER_MONITOR_CLIENT_DLL_MDB) \
$(NTP_COMMON_DLL) \
$(NTP_COMMON_DLL_MDB)
BINARIES = $(NTPAC)
RESGEN=resgen2
all: $(ASSEMBLY) $(PROGRAMFILES) $(BINARIES)
FILES = ../Shared/AssemblyInfo.cs Program.cs
DATA_FILES =
RESOURCES =
EXTRAS =
REFERENCES = System
DLL_REFERENCES =
CLEANFILES = $(PROGRAMFILES) $(BINARIES)
include $(top_srcdir)/Makefile.include
NTP_ANALYZER_MONITOR_CLIENT_DLL = $(BUILD_DIR)/Ntp.Analyzer.Monitor.Client.dll
NTP_COMMON_DLL = $(BUILD_DIR)/Ntp.Common.dll
NTPAC = $(BUILD_DIR)/Ntp.Analyzer.Monitor.Cli.exe
$(eval $(call emit-deploy-wrapper,NTPAC))
$(eval $(call emit_resgen_targets))
$(build_xamlg_list): %.xaml.g.cs: %.xaml
xamlg '$<'
$(ASSEMBLY_MDB): $(ASSEMBLY)
$(ASSEMBLY): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list) $(build_satellite_assembly_list)
mkdir -p $(shell dirname $(ASSEMBLY))
$(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_resources_embed) $(build_references_ref)