[svn:parrot] r36980 - trunk/examples/embed

NotFound at svn.parrot.org NotFound at svn.parrot.org
Tue Feb 24 21:03:09 UTC 2009


Author: NotFound
Date: Tue Feb 24 21:03:08 2009
New Revision: 36980
URL: https://trac.parrot.org/parrot/changeset/36980

Log:
[examples] make embed Makefile more portable

Modified:
   trunk/examples/embed/Makefile

Modified: trunk/examples/embed/Makefile
==============================================================================
--- trunk/examples/embed/Makefile	Tue Feb 24 20:23:35 2009	(r36979)
+++ trunk/examples/embed/Makefile	Tue Feb 24 21:03:08 2009	(r36980)
@@ -7,22 +7,27 @@
 # 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.
+
 CC = `parrot_config cc`
 CCFLAGS = `parrot_config ccflags`
 LD = `parrot_config ld`
+LD_OUT = `parrot_config ld_out`
 LDFLAGS = `parrot_config libparrot_ldflags`
 O = `parrot_config o`
 EXE = `parrot_config exe`
+INCLUDEDIR = `parrot_config prefix`/include
 
 all: lorito
 
 #-----------------------------------------------------------------------
 
 lorito$(O): lorito.c
-	$(CC) $(CCFLAGS) -c -I ~/parrot/include lorito.c
+	$(CC) $(CCFLAGS) -c -I $(INCLUDEDIR) lorito.c
 
 lorito: lorito$(O)
-	$(LD) -o lorito$(EXE) lorito$(O) $(LDFLAGS)
+	$(LD) $(LD_OUT)lorito$(EXE) lorito$(O) $(LDFLAGS)
 
 #-----------------------------------------------------------------------
 


More information about the parrot-commits mailing list