summaryrefslogtreecommitdiffstats
path: root/src/libgnurx-1-additional-makefile-rules.patch
blob: 1a78809f730560b5060fbad4debf667e7e3c62ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
This file is part of MXE.
See index.html for further information.

diff -Nur mingw-libgnurx-2.5.1/Makefile.mxe mingw-libgnurx-2.5.1-mxe/Makefile.mxe
--- mingw-libgnurx-2.5.1/Makefile.mxe	1970-01-01 01:00:00.000000000 +0100
+++ mingw-libgnurx-2.5.1-mxe/Makefile.mxe	2011-10-23 16:57:18.579312050 +0200
@@ -0,0 +1,20 @@
+include Makefile
+
+libgnurx.a: $(OBJECTS)
+	rm -f $@
+	$(TARGET)-ar rcu $@ $(OBJECTS)
+	$(TARGET)-ranlib $@
+
+install-common:
+	mkdir -p ${includedir} ${libdir}
+	cp -p ${srcdir}/regex.h ${includedir}
+
+install-static: install-common libgnurx.a
+	cp -p ${srcdir}/libgnurx.a ${libdir}
+	ln -sf ${libdir}/libgnurx.a ${libdir}/libregex.a
+
+install-shared: install-common libgnurx-$(DLLVERSION).dll libgnurx.dll.a
+	cp -p ${srcdir}/libgnurx.dll.a ${libdir}
+	cp -p ${srcdir}/libgnurx-$(DLLVERSION).dll ${bindir}
+	ln -sf ${libdir}/libgnurx.dll.a ${libdir}/libregex.dll.a
+	ln -sf ${bindir}/libgnurx-$(DLLVERSION).dll ${bindir}/libregex-$(DLLVERSION).dll