Makefile.am 2.05 KB
Newer Older
1
# set the include path for X, qt and KDE
2
INCLUDES = -I$(srcdir)/.. -I$(srcdir)/../splash -I$(srcdir)/../goo -I$(srcdir)/../xpdf $(all_includes) $(FREETYPE_CFLAGS)
3
4

# these are the headers for your project
Albert Astals Cid's avatar
Albert Astals Cid committed
5
noinst_HEADERS = kpdf_shell.h kpdf_part.h kpdf_pagewidget.h QOutputDevPixmap.h QOutputDev.h
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
kpdf_COMPILE_FIRST = part.h
31

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

# 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
42
kde_module_LTLIBRARIES = libkpdfpart.la
43
44

# the Part's source, library search path, and link libraries
Andrew Coles's avatar
   
Andrew Coles committed
45
libkpdfpart_la_SOURCES = QOutputDev.cpp QOutputDevPixmap.cpp QOutputDevKPrinter.cpp kpdf_part.cpp kpdf_pagewidget.cc part.cpp thumbnail.cpp thumbnaillist.cpp kpdf_error.cpp xpdf_errors.cpp
Chris Cheney's avatar
Chris Cheney committed
46
libkpdfpart_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries)
47
libkpdfpart_la_LIBADD  = ../xpdf/libxpdf.la $(LIB_KPARTS) $(LIB_KFILE) $(LIB_KDEPRINT) $(LIB_KUTILS) -lm
48
49
50
51
52
53
54
55

# this is where the desktop file will go 
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
56