Old KDE building system – not used for TDE
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

159 lines
5.7 KiB

  1. #-*- mode: Fundamental; tab-width: 4; -*-
  2. # ex:ts=4
  3. # $Id$
  4. # This file contains configuration variables that are global to
  5. # the GAR system. Users wishing to make a change on a
  6. # per-package basis should edit the category/package/Makefile, or
  7. # specify environment variables on the make command-line.
  8. # Variables that define the default *actions* (rather than just
  9. # default data) of the system will remain in bbc.gar.mk
  10. # (bbc.port.mk)
  11. # Set this variable if you have at least Qt 3.3 (including moc, uic and headers)
  12. # installed and want to skip the installation of the Qt 3.3 package.
  13. # Make sure that $QTDIR/bin, $QTDIR/$(TARGET_LIBNAME) and $QTDIR/include are reasonable.
  14. #HAVE_QT_3_3_INSTALLED = true
  15. # Setting this variable will cause the results of your builds to
  16. # be cleaned out after being installed. Uncomment only if you
  17. # desire this behavior!
  18. #BUILD_CLEAN = true
  19. # The GARCHIVEDIR is a directory containing cached files. It can be created
  20. # manually, or with 'make garchive' once you've started downloading required
  21. # files (say with 'make paranoid-checksum'. Example:
  22. GARCHIVEDIR = $(HOME)/trinity.5.7-sources
  23. # Set this variable if you want to compile KDE for a 64bit target (x86_64)
  24. #HAVE_64BIT_TARGET = true
  25. # Several variables depend on the target architecture
  26. ifdef HAVE_64BIT_TARGET
  27. ENABLE_LIBSUFFIX="--enable-libsuffix=64"
  28. TARGET_LIBNAME = lib64
  29. TARGET_PLATFORM = linux-g++-64
  30. ## Distributions which use XOrg 7.0 like Fedora Core 5
  31. #TARGET_X11 = /usr
  32. #TARGET_X11_LIB = /usr/lib64
  33. ## Other distributions
  34. TARGET_X11 = /usr/X11R6
  35. TARGET_X11_LIB = /usr/X11R6/lib64
  36. TARGET_PKG_CONFIG_PATH = /usr/lib64/pkgconfig:/usr/local/lib64/pkgconfig
  37. # *Mandatory* compiler options on x86_64
  38. OWN_CFLAGS = -m64 -fPIC
  39. # Compiler options (optional)
  40. OWN_CFLAGS += -O2 -pipe
  41. # Optional compiler options for gcc >= 3.4.0
  42. # OWN_CFLAGS += -march=opteron -O3 -pipe
  43. else
  44. ENABLE_LIBSUFFIX=
  45. TARGET_LIBNAME = lib
  46. TARGET_PLATFORM = linux-g++
  47. ## Distributions which use XOrg 7.0 like Fedora Core 5
  48. #TARGET_X11 = /usr
  49. #TARGET_X11_LIB = /usr/lib
  50. ## Other distributions
  51. TARGET_X11 = /usr/X11R6
  52. TARGET_X11_LIB = /usr/X11R6/lib
  53. TARGET_PKG_CONFIG_PATH = /usr/lib/pkgconfig:/usr/local/lib/pkgconfig
  54. # Compiler options (optional)
  55. OWN_CFLAGS = -O2 -pipe
  56. endif
  57. # These are the standard directory name variables from all GNU
  58. # makefiles. They're also used by autoconf, and can be adapted
  59. # for a variety of build systems.
  60. #
  61. # TODO: set $(SYSCONFDIR) and $(LOCALSTATEDIR) to never use
  62. # /usr/etc or /usr/var
  63. prefix ?= $(HOME)/trinity.5.7
  64. exec_prefix = $(prefix)
  65. bindir = $(exec_prefix)/bin
  66. sbindir = $(exec_prefix)/sbin
  67. libexecdir = $(exec_prefix)/libexec
  68. datadir = $(prefix)/share
  69. sysconfdir = $(prefix)/etc
  70. sharedstatedir = $(prefix)/share
  71. localstatedir = $(prefix)/var
  72. libdir = $(exec_prefix)/$(TARGET_LIBNAME)
  73. infodir = $(BUILD_PREFIX)/info
  74. lispdir = $(prefix)/share/emacs/site-lisp
  75. includedir = $(BUILD_PREFIX)/include
  76. mandir = $(BUILD_PREFIX)/man
  77. docdir = $(BUILD_PREFIX)/share/doc
  78. sourcedir = $(BUILD_PREFIX)/src
  79. # the DESTDIR is used at INSTALL TIME ONLY to determine what the
  80. # filesystem root should be. The BUILD_PREFIX is the prefix that
  81. # usurps the DESTDIR. It should be considered relative to
  82. # $(DESTDIR). Thus, if includedir were set to
  83. # $(BUILD_PREFIX)/include, it would expand out at install time
  84. # (BUT NO SOONER) to /tmp/gar/../../tmp/build. The /../../ at
  85. # the front should be harmless, as .. for / is just / itself.
  86. DESTDIR ?=
  87. BUILD_PREFIX ?= $(prefix)
  88. #BUILD_PREFIX ?= $(ROOTFROMDEST)/tmp/build
  89. ifdef HAVE_QT_3_3_INSTALLED
  90. # allow us to link to libraries we installed
  91. CPPFLAGS := -I$(DESTDIR)$(includedir) -I$(QTDIR)/include -I$(DESTDIR)/usr/X11R6/include $(CPPFLAGS)
  92. CFLAGS := -I$(DESTDIR)$(includedir) -I$(QTDIR)/include -I$(DESTDIR)/usr/X11R6/include -L$(DESTDIR)$(libdir) -L$(QTDIR)/$(TARGET_LIBNAME) -L$(DESTDIR)$(TARGET_X11_LIB) $(CFLAGS)
  93. LDFLAGS := -L$(DESTDIR)$(libdir) -L$(DESTDIR)$(TARGET_X11_LIB) -L$(QTDIR)/$(TARGET_LIBNAME) $(LDFLAGS)
  94. # allow us to use programs we just built
  95. PATH := $(DESTDIR)$(bindir):$(DESTDIR)$(sbindir):$(DESTDIR)$(BUILD_PREFIX)/bin:$(DESTDIR)$(BUILD_PREFIX)/sbin:$(QTDIR)/bin:$(PATH)
  96. LD_LIBRARY_PATH := $(DESTDIR)$(libdir):$(DESTDIR)$(BUILD_PREFIX)/$(TARGET_LIBNAME):$(QTDIR)/$(TARGET_LIBNAME):$(LD_LIBRARY_PATH)
  97. else
  98. # allow us to link to libraries we installed
  99. CPPFLAGS += -I$(DESTDIR)$(includedir) -I$(DESTDIR)/usr/X11R6/include
  100. CFLAGS += -I$(DESTDIR)$(includedir) -I$(DESTDIR)/usr/X11R6/include -L$(DESTDIR)$(libdir) -L$(DESTDIR)$(TARGET_X11_LIB)
  101. LDFLAGS += -L$(DESTDIR)$(libdir) -L$(DESTDIR)$(TARGET_X11_LIB)
  102. # allow us to use programs we just built
  103. PATH := $(DESTDIR)$(bindir):$(DESTDIR)$(sbindir):$(DESTDIR)$(BUILD_PREFIX)/bin:$(DESTDIR)$(BUILD_PREFIX)/sbin:$(PATH)
  104. LD_LIBRARY_PATH := $(DESTDIR)$(libdir):$(DESTDIR)$(BUILD_PREFIX)/$(TARGET_LIBNAME):$(LD_LIBRARY_PATH)
  105. endif
  106. # This is for foo-config chaos
  107. PKG_CONFIG_PATH:=$(DESTDIR)$(libdir)/pkgconfig:$(TARGET_PKG_CONFIG_PATH):$(PKG_CONFIG_PATH)
  108. # Now add own flags to CFLAGS and keep OWN_CFLAGS for qt-x11-free's Makefile.
  109. CFLAGS += $(OWN_CFLAGS)
  110. # Equalise CFLAGS and CXXFLAGS
  111. CXXFLAGS := $(CFLAGS)
  112. # If you have no following GNU tools installed change these lines
  113. TAR = tar
  114. MD5 = md5sum
  115. # make these variables available to configure and build scripts
  116. # outside of make's realm.
  117. export DESTDIR prefix exec_prefix bindir sbindir libexecdir datadir sysconfdir
  118. export sharedstatedir localstatedir libdir infodir lispdir includedir mandir
  119. export docdir sourcedir
  120. export CC CXX
  121. export CPPFLAGS CFLAGS CXXFLAGS LDFLAGS PATH LD_LIBRARY_PATH LD_PRELOAD
  122. export PKG_CONFIG_PATH BUILD_CLEAN
  123. # prepend the local file listing
  124. FILE_SITES = file://$(FILEDIR)/ file://$(GARCHIVEDIR)/