]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/ui/Makefile.am
some pch work
[lyx.git] / src / frontends / qt2 / ui / Makefile.am
1 include $(top_srcdir)/config/common.am
2 include $(srcdir)/../Makefile.dialogs
3
4 CLEANFILES += *.C *Base.h
5
6 SUBDIRS = . moc
7
8 EXTRA_DIST = QPreambleDialogBase.ui $(UIFILES)
9
10 INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/frontends \
11         -I$(top_srcdir)/src/frontends/qt2 \
12         $(QT_INCLUDES) $(BOOST_INCLUDES) \
13         -I$(top_srcdir)/src/frontends/controllers
14
15 AM_CPPFLAGS = -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_TRANSLATION
16 AM_CXXFLAGS = $(PCH_FLAGS)
17
18 noinst_LTLIBRARIES = libqt2ui.la
19
20 nodist_libqt2ui_la_SOURCES = $(UIFILES:.ui=.h) $(UIFILES:.ui=.C)
21 # The trick.
22 libqt2ui_la_LINK = touch libqt2ui.la
23
24 # Use _() for localization instead of tr() or trUtf8()
25 UICFLAGS=-tr qt_
26
27 %.h: %.ui
28         $(UIC) $(UICFLAGS) $< -o $@
29 %.C: %.h %.ui $(PCH_FILE)
30         $(UIC) $(UICFLAGS) -impl `echo $^ | sed 's/pch.h.gch//'` -o $@