Bug#15737: Writing libraries

Daniele Venzano venza at iol.it
Sun Nov 19 22:21:25 UTC 2000

Package: kdevelop
Version: 1.2
Severity: normal

Bugreport ID : 23:10,19.11.00

Originator	: Daniele Venzano
E-Mail		: venza at iol.it

Subject : Writing libraries

Error Class	: how do I ...
Error Location	: configuration
Priority	: medium
Bug Description ---------------------------

I'm writing a library, but I can't configure Kdevelop to make it:
I can't compile the single files and then generate a shared library.
Below there is my hand made makefile that I'm currently using, how 
can I get something simillar out of kdevelop ?

--Makefile start
CFLAGS=-m486 -O -g -Wall

all:libFB.so.0.0 test

libFB.so.0.0:FBdraw.o FButil.o
        gcc -shared -Wl,-soname,libFB.so.0 -o libFB.so.0.0 FButil.o FBdraw.o
        rm libFB.so.0
        rm libFB.so
        ln -s libFB.so.0.0 libFB.so.0
        ln -s libFB.so.0 libFB.so
        LD_LIBRARY_PATH=/home/venza/progs/fb_lib; export LD_LIBRARY_PATH

FBdraw.o: FBdraw.c FBlib.h FBpriv.h
        gcc -o FBdraw.o -c -fPIC $(CFLAGS) -I$(LINUX_SRC_INCLUDE) FBdraw.c

FButil.o: FButil.c FBlib.h FBpriv.h
        gcc -o FButil.o -c -fPIC $(CFLAGS) -I$(LINUX_SRC_INCLUDE) FButil.c

        rm *.o

        rm *~
        rm *.bak

test: test.o libFB.so.0.0
        gcc -o test test.o -L. -lFB

test.o: test.c FBlib.h
        gcc $(CFLAGS) -o test.o -c test.c
--Makefile end

How to repeat the error -------------------

Bugfix or Workaround ----------------------

Let the user give personalized commands for some make targets

System Information ------------------------

KDevelop version	: 1.2
KDE version		: 
QT version		: 
OS/Distribution		: Linux with shared libraries / Debian 2.2
Compiler		: 

misc :

to unsubscribe from this list send an email to kdevelop-devel-request at kdevelop.org with the following body:
unsubscribe »your-email-address«

More information about the KDevelop-devel mailing list