var.mk revision b5b382d402ab1d9e576fe5d01d59c2c56dd90969
79bc8f5fe2f1444e87da973a07d7cb9fc9342c22Christian Maeder# to be include by Makefile
b5b382d402ab1d9e576fe5d01d59c2c56dd90969Christian MaederHC = ghc -optl-s -XTemplateHaskell
79bc8f5fe2f1444e87da973a07d7cb9fc9342c22Christian MaederHCPKG = ghc-pkg
2686d4438ffde954ffbb3a3f307642a893b33570Christian MaederTARVERSION = $(shell $(HCPKG) field tar version)
920641c66390a85497e367ce5c7a10af445a93ccChristian Maederifneq ($(findstring 0.3, $(TARVERSION)),)
2686d4438ffde954ffbb3a3f307642a893b33570Christian MaederTAR_PACKAGE = -DTAR_PACKAGE
12251a9d23f842673978d0ad6692527ef320c55dChristian MaederTABULARVERSION = $(shell $(HCPKG) field tabular version)
12251a9d23f842673978d0ad6692527ef320c55dChristian Maederifneq ($(findstring 0.1, $(TABULARVERSION)),)
12251a9d23f842673978d0ad6692527ef320c55dChristian MaederTABULAR_PACKAGE = -DTABULAR_PACKAGE
79bc8f5fe2f1444e87da973a07d7cb9fc9342c22Christian MaederHAXMLVERSION = $(shell $(HCPKG) field HaXml version)
79bc8f5fe2f1444e87da973a07d7cb9fc9342c22Christian Maederifneq ($(findstring 1.13., $(HAXMLVERSION)),)
79bc8f5fe2f1444e87da973a07d7cb9fc9342c22Christian MaederHAXML_PACKAGE = -DHAXML_PACKAGE
79bc8f5fe2f1444e87da973a07d7cb9fc9342c22Christian MaederGLADEVERSION = $(shell $(HCPKG) field glade version)
b6427172803da8cc35b3f28cd2ddf240e075ed27Christian Maederifneq ($(findstring 0., $(GLADEVERSION)),)
79bc8f5fe2f1444e87da973a07d7cb9fc9342c22Christian MaederGLADE_PACKAGE = -DGTKGLADE
79bc8f5fe2f1444e87da973a07d7cb9fc9342c22Christian MaederSHELLACVERSION = $(shell $(HCPKG) field Shellac-compatline version)
79bc8f5fe2f1444e87da973a07d7cb9fc9342c22Christian Maederifneq ($(findstring 0.9, $(SHELLACVERSION)),)
79bc8f5fe2f1444e87da973a07d7cb9fc9342c22Christian MaederSHELLAC_PACKAGE = -DSHELLAC
bea667f53e35535aa05b52ad8d5e5aa47f793c3cChristian MaederEDITLINEVERSION = $(shell $(HCPKG) field Shellac-editline version)
bea667f53e35535aa05b52ad8d5e5aa47f793c3cChristian Maederifneq ($(findstring 0.9, $(EDITLINEVERSION)),)
bea667f53e35535aa05b52ad8d5e5aa47f793c3cChristian MaederEDITLINE_PACKAGE = -DEDITLINE
bea667f53e35535aa05b52ad8d5e5aa47f793c3cChristian MaederSHELLAC_PACKAGE = -DSHELLAC
79bc8f5fe2f1444e87da973a07d7cb9fc9342c22Christian MaederHXTFILTERVERSION = $(shell $(HCPKG) field hxt-filter version)
79bc8f5fe2f1444e87da973a07d7cb9fc9342c22Christian Maederifneq ($(findstring 8., $(HXTFILTERVERSION)),)
79bc8f5fe2f1444e87da973a07d7cb9fc9342c22Christian MaederHXTFILTER_PACKAGE = -DHXTFILTER
8bab1540f30a4e89c64ca2f8ebd23e9046388069Christian MaederNOMATHSERVER = -DNOMATHSERVER
79bc8f5fe2f1444e87da973a07d7cb9fc9342c22Christian MaederUNIVERSION = $(shell $(HCPKG) field uni-uDrawGraph version)
79bc8f5fe2f1444e87da973a07d7cb9fc9342c22Christian Maederifneq ($(findstring 2., $(UNIVERSION)),)
91b3380a74afbf09dc0e7a54c9ee6de26dfbc42aChristian MaederUNI_PACKAGE = -DUNI_PACKAGE
79bc8f5fe2f1444e87da973a07d7cb9fc9342c22Christian MaederPROGRAMATICAVERSION = $(shell $(HCPKG) field programatica version)
79bc8f5fe2f1444e87da973a07d7cb9fc9342c22Christian Maederifneq ($(findstring 1.0, $(PROGRAMATICAVERSION)),)
79bc8f5fe2f1444e87da973a07d7cb9fc9342c22Christian MaederPFE_FLAGS = -package programatica -DPROGRAMATICA
4e9e95ba35a68f3c767bc0b23ebf9e904e442517Christian Maederifneq ($(strip $(UNI_PACKAGE)),)
52d0337a7483233a6d4484d113a30d10474182c0Christian MaederTESTTARGETFILES += Taxonomy/taxonomyTool.hs OWL/OWLParser.hs \
79bc8f5fe2f1444e87da973a07d7cb9fc9342c22Christian Maeder Taxonomy/taxonomyTool.hs SoftFOL/tests/CMDL_tests.hs
a9de0a2f34860a24f457c777e740b7e87e6e3827Christian MaederHC_OPTS_WITHOUTGLADE = -threaded -fglasgow-exts -XOverlappingInstances \
2686d4438ffde954ffbb3a3f307642a893b33570Christian Maeder $(NOMATHSERVER) $(TAR_PACKAGE) \
79bc8f5fe2f1444e87da973a07d7cb9fc9342c22Christian Maeder $(HAXML_PACKAGE) $(UNI_PACKAGE) $(SHELLAC_PACKAGE) $(HXTFILTER_PACKAGE) \
a91757fe2b73b73c43f41b6aa29876a1ae9e9b1bChristian Maeder $(PFE_FLAGS) $(TABULAR_PACKAGE) $(EDITLINE_PACKAGE) -DCASLEXTENSIONS
a91757fe2b73b73c43f41b6aa29876a1ae9e9b1bChristian Maeder# for profiling (or a minimal hets) comment out the previous two package lines
a91757fe2b73b73c43f41b6aa29876a1ae9e9b1bChristian Maeder# and the $(GLADE_PACKAGE) below
b36f451c8ccd631dac70b541450c880b65d86f3bChristian MaederHC_OPTS = $(HC_OPTS_WITHOUTGLADE) $(GLADE_PACKAGE)