Dear all,
It was hard for me to find a tutorial for GiftWrap. So, I am gonna add some additional information regarding a C program in the CDT environment in Eclipse. Say I am gonna create the package "linda"...
Example: linda package
Title: The Linda engine is a threadpool for TCP/IP
Description: The Linda engine is a threadpool for TCP/IP powered by an abbey. Part of the CHAP software platform.
Section: Libraries
Add Makefile to Eclipse
Regretfully Eclipse has such a Makefile management system that it is almost impossible to get it running.
You have to add your own custom Makefile in the root of the project directory. Make sure you are in a real directory, not one soft linked from somewhere else! (GiftWrap can't cope with that yet.) The following is the content of the Makefile I created. Like you see it just evokes the makefile in the Debug directory. And it adds an install section. Add echo statements over there if you want to communicate during the installation process with the person installing your stuff.
Code:
all:
(cd Debug; make $@)
clean:
(cd Debug; make $@)
install:
sudo cp Debug/liblinda.so /usr/lib
sudo mkdir -p /usr/include/linda
sudo cp inc/*.h /usr/include/linda
It is very convenient to run giftwrap from the command line. For instance, on deleting a previously made package, it needs confirmation to delete the .svn directories from the command line (the developer didn't use the flag -rf for removal). The symlink error is communicated by the cryptic message: "can't cd to /home/anne/.giftwrap/linda/linda-0.0.20091120". (When I did ls -latr, I saw that it was referring to the wrong directory.)
Bookmarks