From: <tum...@li...> - 2011-08-26 08:33:44
|
Revision: 960 http://tum-ros-pkg.svn.sourceforge.net/tum-ros-pkg/?rev=960&view=rev Author: moesenle Date: 2011-08-26 08:33:38 +0000 (Fri, 26 Aug 2011) Log Message: ----------- Author: Ingo Kresse <kr...@in...> Date: Fri Aug 26 10:29:14 2011 +0200 Another EtherCAT Master library This pacakge checks out the IgH EtherCAT Master library and compiles the user space library only. Compiling the kernel modules is a rather manual thing... git-commit Added Paths: ----------- 3rdparty/igh_eml/ 3rdparty/igh_eml/.gitignore 3rdparty/igh_eml/Makefile 3rdparty/igh_eml/manifest.xml Added: 3rdparty/igh_eml/.gitignore =================================================================== --- 3rdparty/igh_eml/.gitignore (rev 0) +++ 3rdparty/igh_eml/.gitignore 2011-08-26 08:33:38 UTC (rev 960) @@ -0,0 +1,5 @@ +downloaded +include/ +installed +lib/ +rospack_nosubdirs Added: 3rdparty/igh_eml/Makefile =================================================================== --- 3rdparty/igh_eml/Makefile (rev 0) +++ 3rdparty/igh_eml/Makefile 2011-08-26 08:33:38 UTC (rev 960) @@ -0,0 +1,37 @@ + +SOURCE_DIR=build/igh_eml + +all: installed + +downloaded: Makefile + rm -rf build + mkdir -p build + hg clone http://etherlabmaster.hg.sourceforge.net:8000/hgroot/etherlabmaster/etherlabmaster $(SOURCE_DIR) + #hg clone $(HOME)/work/base/ethercat-default $(SOURCE_DIR) + cd $(SOURCE_DIR); hg checkout -r e9f722488fcd + touch $(SOURCE_DIR)/config.h + touch rospack_nosubdirs + touch downloaded + +installed: downloaded + mkdir -p include lib + make libethercat + ln -sf ../$(SOURCE_DIR)/include include/igh_eml + + touch installed + +clean: + rm -rf build + rm -f downloaded rospack_nosubdirs installed + + +# direct compile rules. We only need the library, so we can get rid of the kernel-header dependency + +LIB_OBJ=$(patsubst %.c,%.o,$(wildcard $(SOURCE_DIR)/lib/*.c)) + +libethercat: $(LIB_OBJ) + echo $(LIB_OBJ) + gcc -shared -Wl,-soname -Wl,libethercat.so -o lib/libethercat.so $(LIB_OBJ) + +.c.o: + gcc -I $(SOURCE_DIR) -I $(SOURCE_DIR)/lib -fPIC -o $@ -c $< Property changes on: 3rdparty/igh_eml/Makefile ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:eol-style + native Added: 3rdparty/igh_eml/manifest.xml =================================================================== --- 3rdparty/igh_eml/manifest.xml (rev 0) +++ 3rdparty/igh_eml/manifest.xml 2011-08-26 08:33:38 UTC (rev 960) @@ -0,0 +1,13 @@ +<package> + <description brief="The IgH EtherCAT master library"> +This package compiles the user space library only, so no need to worry about +kernel headers. + </description> + <author>Ingo Kresse</author> + <license>GPL,LGPL</license> + <review status="unreviewed" notes=""/> + + <export> + <cpp cflags="-I${prefix}/include" lflags="-Wl,-rpath,${prefix}/lib -L${prefix}/lib -lethercat"/> + </export> +</package> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |