Revision: 6459
          http://playerstage.svn.sourceforge.net/playerstage/?rev=6459&view=rev
Author:   gbiggs
Date:     2008-05-30 01:10:33 -0700 (Fri, 30 May 2008)

Log Message:
-----------
Re-added example Makefiles

Added Paths:
-----------
    code/player/trunk/examples/plugins/exampledriver/Makefile.example
    code/player/trunk/examples/plugins/exampledriver/Makefile.libtool
    code/player/trunk/examples/plugins/exampledriver/Makefile.osx.example
    code/player/trunk/examples/plugins/exampleinterface/Makefile.example
    code/player/trunk/examples/plugins/multidriver/Makefile.example
    code/player/trunk/examples/plugins/multidriver/Makefile.libtool
    code/player/trunk/examples/plugins/multidriver/Makefile.osx.example

Added: code/player/trunk/examples/plugins/exampledriver/Makefile.example
===================================================================
--- code/player/trunk/examples/plugins/exampledriver/Makefile.example           
                (rev 0)
+++ code/player/trunk/examples/plugins/exampledriver/Makefile.example   
2008-05-30 08:10:33 UTC (rev 6459)
@@ -0,0 +1,13 @@
+# Desc: Example plugin makefile
+# CVS: $Id$
+
+all: libexampledriver.so
+
+%.o: %.cc
+       $(CXX) -Wall -fpic -g3 `pkg-config --cflags playercore` -c $<
+
+libexampledriver.so: exampledriver.o
+       $(CXX) -shared -nostartfiles -o $@ $^
+
+clean:
+       rm -f *.o *.so

Added: code/player/trunk/examples/plugins/exampledriver/Makefile.libtool
===================================================================
--- code/player/trunk/examples/plugins/exampledriver/Makefile.libtool           
                (rev 0)
+++ code/player/trunk/examples/plugins/exampledriver/Makefile.libtool   
2008-05-30 08:10:33 UTC (rev 6459)
@@ -0,0 +1,20 @@
+#
+# An example of how to build a Player plugin with libtool
+#
+
+CXX = g++
+CXXLD = g++
+LIBTOOL = libtool
+PLAYER_CFLAGS = `pkg-config --cflags playercore`
+INSTALL_DIR = /tmp
+
+all: libexampledriver.la
+
+libexampledriver.la: exampledriver.lo
+       $(LIBTOOL) --mode=link $(CXXLD) -rpath $(INSTALL_DIR) -module 
-export-dynamic -version-info 0:0:0 $^ -o $@
+
+%.lo: %.cc
+       $(LIBTOOL) --mode=compile $(CXX) -c $(PLAYER_CFLAGS) $<
+
+clean:
+       rm -rf *.o *.lo *.la .libs  

Added: code/player/trunk/examples/plugins/exampledriver/Makefile.osx.example
===================================================================
--- code/player/trunk/examples/plugins/exampledriver/Makefile.osx.example       
                        (rev 0)
+++ code/player/trunk/examples/plugins/exampledriver/Makefile.osx.example       
2008-05-30 08:10:33 UTC (rev 6459)
@@ -0,0 +1,13 @@
+# Desc: Example plugin makefile
+# CVS: $Id$
+
+all: libexampledriver.dylib
+
+%.o: %.cc
+       $(CXX) `pkg-config --cflags playercore` -Wall -g3 -dynamiclib -c $<
+
+libexampledriver.dylib: exampledriver.o
+       $(CXX) -bundle -flat_namespace -undefined suppress -o $@ $^
+
+clean:
+       rm -f *.o *.dylib

Added: code/player/trunk/examples/plugins/exampleinterface/Makefile.example
===================================================================
--- code/player/trunk/examples/plugins/exampleinterface/Makefile.example        
                        (rev 0)
