1 # set the include path for X, qt and KDE
2 INCLUDES = $(all_includes)
4 # these are the headers for your project
5 noinst_HEADERS = kgraphinterface.h kgraphinterface_part.h graph.h node.h \
6 nodecontent.h edge.h gihandler.h
8 # let automoc handle all of the meta source files (moc)
12 $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
13 $(XGETTEXT) *.cpp -o $(podir)/kgraphinterface.pot
17 # this Makefile creates both a KPart application and a KPart
18 #########################################################################
20 #########################################################################
21 # this is the program that gets installed. it's name is used for all
22 # of the other Makefile.am variables
23 bin_PROGRAMS = kgraphinterface
25 # the application source, library search path, and link libraries
26 kgraphinterface_SOURCES = main.cpp kgraphinterface.cpp graph.cpp node.cpp \
27 nodecontent.cpp edge.cpp gihandler.cpp
28 kgraphinterface_LDFLAGS = $(KDE_RPATH) $(all_libraries)
29 kgraphinterface_LDADD = $(LIB_KPARTS)
31 # this is where the desktop file will go
32 shelldesktopdir = $(kde_appsdir)/Utilities
33 shelldesktop_DATA = kgraphinterface.desktop
35 # this is where the shell's XML-GUI resource file goes
36 shellrcdir = $(kde_datadir)/kgraphinterface
37 shellrc_DATA = kgraphinterface_shell.rc
39 #########################################################################
41 #########################################################################
42 kde_module_LTLIBRARIES = libkgraphinterfacepart.la
44 # the Part's source, library search path, and link libraries
45 libkgraphinterfacepart_la_SOURCES = kgraphinterface_part.cpp
46 libkgraphinterfacepart_la_LDFLAGS = -module -avoid-version -no-undefined $(KDE_PLUGIN) $(all_libraries)
47 libkgraphinterfacepart_la_LIBADD = $(LIB_KPARTS) $(LIB_KFILE) graph.o node.o \
48 nodecontent.o edge.o gihandler.o
50 # this is where the desktop file will go
51 partdesktopdir = $(kde_servicesdir)
52 partdesktop_DATA = kgraphinterface_part.desktop
54 # this is where the part's XML-GUI resource file goes
55 partrcdir = $(kde_datadir)/kgraphinterfacepart
56 partrc_DATA = kgraphinterface_part.rc