[svn:parrot] r36983 - trunk/examples/embed
rurban at svn.parrot.org
rurban at svn.parrot.org
Tue Feb 24 22:17:05 UTC 2009
Author: rurban
Date: Tue Feb 24 22:17:04 2009
New Revision: 36983
URL: https://trac.parrot.org/parrot/changeset/36983
Log:
[examples] msvc fixes for examples/embed
Added:
trunk/examples/embed/Makefile.msvc
Modified:
trunk/examples/embed/Makefile
Modified: trunk/examples/embed/Makefile
==============================================================================
--- trunk/examples/embed/Makefile Tue Feb 24 21:57:42 2009 (r36982)
+++ trunk/examples/embed/Makefile Tue Feb 24 22:17:04 2009 (r36983)
@@ -7,8 +7,9 @@
# export LD_RUN_PATH=/parrot_directory/blib/lib
# make
-# This assumes a posix environment with sh style shell,
-# may need changes with other shells or other make tools.
+# This assumes a posix environment with sh style shell.
+# May need changes with other shells or other make tools.
+# For MSVC use nmake -f Makefile.msvc
CC = `parrot_config cc`
CCFLAGS = `parrot_config ccflags`
@@ -19,7 +20,7 @@
EXE = `parrot_config exe`
INCLUDEDIR = `parrot_config prefix`/include
-all: lorito
+all: lorito$(EXE)
#-----------------------------------------------------------------------
Added: trunk/examples/embed/Makefile.msvc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/examples/embed/Makefile.msvc Tue Feb 24 22:17:04 2009 (r36983)
@@ -0,0 +1,33 @@
+# Copyright (C) 2009, Parrot Foundation.
+## $Id: Makefile 36979 2009-02-24 20:23:35Z NotFound $
+
+# Microsoft Visual C++ Makefile
+# To build this example in a parrot development environment:
+
+# adjust PARROT_PREFIX below
+# nmake -f Makefile.msvc
+
+PARROT_PREFIX = c:\usr\src\perl\parrot\parrot-msvc6
+# c:\parrot
+CC = cl
+CCFLAGS = -nologo -GF -W4 -MD -Zi -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -Zm400
+LD = link -nologo
+INCLUDEDIR = $(PARROT_PREFIX)\include
+LDFLAGS = $(PARROT_PREFIX)\libparrot.lib
+O = .obj
+EXE = .exe
+
+all: lorito$(EXE)
+
+#-----------------------------------------------------------------------
+
+lorito$(O): lorito.c
+ $(CC) $(CCFLAGS) -c -I $(INCLUDEDIR) lorito.c
+
+lorito$(EXE): lorito$(O)
+ $(LD) -out:lorito$(EXE) lorito$(O) $(LDFLAGS)
+
+#-----------------------------------------------------------------------
+
+clean:
+ rm -f lorito$(EXE) lorito$(O)
More information about the parrot-commits
mailing list