Commit 5274bf52 authored by Alexey Golubev's avatar Alexey Golubev Committed by Alexander Trofimov

Added Makefile

parent 87d9642c
LIBDIR := build/lib/linux_64
ALLFONTSGEN := build/bin/AllFontsGen/linux_64
X2T := build/bin/linux/x2t
HTMLFILEINTERNAL := $(LIBDIR)/HtmlFileInternal
XLSFORMATLIB := $(LIBDIR)/libXlsFormatLib.a
ODFFILEWRITERLIB := $(LIBDIR)/libOdfFileWriterLib.a
ODFFILEREADERLIB := $(LIBDIR)/libOdfFileReaderLib.a
DOCFORMATLIB := $(LIBDIR)/libDocFormatLib.a
PPTFORMATLIB := $(LIBDIR)/libPptFormatLib.a
RTFFORMATLIB := $(LIBDIR)/libRtfFormatLib.a
TXTXMLFORMATLIB := $(LIBDIR)/libTxtXmlFormatLib.a
PDFWRITER := $(LIBDIR)/libPdfWriter.so
ASCOFFICEDOCXFILE2LIB := $(LIBDIR)/libASCOfficeDocxFile2Lib.a
ASCOFFICEUTILSLIB := $(LIBDIR)/libASCOfficeUtilsLib.a
PPTXFORMATLIB := $(LIBDIR)/libPPTXFormatLib.a
DOCXFORMATLIB := $(LIBDIR)/libDocxFormatLib.a
OFFICEUTILS := $(LIBDIR)/libOfficeUtils.a
GRAPHICS := $(LIBDIR)/libgraphics.a
DOCTRENDERER := $(LIBDIR)/libdoctrenderer.so
HTMLRENDERER := $(LIBDIR)/libHtmlRenderer.so
PDFREADER := $(LIBDIR)/libPdfReader.so
DJVUFILE := $(LIBDIR)/libDjVuFile.so
XPSFILE := $(LIBDIR)/libXpsFile.so
HTMLFILE := $(LIBDIR)/libHtmlFile.so
UNICODECONVERTER := $(LIBDIR)/libUnicodeConverter.so
TARGETS += $(ALLFONTSGEN)
TARGETS += $(X2T)
TARGETS += $(HTMLFILEINTERNAL)
TARGETS += $(XLSFORMATLIB)
TARGETS += $(ODFFILEWRITERLIB)
TARGETS += $(ODFFILEREADERLIB)
TARGETS += $(DOCFORMATLIB)
TARGETS += $(PPTFORMATLIB)
TARGETS += $(RTFFORMATLIB)
TARGETS += $(TXTXMLFORMATLIB)
TARGETS += $(PDFWRITER)
TARGETS += $(ASCOFFICEDOCXFILE2LIB)
TARGETS += $(ASCOFFICEUTILSLIB)
TARGETS += $(PPTXFORMATLIB)
TARGETS += $(DOCXFORMATLIB)
TARGETS += $(OFFICEUTILS)
TARGETS += $(GRAPHICS)
TARGETS += $(DOCTRENDERER)
TARGETS += $(HTMLRENDERER)
TARGETS += $(PDFREADER)
TARGETS += $(DJVUFILE)
TARGETS += $(XPSFILE)
TARGETS += $(HTMLFILE)
TARGETS += $(UNICODECONVERTER)
X2T_PRO := $(abspath X2tConverter/X2tConverter.pro)
HTMLFILEINTERNAL_PRO := $(abspath HtmlFile/Internal/Internal.pro)
ALLFONTSGEN_PRO := $(abspath DesktopEditor/AllFontsGen/AllFontsGen.pro)
XLSFORMATLIB_PRO := $(abspath ASCOfficeXlsFile2/source/linux/XlsFormatLib.pro)
ODFFILEWRITERLIB_PRO := $(abspath ASCOfficeOdfFileW/linux/OdfFileWriterLib.pro)
ODFFILEREADERLIB_PRO := $(abspath ASCOfficeOdfFile/linux/OdfFileReaderLib.pro)
DOCFORMATLIB_PRO := $(abspath ASCOfficeDocFile/DocFormatLib/Linux/DocFormatLib.pro)
PPTFORMATLIB_PRO := $(abspath ASCOfficePPTFile/PPTFormatLib/Linux/PPTFormatLib.pro)
RTFFORMATLIB_PRO := $(abspath ASCOfficeRtfFile/RtfFormatLib/Linux/RtfFormatLib.pro)
TXTXMLFORMATLIB_PRO := $(abspath ASCOfficeTxtFile/TxtXmlFormatLib/Linux/TxtXmlFormatLib.pro)
PDFWRITER_PRO := $(abspath PdfWriter/PdfWriter.pro)
ASCOFFICEDOCXFILE2LIB_PRO := $(abspath ASCOfficeDocxFile2/Linux/ASCOfficeDocxFile2Lib.pro)
ASCOFFICEUTILSLIB_PRO := $(abspath ASCOfficeUtils/ASCOfficeUtilsLib/Linux/ASCOfficeUtilsLib.pro)
PPTXFORMATLIB_PRO := $(abspath ASCOfficePPTXFile/PPTXLib/Linux/PPTXFormatLib/PPTXFormatLib.pro)
DOCXFORMATLIB_PRO := $(abspath Common/DocxFormat/DocxFormatLib/DocxFormatLib.pro)
OFFICEUTILS_PRO := $(abspath OfficeUtils/OfficeUtils.pro)
GRAPHICS_PRO := $(abspath DesktopEditor/Qt_build/graphics/project/graphics.pro)
DOCTRENDERER_PRO := $(abspath DesktopEditor/doctrenderer/doctrenderer.pro)
HTMLRENDERER_PRO := $(abspath HtmlRenderer/htmlrenderer.pro)
PDFREADER_PRO := $(abspath PdfReader/PdfReader.pro)
DJVUFILE_PRO := $(abspath DjVuFile/DjVuFile.pro)
XPSFILE_PRO := $(abspath XpsFile/XpsFile.pro)
HTMLFILE_PRO := $(abspath HtmlFile/HtmlFile.pro)
UNICODECONVERTER_PRO := $(abspath UnicodeConverter/UnicodeConverter.pro)
# PROS += $(basename $(X2T_PRO)).build
# PROS += ALLFONTSGEN_PRO
# PROS += XLSFORMATLIB_PRO
# PROS += ODFFILEWRITERLIB_PRO
# PROS += ODFFILEREADERLIB_PRO
# PROS += DOCFORMATLIB_PRO
# PROS += PPTFORMATLIB_PRO
# PROS += RTFFORMATLIB_PRO
# PROS += TXTXMLFORMATLIB_PRO
# PROS += PDFWRITER_PRO
# PROS += ASCOFFICEDOCXFILE2LIB_PRO
# PROS += PPTXFORMATLIB_PRO
# PROS += DOCXFORMATLIB_PRO
# PROS += OFFICEUTILS_PRO
# PROS += GRAPHICS_PRO
# PROS += DOCTRENDERER_PRO
# PROS += HTMLRENDERER_PRO
# PROS += PDFREADER_PRO
# PROS += DJVUFILE_PRO
# PROS += XPSFILE_PRO
# PROS += HTMLFILE_PRO
# PROS += UNICODECONVERTER_PRO
QT_PROJ += X2T
QT_PROJ += HTMLFILEINTERNAL
QT_PROJ += ALLFONTSGEN
QT_PROJ += XLSFORMATLIB
QT_PROJ += ODFFILEWRITERLIB
QT_PROJ += ODFFILEREADERLIB
QT_PROJ += DOCFORMATLIB
QT_PROJ += PPTFORMATLIB
QT_PROJ += RTFFORMATLIB
QT_PROJ += TXTXMLFORMATLIB
QT_PROJ += PDFWRITER
QT_PROJ += ASCOFFICEDOCXFILE2LIB
QT_PROJ += ASCOFFICEUTILSLIB
QT_PROJ += PPTXFORMATLIB
QT_PROJ += DOCXFORMATLIB
QT_PROJ += OFFICEUTILS
QT_PROJ += GRAPHICS
QT_PROJ += DOCTRENDERER
QT_PROJ += HTMLRENDERER
QT_PROJ += PDFREADER
QT_PROJ += DJVUFILE
QT_PROJ += XPSFILE
QT_PROJ += HTMLFILE
QT_PROJ += UNICODECONVERTER
X2T_DEP += $(XLSFORMATLIB)
X2T_DEP += $(ODFFILEWRITERLIB)
X2T_DEP += $(ODFFILEREADERLIB)
X2T_DEP += $(DOCFORMATLIB)
X2T_DEP += $(PPTFORMATLIB)
X2T_DEP += $(RTFFORMATLIB)
X2T_DEP += $(TXTXMLFORMATLIB)
X2T_DEP += $(PDFWRITER)
X2T_DEP += $(ASCOFFICEDOCXFILE2LIB)
X2T_DEP += $(PPTXFORMATLIB)
X2T_DEP += $(DOCXFORMATLIB)
X2T_DEP += $(OFFICEUTILS)
X2T_DEP += $(GRAPHICS)
X2T_DEP += $(DOCTRENDERER)
X2T_DEP += $(HTMLRENDERER)
X2T_DEP += $(PDFREADER)
X2T_DEP += $(DJVUFILE)
X2T_DEP += $(XPSFILE)
X2T_DEP += $(HTMLFILE)
X2T_DEP += $(UNICODECONVERTER)
HTMLFILEINTERNAL_DEP += $(GRAPHICS)
XPSFILE_DEP += $(PDFWRITER)
ALLFONTSGEN_DEP += $(GRAPHICS)
ALLFONTSGEN_DEP += $(ASCOFFICEUTILSLIB)
HTMLFILE_DEP += $(UNICODECONVERTER)
RTFFORMATLIB_DEP += $(UNICODECONVERTER)
XLSFORMATLIB_DEP += $(UNICODECONVERTER)
DJVUFILE_DEP += $(PDFWRITER)
#Template for next statment:
#FOO_MAKE := $(basename $(FOO_PRO)).build/Makefile
#$(FOO): $(FOO_MAKE)
# cd $(dir $(FOO_MAKE)) && make
define build_proj_tmpl
PROS += $$(basename $$(value $(1)_PRO)).build
$(1)_MAKE := $$(basename $$(value $(1)_PRO)).build/Makefile
$$(value $(1)): $$(value $(1)_MAKE)
cd $$(dir $$(value $(1)_MAKE)) && make
endef
.PHONY : all bin clean install uninstall clean-bin
all: bin
bin: $(X2T) $(HTMLFILEINTERNAL) $(ALLFONTSGEN)
$(foreach proj, $(QT_PROJ), $(eval $(call build_proj_tmpl, $(proj))))
$(X2T): $(X2T_DEP)
$(HTMLFILEINTERNAL): $(HTMLFILEINTERNAL_DEP)
$(XPSFILE): $(XPSFILE_DEP)
$(ALLFONTSGEN): $(ALLFONTSGEN_DEP)
$(HTMLFILE): $(HTMLFILE_DEP)
$(RTFFORMATLIB): $(RTFFORMATLIB_DEP)
$(XLSFORMATLIB): $(XLSFORMATLIB_DEP)
$(DJVUFILE): $(DJVUFILE_DEP)
%.build/Makefile: %.pro
mkdir -p $(dir $@) && cd $(dir $@) && qmake $<
clean:
rm -rf $(TARGETS) $(PROS)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment