[libmarpa-r2-perl] 07/32: Makefile.win32, to be executed in build dir

Jonas Smedegaard dr at jones.dk
Sat May 17 21:24:12 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag Marpa-R2-2.085_004
in repository libmarpa-r2-perl.

commit 55ea020f28b4c0f4bd1794c1ff076a3b6ec50a9f
Author: Jean-Damien Durand <jeandamiendurand at free.fr>
Date:   Thu Apr 24 15:48:13 2014 +0200

    Makefile.win32, to be executed in build dir
---
 cpan/Makefile.win32 | 44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/cpan/Makefile.win32 b/cpan/Makefile.win32
new file mode 100644
index 0000000..a10b79a
--- /dev/null
+++ b/cpan/Makefile.win32
@@ -0,0 +1,44 @@
+#
+# Build static and dynamic libraries of Marpa, using a config.h generated with Marpa::R2::Build_Me
+#
+CC = cl
+CFLAGS = /c /Gy /DWIN32 /MD
+LD = link
+CP = copy
+CPFLAGS = /Y
+RM = del
+MT = mt
+RM_FLAGS = /Q
+PUSHD = pushd
+POPD = popd
+MARPA_DEF = marpa.def
+MARPA_OBJS = marpa.obj marpa_ami.obj marpa_obs.obj marpa_avl.obj
+MARPA_DLL = libmarpa.dll
+
+LDFLAGS = /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB:"LIBCMTD.LIB" /DLL /DEF:$(MARPA_DEF) /VERSION:%MARPA_VERSION%
+
+.c.obj:
+        $(CC) $(CFLAGS) /Fo$@ $<
+
+#
+# Trick to be able to run nmake in libmarpa_dist but build in libmarpa_build..
+#
+
+all: $(MARPA_DLL)
+
+$(MARPA_DLL): config.h $(MARPA_OBJS)
+        (@SET /p MARPA_VERSION= < VERSION) && $(LD) $(LDFLAGS) /OUT:$@ $(MARPA_OBJS)
+        if exist $(MARPA_DLL).manifest mt -nologo -manifest $(MARPA_DLL).manifest -outputresource:$(MARPA_DLL);2
+
+config.h:
+        perl do_config_h.pl --cc="$(CC)" --ccflags="$(CFLAGS)" --obj_ext=".obj"
+
+clean:
+        $(RM) $(RM_FLAGS) *.obj
+        $(RM) $(RM_FLAGS) *.exp
+
+distclean: clean
+        $(RM) $(RM_FLAGS) *.dll
+        $(RM) $(RM_FLAGS) *.lib
+
+mrproper: distclean

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmarpa-r2-perl.git



More information about the Pkg-perl-cvs-commits mailing list