summaryrefslogtreecommitdiffstats
path: root/languages/pascal/Makefile.am
blob: 403f37f9bce5faf106e34c2b52a15890fa28bb7b (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
KDE_CXXFLAGS = $(USE_EXCEPTIONS)

INCLUDES = -I$(top_srcdir)/lib/antlr -I$(top_srcdir)/lib/catalog \
	-I$(top_srcdir)/lib/interfaces -I$(top_srcdir)/lib/interfaces/external -I$(top_srcdir)/lib/util \
	$(all_includes)
SUBDIRS = file_templates app_templates compiler doc

kde_module_LTLIBRARIES = libtdevpascalsupport.la
libtdevpascalsupport_la_LDFLAGS = $(LEXLIB) $(all_libraries) $(KDE_PLUGIN)
libtdevpascalsupport_la_LIBADD = $(top_builddir)/lib/libtdevelop.la $(top_builddir)/lib/antlr/src/libantlr.la $(top_builddir)/lib/catalog/libtdevcatalog.la

libtdevpascalsupport_la_SOURCES = pascalsupport_part.cpp PascalLexer.cpp PascalParser.cpp PascalStoreWalker.cpp backgroundparser.cpp configproblemreporter.ui problemreporter.cpp

METASOURCES = AUTO

servicedir = $(kde_servicesdir)
service_DATA = tdevpascalsupport.desktop

rcdir = $(kde_datadir)/tdevpascalsupport
rc_DATA = tdevpascalsupport.rc

genparser:
	antlr   pascal.g && antlr pascal.tree.g

## The following rules assume that you have Java and ANTLR installed,
#PascalLexer.hpp PascalLexer.cpp PascalParser.hpp PascalParser.cpp: pascal.g
#	antlr pascal.g

#PascalStoreWalker.hpp PascalStoreWalker.cpp: pascal.tree.g
#	antlr pascal.tree.g

templatedir = ${kde_datadir}/tdevabbrev/templates
template_DATA = pascaltemplates