summaryrefslogtreecommitdiffstats
path: root/kapptemplate/kpartapp/app-Makefile.am
blob: fc096f65529e5422a1f4e66893eb77fdd0d306bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
echo "Creating $LOCATION_ROOT/$APP_NAME_LC/Makefile.am...";
cat << EOF > $LOCATION_ROOT/$APP_NAME_LC/Makefile.am
# this has all of the subdirectories that make will recurse into.  if
# there are none, comment this out
#SUBDIRS = .

# set the include path for X, qt and KDE
INCLUDES = \$(all_includes)

# these are the headers for your project
noinst_HEADERS = ${APP_NAME_LC}.h ${APP_NAME_LC}_part.h

# let autotqmoc handle all of the meta source files (tqmoc)
METASOURCES = AUTO

messages: rc.cpp
	\$(XGETTEXT) *.cpp -o \$(podir)/${APP_NAME_LC}.pot

KDE_ICON = ${APP_NAME_LC}

# this Makefile creates both a KPart application and a KPart
#########################################################################
# APPLICATION SECTION
#########################################################################
# this is the program that gets installed.  it's name is used for all
# of the other Makefile.am variables
bin_PROGRAMS = ${APP_NAME_LC}

# the application source, library search path, and link libraries
${APP_NAME_LC}_SOURCES = main.cpp ${APP_NAME_LC}.cpp
${APP_NAME_LC}_LDFLAGS = \$(KDE_RPATH) \$(all_libraries)
${APP_NAME_LC}_LDADD   = \$(LIB_KPARTS)

# this is where the desktop file will go 
xdg_apps_DATA = ${APP_NAME_LC}.desktop

# this is where the shell's XML-GUI resource file goes
shellrcdir   = \$(kde_datadir)/${APP_NAME_LC}
shellrc_DATA = ${APP_NAME_LC}_shell.rc

#########################################################################
# KPART SECTION
#########################################################################
kde_module_LTLIBRARIES = lib${APP_NAME_LC}part.la

# the Part's source, library search path, and link libraries
lib${APP_NAME_LC}part_la_SOURCES = ${APP_NAME_LC}_part.cpp
lib${APP_NAME_LC}part_la_LDFLAGS = -module \$(KDE_PLUGIN) \$(all_libraries)
lib${APP_NAME_LC}part_la_LIBADD  = \$(LIB_KPARTS) \$(LIB_KFILE)

# this is where the desktop file will go 
partdesktopdir   = \$(kde_servicesdir)
partdesktop_DATA = ${APP_NAME_LC}_part.desktop

# this is where the part's XML-GUI resource file goes
partrcdir   = \$(kde_datadir)/${APP_NAME_LC}part
partrc_DATA = ${APP_NAME_LC}_part.rc