[svn:parrot] r36979 - trunk/examples/embed
NotFound at svn.parrot.org
NotFound at svn.parrot.org
Tue Feb 24 20:23:36 UTC 2009
Author: NotFound
Date: Tue Feb 24 20:23:35 2009
New Revision: 36979
URL: https://trac.parrot.org/parrot/changeset/36979
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:17:55 2009 (r36978)
+++ trunk/examples/embed/Makefile Tue Feb 24 20:23:35 2009 (r36979)
@@ -11,18 +11,20 @@
CCFLAGS = `parrot_config ccflags`
LD = `parrot_config ld`
LDFLAGS = `parrot_config libparrot_ldflags`
+O = `parrot_config o`
+EXE = `parrot_config exe`
all: lorito
#-----------------------------------------------------------------------
-lorito.o: lorito.c
+lorito$(O): lorito.c
$(CC) $(CCFLAGS) -c -I ~/parrot/include lorito.c
-lorito: lorito.o
- $(LD) -o lorito lorito.o $(LDFLAGS)
+lorito: lorito$(O)
+ $(LD) -o lorito$(EXE) lorito$(O) $(LDFLAGS)
#-----------------------------------------------------------------------
clean:
- rm -f lorito lorito.o
+ rm -f lorito$(EXE) lorito$(O)
More information about the parrot-commits
mailing list