Makefile.am 2.03 KB
Newer Older
1
# set the include path for X, qt and KDE
Enrico Ros's avatar
Enrico Ros committed
2
3
4
5
INCLUDES = -I$(srcdir)/.. -I$(srcdir)/../splash -I$(srcdir)/../goo -I$(srcdir)/../xpdf -I$(srcdir)/conf $(all_includes) $(FREETYPE_CFLAGS)

# compile sources in subdirectories
SUBDIRS = conf .
6
7
8
9

# let automoc handle all of the meta source files (moc)
METASOURCES = AUTO

Albert Astals Cid's avatar
Albert Astals Cid committed
10
messages: rc.cpp
11
12
	$(XGETTEXT) *.cpp -o $(podir)/kpdf.pot

13
14
15
# TODO: fix the code!
KDE_OPTIONS = nofinal

16
17
18
19
20
21
22
23
24
25
26
KDE_ICON = kpdf

# 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 = kpdf

# the application source, library search path, and link libraries
27
kpdf_SOURCES = main.cpp kpdf_shell.cpp
28
29
kpdf_LDFLAGS = $(KDE_RPATH) $(all_libraries)
kpdf_LDADD   = $(LIB_KPARTS)
30

31
EXTRA_DIST = kpdf.desktop
32
xdg_apps_DATA = kpdf.desktop
33
34
35
36
37
38
39
40

# this is where the shell's XML-GUI resource file goes
shellrcdir   = $(kde_datadir)/kpdf
shellrc_DATA = kpdf_shell.rc

#########################################################################
# KPART SECTION
#########################################################################
Chris Cheney's avatar
Chris Cheney committed
41
kde_module_LTLIBRARIES = libkpdfpart.la
42
43

# the Part's source, library search path, and link libraries
44
libkpdfpart_la_SOURCES = QOutputDev.cpp QOutputDevKPrinter.cpp kpdf_part.cpp pageview.cpp thumbnaillist.cpp kpdf_error.cpp xpdf_errors.cpp thumbnailgenerator.cpp document.cpp page.cpp searchwidget.cpp toc.cpp kpdf_dcop.skel pageviewutils.cpp
Chris Cheney's avatar
Chris Cheney committed
45
libkpdfpart_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries)
Enrico Ros's avatar
Enrico Ros committed
46
libkpdfpart_la_LIBADD  = ../xpdf/libxpdf.la conf/libconf.la $(LIB_KPARTS) $(LIB_KFILE) $(LIB_KDEPRINT) $(LIB_KUTILS) -lm
47

Albert Astals Cid's avatar
Albert Astals Cid committed
48
# this is where the desktop file will go
49
50
51
52
53
54
partdesktopdir   = $(kde_servicesdir)
partdesktop_DATA = kpdf_part.desktop

# this is where the part's XML-GUI resource file goes
partrcdir   = $(kde_datadir)/kpdfpart
partrc_DATA = kpdf_part.rc
55