+++ code/player/trunk/examples/plugins/exampleinterface/Makefile.example        
2008-05-30 08:10:33 UTC (rev 6459)
@@ -0,0 +1,30 @@
+CFLAGS=`pkg-config --cflags playercore playerc` -Wall -fpic
+CXXFLAGS=`pkg-config --cflags playercore` -Wall -fpic
+
+
+BUILT_SOURCES = example_interface.h example_functiontable.c example_xdr.c 
example_xdr.h
+all: $(BUILT_SOURCES) libeginterf.so libeginterfdriver.so example_client
+
+example_interface.h: 128_example.def
+       playerinterfacegen.py --plugin $< > $@
+       
+example_functiontable.c: 128_example.def
+       playerinterfacegen.py --plugin --functiontable $< > $@
+
+example_xdr.c: example_interface.h 
+       playerxdrgen.py example_interface.h example_xdr.c example_xdr.h
+
+example_xdr.h: example_interface.h
+       playerxdrgen.py example_interface.h example_xdr.c example_xdr.h
+
+libeginterf.so: eginterf_client.o example_functiontable.o example_xdr.o
+       $(CC) -shared -nostartfiles -o $@ $^
+
+libeginterfdriver.so: eginterf_driver.o
+       $(CXX) -shared -nostartfiles -o $@ $^
+
+example_client: example_client.o
+       $(CC) $< -L. -leginterf `pkg-config --libs playercore playerc`
+
+clean:
+       rm -f *.o *.so example_client $(BUILT_SOURCES)

Added: code/player/trunk/examples/plugins/multidriver/Makefile.example
===================================================================
--- code/player/trunk/examples/plugins/multidriver/Makefile.example             
                (rev 0)
+++ code/player/trunk/examples/plugins/multidriver/Makefile.example     
2008-05-30 08:10:33 UTC (rev 6459)
@@ -0,0 +1,13 @@
+# Desc: Example plugin makefile
+# CVS: $Id$
+
+all: libmultidriver.so
+
+%.o: %.cc
+       $(CXX) -Wall -fpic -g3 `pkg-config --cflags playercore` -c $<
+
+libmultidriver.so: multidriver.o
+       $(CXX) -shared -nostartfiles -o $@ $^
+
+clean:
+       rm -f *.o *.so

Added: code/player/trunk/examples/plugins/multidriver/Makefile.libtool
===================================================================
--- code/player/trunk/examples/plugins/multidriver/Makefile.libtool             
                (rev 0)
+++ code/player/trunk/examples/plugins/multidriver/Makefile.libtool     
2008-05-30 08:10:33 UTC (rev 6459)
@@ -0,0 +1,20 @@
+#
+# An example of how to build a Player plugin with libtool
+#
+
+CXX = g++
+CXXLD = g++
+LIBTOOL = libtool
+PLAYER_CFLAGS = `pkg-config --cflags playercore`
+INSTALL_DIR = /tmp
+
+all: libmultidriver.la
+
+libmultidriver.la: multidriver.lo
+       $(LIBTOOL) --mode=link $(CXXLD) -rpath $(INSTALL_DIR) -module 
-export-dynamic -version-info 0:0:0 $< -o $@
+
+%.lo: %.cc
+       $(LIBTOOL) --mode=compile $(CXX) -c $(PLAYER_CFLAGS) $^
+
+clean:
+       rm -rf *.o *.lo *.la .libs  

Added: code/player/trunk/examples/plugins/multidriver/Makefile.osx.example
===================================================================
--- code/player/trunk/examples/plugins/multidriver/Makefile.osx.example         
                (rev 0)
+++ code/player/trunk/examples/plugins/multidriver/Makefile.osx.example 
2008-05-30 08:10:33 UTC (rev 6459)
@@ -0,0 +1,13 @@
+# Desc: Example plugin makefile
+# CVS: $Id$
+
+all: libexampledriver.dylib
+
+%.o: %.cc
+       $(CXX) `pkg-config --cflags playercore` -Wall -g3 -dynamiclib -c $<
+
+libexampledriver.dylib: exampledriver.o
+       $(CXX) -bundle -flat_namespace -undefined suppress -o $@ $^
+
+clean:
+       rm -f *.o *.dylib


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to