2008-04-02 22:14:45 +00:00
|
|
|
include $(top_srcdir)/config/common.am
|
|
|
|
|
|
|
|
BUILT_SOURCES = $(MOCEDFILES)
|
|
|
|
#BUILT_SOURCES = $(UIFILES:%.ui=ui_%.h)
|
|
|
|
#BUILT_SOURCES += Resources.cpp Resources.qrc
|
|
|
|
|
|
|
|
CLEANFILES += $(BUILT_SOURCES)
|
|
|
|
|
|
|
|
######################### Qt stuff #############################
|
|
|
|
# Use _() for localization instead of tr() or trUtf8()
|
2014-07-19 01:34:28 +00:00
|
|
|
UICFLAGS=-tr lyx::qt_
|
2008-04-02 22:14:45 +00:00
|
|
|
|
|
|
|
ui_%.h: ui/%.ui
|
2014-07-19 01:34:28 +00:00
|
|
|
$(QT_UIC) $(UICFLAGS) $< -o $@
|
2008-04-02 23:06:22 +00:00
|
|
|
|
|
|
|
MOCEDFILES = $(MOCHEADER:%.h=%_moc.cpp)
|
|
|
|
|
|
|
|
%_moc.cpp: %.h
|
2014-07-19 01:34:28 +00:00
|
|
|
$(QT_MOC) -o $@ $<
|
2008-04-02 23:06:22 +00:00
|
|
|
|
|
|
|
#Resources.qrc: Makefile
|
|
|
|
# echo "<!DOCTYPE RCC><RCC version='1.0'><qresource>" > $@
|
|
|
|
# find $(top_srcdir)/lib/images -name '*.png' \
|
|
|
|
# | sed -e 's:$(top_srcdir)/lib/\(.*\):<file alias="\1">&</file>:' \
|
|
|
|
# >> $@
|
|
|
|
# echo "</qresource></RCC>" >> $@
|
|
|
|
#
|
|
|
|
#Resources.cpp: Resources.qrc
|
2014-07-19 01:34:28 +00:00
|
|
|
# $(QT_RCC) $< -name Resources -o $@
|
2008-04-02 23:06:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
######################### LIBRARIES #############################
|
|
|
|
|
|
|
|
bin_PROGRAMS = lyxled
|
|
|
|
|
2014-07-19 01:34:28 +00:00
|
|
|
lyxled_LDADD = $(QT_LIB)
|
2008-04-02 23:06:22 +00:00
|
|
|
lyxled_DEPENDENCIES = $(MOCEDFILES)
|
|
|
|
|
|
|
|
AM_CPPFLAGS += \
|
2014-07-19 01:34:28 +00:00
|
|
|
$(QT_CPPFLAGS) \
|
2008-04-02 23:06:22 +00:00
|
|
|
-UQT_NO_KEYWORDS \
|
|
|
|
-I$(top_srcdir)/src \
|
2014-07-19 01:34:28 +00:00
|
|
|
$(QT_INCLUDES)
|
2008-04-02 23:06:22 +00:00
|
|
|
|
|
|
|
SOURCEFILES = \
|
|
|
|
main.cpp \
|
|
|
|
LayoutEditor.cpp \
|
|
|
|
LayoutEditor_moc.cpp
|
|
|
|
|
|
|
|
NOMOCHEADER =
|
|
|
|
|
|
|
|
MOCHEADER = \
|
|
|
|
LayoutEditor.h
|
|
|
|
|
|
|
|
UIFILES =
|
|
|
|
|
|
|
|
lyxled_SOURCES = \
|
|
|
|
$(SOURCEFILES) \
|
|
|
|
$(MOCEDFILES) \
|
|
|
|
$(MOCHEADER) \
|
|
|
|
$(NOMOCHEADER)
|
|
|
|
|
|
|
|
EXTRA_DIST = ui/compile_uic.sh $(UIFILES:%=ui/%)
|
|
|
|
#EXTRA_DIST = pch.h ui/compile_uic.sh $(UIFILES:%=ui/%)
|
|
|
|
#BUILT_SOURCES += $(PCH_FILE)
|
|
|
|
#AM_CPPFLAGS += $(PCH_FLAGS)
|
|
|
|
include $(top_srcdir)/config/common.am
|
|
|
|
|
|
|
|
BUILT_SOURCES = $(MOCEDFILES)
|
|
|
|
#BUILT_SOURCES = $(UIFILES:%.ui=ui_%.h)
|
|
|
|
#BUILT_SOURCES += Resources.cpp Resources.qrc
|
|
|
|
|
|
|
|
CLEANFILES += $(BUILT_SOURCES)
|
|
|
|
|
|
|
|
######################### Qt stuff #############################
|
|
|
|
# Use _() for localization instead of tr() or trUtf8()
|
2014-07-19 01:34:28 +00:00
|
|
|
UICFLAGS=-tr lyx::qt_
|
2008-04-02 23:06:22 +00:00
|
|
|
|
|
|
|
ui_%.h: ui/%.ui
|
2014-07-19 01:34:28 +00:00
|
|
|
$(QT_UIC) $(UICFLAGS) $< -o $@
|
2008-04-02 22:14:45 +00:00
|
|
|
|
|
|
|
MOCEDFILES = $(MOCHEADER:%.h=%_moc.cpp)
|
|
|
|
|
|
|
|
%_moc.cpp: %.h
|
2014-07-19 01:34:28 +00:00
|
|
|
$(QT_MOC) -o $@ $<
|
2008-04-02 22:14:45 +00:00
|
|
|
|
|
|
|
#Resources.qrc: Makefile
|
|
|
|
# echo "<!DOCTYPE RCC><RCC version='1.0'><qresource>" > $@
|
|
|
|
# find $(top_srcdir)/lib/images -name '*.png' \
|
|
|
|
# | sed -e 's:$(top_srcdir)/lib/\(.*\):<file alias="\1">&</file>:' \
|
|
|
|
# >> $@
|
|
|
|
# echo "</qresource></RCC>" >> $@
|
|
|
|
#
|
|
|
|
#Resources.cpp: Resources.qrc
|
2014-07-19 01:34:28 +00:00
|
|
|
# $(QT_RCC) $< -name Resources -o $@
|
2008-04-02 22:14:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
######################### LIBRARIES #############################
|
|
|
|
|
|
|
|
bin_PROGRAMS = lyxled
|
|
|
|
|
2014-07-19 01:34:28 +00:00
|
|
|
lyxled_LDADD = $(QT_LIB)
|
2008-04-02 22:14:45 +00:00
|
|
|
lyxled_DEPENDENCIES = $(MOCEDFILES)
|
|
|
|
|
|
|
|
AM_CPPFLAGS += \
|
2014-07-19 01:34:28 +00:00
|
|
|
$(QT_CPPFLAGS) \
|
2008-04-02 22:14:45 +00:00
|
|
|
-UQT_NO_KEYWORDS \
|
|
|
|
-I$(top_srcdir)/src \
|
2014-07-19 01:34:28 +00:00
|
|
|
$(QT_INCLUDES)
|
2008-04-02 22:14:45 +00:00
|
|
|
|
|
|
|
SOURCEFILES = \
|
|
|
|
main.cpp \
|
|
|
|
LayoutEditor.cpp \
|
|
|
|
LayoutEditor_moc.cpp
|
|
|
|
|
|
|
|
NOMOCHEADER =
|
|
|
|
|
|
|
|
MOCHEADER = \
|
|
|
|
LayoutEditor.h
|
|
|
|
|
|
|
|
UIFILES =
|
|
|
|
|
|
|
|
lyxled_SOURCES = \
|
|
|
|
$(SOURCEFILES) \
|
|
|
|
$(MOCEDFILES) \
|
|
|
|
$(MOCHEADER) \
|
|
|
|
$(NOMOCHEADER)
|
|
|
|
|
|
|
|
EXTRA_DIST = ui/compile_uic.sh $(UIFILES:%=ui/%)
|
|
|
|
#EXTRA_DIST = pch.h ui/compile_uic.sh $(UIFILES:%=ui/%)
|
|
|
|
#BUILT_SOURCES += $(PCH_FILE)
|
|
|
|
#AM_CPPFLAGS += $(PCH_FLAGS)
|