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.
mxe/src/libgnurx-1-additional-makef...

27 lines
975 B

This file is part of MXE. See LICENSE.md for licensing 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