You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
143 lines
5.4 KiB
143 lines
5.4 KiB
# detect target architecture
|
|
!IF "$(CPU)" == ""
|
|
CPU=$(PROCESSOR_ARCHITECTURE)
|
|
!ENDIF
|
|
|
|
!IF "$(CPU)" == "i386" || "$(CPU)" == "x86"
|
|
TARGETDIR = ..\..\..\bin\win32
|
|
ADD_LFLAGS = /MACHINE:X86
|
|
|
|
!ELSEIF "$(CPU)" == "AMD64"
|
|
TARGETDIR = ..\..\..\bin\win64
|
|
ADD_LFLAGS = /MACHINE:X64
|
|
|
|
!ELSE
|
|
!ERROR Unsupported CPU architecture: $(CPU)
|
|
!ENDIF
|
|
|
|
PROJECTNAME = zabbix_agent
|
|
PROJECTDIR = ..\..\..\src\$(PROJECTNAME)
|
|
TARGETNAME = zabbix_agentd
|
|
TARGETEXT = exe
|
|
PROGNAME = $(TARGETDIR)\$(TARGETNAME).$(TARGETEXT)
|
|
|
|
PDBS = $(TARGETDIR)\$(TARGETNAME).pdb $(TARGETNAME).$(TARGETEXT).pdb
|
|
|
|
ADD_CFLAGS = $(ADD_CFLAGS) /D WITH_AGENT_METRICS /D WITH_COMMON_METRICS \
|
|
/D WITH_SPECIFIC_METRICS /D WITH_HOSTNAME_METRIC /D WITH_SIMPLE_METRICS /D WITH_HTTP_METRICS \
|
|
/Zi /D DEFAULT_CONFIG_FILE="\"C:\\zabbix_agentd.conf\"" \
|
|
/Fd$(TARGETNAME).$(TARGETEXT).pdb
|
|
|
|
ADD_LFLAGS = $(ADD_LFLAGS) /DEBUG /OPT:REF /DELAYLOAD:wevtapi.dll
|
|
|
|
ADD_RFLAGS = /d "ZABBIX_AGENT"
|
|
|
|
!INCLUDE Makefile_common.inc
|
|
|
|
OBJS = \
|
|
..\..\..\src\libs\zbxalgo\algodefs.o \
|
|
..\..\..\src\libs\zbxalgo\vector.o \
|
|
..\..\..\src\libs\zbxalgo\hashset.o \
|
|
..\..\..\src\libs\zbxcrypto\endian.o \
|
|
..\..\..\src\libs\zbxcommon\setproctitle.o \
|
|
..\..\..\src\libs\zbxcommon\common_log.o \
|
|
..\..\..\src\libs\zbxip\ip.o \
|
|
..\..\..\src\libs\zbxip\iprange.o \
|
|
..\..\..\src\libs\zbxcommon\misc.o \
|
|
..\..\..\src\libs\zbxnum\num.o \
|
|
..\..\..\src\libs\zbxstr\str.o \
|
|
..\..\..\src\libs\zbxcommon\common_str.o \
|
|
..\..\..\src\libs\zbxfile\file.o \
|
|
..\..\..\src\libs\zbxfile\win32\win32_file.o \
|
|
..\..\..\src\libs\zbxparam\param.o \
|
|
..\..\..\src\libs\zbxtime\time.o \
|
|
..\..\..\src\libs\zbxexpr\expr.o \
|
|
..\..\..\src\libs\zbxexpr\function.o \
|
|
..\..\..\src\libs\zbxexpr\host.o \
|
|
..\..\..\src\libs\zbxexpr\macro.o \
|
|
..\..\..\src\libs\zbxexpr\token.o \
|
|
..\..\..\src\libs\zbxcommon\components_strings_representations.o \
|
|
..\..\..\src\libs\zbxcommon\libc_wrappers.o \
|
|
..\..\..\src\libs\zbxcommshigh\commshigh.o \
|
|
..\..\..\src\libs\zbxcomms\comms.o \
|
|
..\..\..\src\libs\zbxcomms\telnet.o \
|
|
..\..\..\src\libs\zbxcompress\compress.o \
|
|
..\..\..\src\libs\zbxconf\cfg.o \
|
|
..\..\..\src\libs\zbxcrypto\base64.o \
|
|
..\..\..\src\libs\zbxgetopt\getopt.o \
|
|
..\..\..\src\libs\zbxhash\md5.o \
|
|
..\..\..\src\libs\zbxhash\sha256crypt.o \
|
|
..\..\..\src\libs\zbxcrypto\crypto.o \
|
|
..\..\..\src\libs\zbxjson\json.o \
|
|
..\..\..\src\libs\zbxjson\json_parser.o \
|
|
..\..\..\src\libs\zbxjson\jsonpath.o \
|
|
..\..\..\src\libs\zbxjson\jsonobj.o \
|
|
..\..\..\src\libs\zbxlog\log.o \
|
|
..\..\..\src\libs\zbxmutexs\mutexs.o \
|
|
..\..\..\src\libs\zbxthreads\threads.o \
|
|
..\..\..\src\libs\zbxexec\execute.o \
|
|
..\..\..\src\libs\zbxhash\zbxhash.o \
|
|
..\..\..\src\libs\zbxhttp\http.o \
|
|
..\..\..\src\libs\zbxhttp\punycode.o \
|
|
..\..\..\src\libs\zbxhttp\urlencode.o \
|
|
..\..\..\src\libs\zbxsysinfo\agent\agent.o \
|
|
..\..\..\src\libs\zbxsysinfo\agent\modbus.o \
|
|
..\..\..\src\libs\zbxsysinfo\common\zbxsysinfo_common.o \
|
|
..\..\..\src\libs\zbxsysinfo\common\cpu.o \
|
|
..\..\..\src\libs\zbxsysinfo\common\cpustat.o \
|
|
..\..\..\src\libs\zbxsysinfo\common\dir.o \
|
|
..\..\..\src\libs\zbxsysinfo\common\vfs_file.o \
|
|
..\..\..\src\libs\zbxsysinfo\common\http.o \
|
|
..\..\..\src\libs\zbxsysinfo\common\http_metrics.o \
|
|
..\..\..\src\libs\zbxsysinfo\common\net.o \
|
|
..\..\..\src\libs\zbxsysinfo\common\dns.o \
|
|
..\..\..\src\libs\zbxsysinfo\common\system.o \
|
|
..\..\..\src\libs\zbxsysinfo\common\zabbix_stats.o \
|
|
..\..\..\src\libs\zbxsysinfo\common\stats.o \
|
|
..\..\..\src\libs\zbxsysinfo\simple\ntp.o \
|
|
..\..\..\src\libs\zbxsysinfo\simple\simple.o \
|
|
..\..\..\src\libs\zbxsysinfo\win32\perfstat\perfstat.o \
|
|
..\..\..\src\libs\zbxsysinfo\win32\cpu.o \
|
|
..\..\..\src\libs\zbxsysinfo\win32\diskio.o \
|
|
..\..\..\src\libs\zbxsysinfo\win32\diskspace.o \
|
|
..\..\..\src\libs\zbxsysinfo\win32\memory.o \
|
|
..\..\..\src\libs\zbxsysinfo\win32\net.o \
|
|
..\..\..\src\libs\zbxsysinfo\win32\pdhmon.o \
|
|
..\..\..\src\libs\zbxsysinfo\win32\registry.o \
|
|
..\..\..\src\libs\zbxsysinfo\win32\proc.o \
|
|
..\..\..\src\libs\zbxsysinfo\win32\services.o \
|
|
..\..\..\src\libs\zbxsysinfo\win32\swap.o \
|
|
..\..\..\src\libs\zbxsysinfo\win32\uptime.o \
|
|
..\..\..\src\libs\zbxsysinfo\win32\win32.o \
|
|
..\..\..\src\libs\zbxsysinfo\win32\wmi.o \
|
|
..\..\..\src\libs\zbxsysinfo\sysinfo.o \
|
|
..\..\..\src\libs\zbxsysinfo\win32\software.o \
|
|
..\..\..\src\libs\zbxsysinfo\win32\system.o \
|
|
..\..\..\src\libs\zbxsysinfo\win32\hostname.o \
|
|
..\..\..\src\libs\zbxsysinfo\alias\alias.o \
|
|
..\..\..\src\libs\zbxvariant\variant.o \
|
|
..\..\..\src\libs\zbxversion\version.o \
|
|
..\..\..\src\libs\zbxwin32\perfmon.o \
|
|
..\..\..\src\libs\zbxwinservice\service.o \
|
|
..\..\..\src\zabbix_agent\active_checks\active_checks.o \
|
|
..\..\..\src\zabbix_agent\eventlog\eventlog.o \
|
|
..\..\..\src\zabbix_agent\eventlog\process_eventslog.o \
|
|
..\..\..\src\zabbix_agent\eventlog\process_eventslog6.o \
|
|
..\..\..\src\zabbix_agent\listener\listener.o \
|
|
..\..\..\src\zabbix_agent\logfiles\persistent_state.o \
|
|
..\..\..\src\zabbix_agent\logfiles\logfiles.o \
|
|
..\..\..\src\zabbix_agent\zabbix_agentd.o \
|
|
..\..\..\src\zabbix_agent\agent_conf\agent_conf.o \
|
|
..\..\..\src\libs\zbxregexp\zbxregexp.o \
|
|
..\..\..\src\libs\zbxxml\xml.o \
|
|
..\..\..\src\libs\zbxwin32\fatal.o \
|
|
..\..\..\src\libs\zbxwin32\disk.o \
|
|
..\..\..\src\libs\zbxwin32\symbols.o
|
|
|
|
LIBS = ws2_32.lib psapi.lib pdh.lib Wldap32.lib advapi32.lib uuid.lib Iphlpapi.lib delayimp.lib wevtapi.lib shlwapi.lib $(LIBS)
|
|
|
|
!INCLUDE Makefile_pcre.inc
|
|
!INCLUDE Makefile_tls.inc
|
|
!INCLUDE Makefile_modbus.inc
|
|
!INCLUDE Makefile_targets.inc
|