aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 32b40bb..d5d620d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -146,6 +146,13 @@ openvpn_SOURCES = \
win32.h win32.c \
cryptoapi.h cryptoapi.c
+if WIN32
+openvpn_SOURCES += openvpn-res.rc
+
+openvpn_LDADD = openvpn-res.o
+endif
+
+
nodist_openvpn_SOURCES = configure.h
options.$(OBJEXT): configure.h
@@ -161,6 +168,11 @@ dist_noinst_DATA += openvpn.8
nodist_html_DATA = openvpn.8.html
openvpn.8.html: $(srcdir)/openvpn.8
$(MAN2HTML) < $(srcdir)/openvpn.8 > openvpn.8.html
+
+comma = ,
+
+%.o: %.rc
+ $(WINDRES) -D _VERSION_=$(subst .,$(comma),$(VERSION)),0 -i $< -o $@
else
dist_man_MANS = openvpn.8
endif