One project, 2 executables?

frank.schmischke Frank.Schmischke at t-online.de
Wed Jul 17 17:48:17 UTC 2002


Am Mittwoch, 17. Juli 2002 17:10 schrieben Sie:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi!
>
> Is it possible to have a project in kdevelop which builds two executables.
> When I create a subdirecory I can only decide wether it's contenst should
> go into a shared or a static lib.
>
> For my project I need 2 executables, since I want one "real" application,
> which starts the second, which in turn starts an already installed program
> (in this case setiathome). The second program will shutdown seti when the
> first gets killed. This is some kind of workaround, since you can't catch
> SIGKILL, but my program has to react on this.
>
> So: Can I built 2 binaries in one kdevelop project, or do I have to set up
> 2 different projects?
>
> MfG
>
> Sebastian

It's no problem to create  more than one executable in a kdevelop-project. You 
need only to modify Makefile.am in the subdir. 
Using automake 1.5 ff., there is no chance to turn off noinst_LIBRARIES after 
kdevelop part. So you can add after kdevelop's part bin_PROGRAMS with all 
needed informations. 

Look one of my Makefile.am's. It works fine. Every change in sourcetree will 
take an effect in my executable without changes by myself.

Frank


####### kdevelop will overwrite this part!!! (begin)##########
noinst_LIBRARIES = libkgbsedit.a

## INCLUDES were found outside kdevelop specific part

libkgbsedit_a_METASOURCES = AUTO

libkgbsedit_a_SOURCES = serverdialog.cpp busdialog.cpp trafolinedialog.cpp 
previewwidget.cpp newlayoutdialog.cpp kgbsedit_main.cpp kgbsedit.cpp 


EXTRA_DIST = kgbsedit.cpp kgbsedit.h kgbsedit_main.cpp newlayoutdialog.cpp 
newlayoutdialog.h previewwidget.cpp previewwidget.h trafolinedialog.cpp 
trafolinedialog.h busdialog.h busdialog.cpp serverdialog.cpp serverdialog.h 

####### kdevelop will overwrite this part!!! (end)############

INCLUDES= $(all_includes) $(PGSQLINC) $(SSL_INCLUDES) -I..
AM_CPPFLAGS = -DKDE_NO_COMPAT

bin_PROGRAMS = kgbsedit
kgbsedit_SOURCES =
kgbsedit_LDADD   = ./libkgbsedit.a ../libs/kdr/libkdr.la 
../libs/kdrdlg/libkdrdlg.la ../libs/kgbs/libkgbs.la $(LIB_QT) $(LIB_KDECORE) 
$(LIB_KDEUI)  $(LIBSOCKET) $(PGSQLLIBS) $(LIBSSL)
kgbsedit_LDFLAGS = $(all_libraries) $(PGSQLLIB) $(SSL_LDFLAGS) $(KDE_RPATH) 
$(LIB_KDEPRINT)
# kgbsedit_METASOURCES =


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



More information about the KDevelop mailing list