PostgreSQL loadable plugin
Source
5
5
6
6
ifeq ($(OS),Windows_NT)
7
7
SHELL := cmd
8
8
TOPDIR := $(subst /,\,$(CURDIR))
9
9
PACKAGE:=$(PACKAGE).exe
10
10
WINDRES = windres.exe
11
11
ifneq ("$(shell findstr ZABBIX_RC_NUM $(TOPDIR)\windres\resource.h)","")
12
12
ifeq ("$(WINDRES_FLAGS)","")
13
13
WINDRES_FLAGS := \
14
14
-D ZABBIX_LICENSE_YEARS='\"$(word 3,$(shell findstr Copyright $(TOPDIR)\main.go | findstr 2001-20))\"' \
15
-
-D ZABBIX_VERSION_MAJOR=$(lastword $(shell findstr const $(TOPDIR)\main.go | findstr VERSION_MAJOR)) \
16
-
-D ZABBIX_VERSION_MINOR=$(lastword $(shell findstr const $(TOPDIR)\main.go | findstr VERSION_MINOR)) \
17
-
-D ZABBIX_VERSION_PATCH=$(lastword $(shell findstr const $(TOPDIR)\main.go | findstr VERSION_PATCH)) \
18
-
-D ZABBIX_VERSION_RC='\"$(lastword $(shell findstr const $(TOPDIR)\main.go | findstr VERSION_RC))\"' \
15
+
-D ZABBIX_VERSION_MAJOR=$(lastword $(shell findstr VERSION_MAJOR $(TOPDIR)\main.go | findstr =)) \
16
+
-D ZABBIX_VERSION_MINOR=$(lastword $(shell findstr VERSION_MINOR $(TOPDIR)\main.go | findstr =)) \
17
+
-D ZABBIX_VERSION_PATCH=$(lastword $(shell findstr VERSION_PATCH $(TOPDIR)\main.go | findstr =)) \
18
+
-D ZABBIX_VERSION_RC='\"$(lastword $(shell findstr VERSION_RC $(TOPDIR)\main.go | findstr =))\"' \
19
19
-D ZABBIX_VERSION_RC_NUM=1000
20
20
endif
21
21
endif
22
22
23
23
RFLAGS := $(RFLAGS) --input-format=rc -O coff
24
24
25
25
ifeq ("$(ARCH)", "")
26
26
ARCH := $(PROCESSOR_ARCHITECTURE)
27
27
endif
28
28
endif