summaryrefslogtreecommitdiffstats
path: root/kdvi/Makefile.am
blob: 0f95f1004c4c0d8d64594daee50ee1a277b0906f (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
58
59
60
61
62
63
64
65
66
# set the include path for X, qt and KDE
INCLUDES= -I$(top_srcdir)/kviewshell \
	-I$(top_builddir)/kviewshell \
	$(all_includes) $(LIBFREETYPE_CFLAGS)
# claim, which subdirectories you want to install
SUBDIRS = . pix

bin_PROGRAMS = kdvi

# you can add here more. This one gets installed
kde_module_LTLIBRARIES= kdvipart.la
noinst_PROGRAMS = squeeze

# just to make sure, automake makes them
METASOURCES = AUTO

kdvipart_la_SOURCES = renderedDviPagePixmap.cpp dviPageCache.cpp \
	kdvi_multipage.cpp kdvi_multipage_texthandling.cpp \
	dviRenderer.cpp bigEndianByteReader.cpp infodialog.cpp \
	psheader.c dviRenderer_draw.cpp dviRenderer_prescan.cpp dviRenderer_export.cpp \
	dviFile.cpp fontpool.cpp fontprogress.cpp psgs.cpp \
	fontMap.cpp fontEncoding.cpp fontEncodingPool.cpp \
	special.cpp util.cpp vf.cpp glyph.cpp \
	optionDialogFontsWidget.cpp optionDialogFontsWidget_base.ui \
	optionDialogSpecialWidget.cpp optionDialogSpecialWidget_base.ui \
	TeXFont.cpp TeXFont_PK.cpp TeXFont_PFB.cpp TeXFont_TFM.cpp \
	TeXFontDefinition.cpp dviWidget.cpp dvisourcesplitter.cpp \
	prefs.kcfgc 

kde_kcfg_DATA = kdvi.kcfg

kdvipart_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -module
kdvipart_la_LIBADD = $(LIBFREETYPE_LIBS) -ltdeparts \
			$(top_builddir)/kviewshell/libtdemultipage.la

# Which sources should be compiled for squeeze.
squeeze_SOURCES	= squeeze.c

KDE_OPTIONS = nofinal

kdvi_SOURCES = main.cpp 
kdvi_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor
kdvi_LDADD = ../kviewshell/libifaces.la ../kviewshell/libkviewshell.la -ltdeparts

## this option you can leave out. Just, if you use "make dist", you need it
noinst_HEADERS = dvi.h dviRenderer.h xdvi.h

messages: rc.cpp
	$(PREPARETIPS) > tips.txt
	$(XGETTEXT) *.cpp *.txt -o $(podir)/kdvi.pot
	rm -f tips.txt

xdg_apps_DATA = kdvi.desktop

tip_DATA = tips
tipdir = $(kde_datadir)/kdvi

partdir = $(kde_datadir)/kdvi
part_DATA = ../kviewshell/kviewshell.rc kdvi_part.rc

kde_services_DATA = kdvimultipage.desktop

psheader.c: psheader.txt squeeze
	./squeeze $(srcdir)/psheader.txt $@

CLEANFILES = psheader.c