2008-08-25 17:21:54 +04:00
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
# Part of Equinox Desktop Environment (EDE).
|
|
|
|
# Copyright (c) 2000-2007 EDE Authors.
|
|
|
|
#
|
|
|
|
# This program is licensed under terms of the
|
|
|
|
# GNU General Public License version 2 or newer.
|
|
|
|
# See COPYING for details.
|
|
|
|
|
|
|
|
# directories
|
|
|
|
prefix ?= "@prefix@" ;
|
|
|
|
exec_prefix ?= "@exec_prefix@" ;
|
|
|
|
datarootdir ?= "@datarootdir@" ;
|
|
|
|
bindir ?= "@bindir@" ;
|
|
|
|
datadir ?= "@datadir@" ;
|
|
|
|
docdir ?= "@datadir@/doc" ;
|
|
|
|
includedir ?= "@includedir@" ;
|
|
|
|
libdir ?= "@libdir@" ;
|
|
|
|
mandir ?= "@mandir@" ;
|
|
|
|
srcdir ?= "@abs_srcdir@" ;
|
2010-01-19 16:49:49 +03:00
|
|
|
sysconfdir ?= "@sysconfdir@" ;
|
2008-08-25 17:21:54 +04:00
|
|
|
|
2009-03-30 19:17:00 +04:00
|
|
|
# compiler
|
|
|
|
CC = @CC@ ;
|
|
|
|
C++ = @CXX@ ;
|
|
|
|
LINK = $(CC) ;
|
|
|
|
|
2008-08-25 17:21:54 +04:00
|
|
|
# tools used by jam rules
|
|
|
|
XGETTEXT ?= @XGETTEXT@ ;
|
|
|
|
MSGFMT ?= @MSGFMT@ ;
|
2009-01-22 17:25:40 +03:00
|
|
|
PYTHON ?= @PYTHON@ ;
|
2008-08-25 17:21:54 +04:00
|
|
|
RMDIR_UNSAFE ?= $(RM) -Rf ;
|
|
|
|
RMDIR_SAFE ?= rmdir ;
|
|
|
|
CP ?= cp ;
|
|
|
|
COPYDIR ?= "cp -R" ;
|
|
|
|
MV ?= mv ;
|
|
|
|
MKDIRS ?= "mkdir -p" ;
|
|
|
|
LINKCMD ?= "ln -s" ;
|
|
|
|
|
2009-01-14 18:10:47 +03:00
|
|
|
EDE_VERSION ?= "@EDE_VERSION@" ;
|
|
|
|
|
2009-09-03 15:35:31 +04:00
|
|
|
# subdirectory in usual XDG paths; this directory is marked
|
|
|
|
# as 'prefix' in some edelib classes, like Resource or Theme
|
|
|
|
EDE_PREFIX_SUBDIR ?= "ede" ;
|
|
|
|
|
2008-08-25 17:21:54 +04:00
|
|
|
# directories used by build system
|
2009-10-01 12:01:22 +04:00
|
|
|
PREFIX ?= "$(prefix)" ;
|
|
|
|
EDE_BIN_DIR ?= "$(bindir)" ;
|
2009-10-03 11:24:06 +04:00
|
|
|
EDE_DATA_DIR ?= "$(datadir)" ;
|
2010-01-18 17:38:22 +03:00
|
|
|
EDE_CONFIG_DIR ?= "$(sysconfdir)/xdg/$(EDE_PREFIX_SUBDIR)" ;
|
|
|
|
EDE_MENU_DIR ?= "$(sysconfdir)/xdg/menus" ; # use XDG default for menu dir
|
2009-10-03 11:24:06 +04:00
|
|
|
EDE_ICON_DIR ?= "$(EDE_DATA_DIR)/icons" ;
|
|
|
|
EDE_MIME_DIR ?= "$(EDE_DATA_DIR)/mime" ; # use XDG mime path
|
2009-10-01 12:01:22 +04:00
|
|
|
EDE_DOC_DIR ?= "$(docdir)/ede-$(EDE_VERSION)" ;
|
2009-10-03 11:24:06 +04:00
|
|
|
EDE_THEMES_DIR ?= "$(EDE_DATA_DIR)/$(EDE_PREFIX_SUBDIR)/themes" ;
|
|
|
|
EDE_TIPS_DIR ?= "$(EDE_DATA_DIR)/$(EDE_PREFIX_SUBDIR)/tips" ;
|
|
|
|
EDE_PANEL_APPLETS_DIR ?= "$(EDE_DATA_DIR)/$(EDE_PREFIX_SUBDIR)/panel-applets" ;
|
2008-08-25 17:21:54 +04:00
|
|
|
|
2010-01-18 17:38:22 +03:00
|
|
|
DBUS_SERVICE_DIR ?= "$(datarootdir)/dbus-1/services" ;
|
|
|
|
XSESSIONS_DIR ?= "$(datarootdir)/xsessions" ;
|
|
|
|
|
2009-10-07 14:25:15 +04:00
|
|
|
OPTIMFLAGS ?= @EDE_OPTIM_FLAGS@ ;
|
|
|
|
DEBUGFLAGS ?= @EDE_DEBUG_FLAGS@ ;
|
|
|
|
LARGEFILEFLAGS ?= @LARGEFILE@ ;
|
2008-08-25 17:21:54 +04:00
|
|
|
|
2009-04-16 20:56:14 +04:00
|
|
|
# FIXME: a quick hack to work everything on SunStudio
|
|
|
|
if $(SUN_COMPILER) {
|
|
|
|
WALL ?= "+w2" ;
|
|
|
|
PEDANTIC ?= ;
|
|
|
|
WNO_LONG_LONG ?= ;
|
|
|
|
} else {
|
|
|
|
# gcc assumed
|
|
|
|
WALL ?= "-Wall" ;
|
2009-10-08 16:13:52 +04:00
|
|
|
# by default we do not use -pedantic; programs that use C libraries (HAL older versions) and eFLTK will fail
|
|
|
|
# to compile with it
|
|
|
|
PEDANTIC ?= ;
|
2009-04-16 20:56:14 +04:00
|
|
|
WNO_LONG_LONG ?= "-Wno-long-long" ;
|
|
|
|
}
|
2009-02-24 16:54:14 +03:00
|
|
|
|
2008-08-25 17:21:54 +04:00
|
|
|
# global flags used to be passed to every target
|
2009-10-07 14:25:15 +04:00
|
|
|
GLOBALFLAGS ?= $(WALL) $(PEDANTIC) -DHAVE_CONFIG_H -I$(TOP) $(OPTIMFLAGS) $(DEBUGFLAGS) $(LARGEFILEFLAGS) ;
|
2009-04-16 20:56:14 +04:00
|
|
|
STDLIB ?= -lstdc++ ;
|
2009-10-07 14:44:40 +04:00
|
|
|
LIBM ?= -lm ;
|
2009-10-07 14:39:20 +04:00
|
|
|
|
2008-08-25 17:21:54 +04:00
|
|
|
# Note that REMOVE_UNUSED_DEPENDENCIES_TRICK _does not_ works when
|
2009-02-20 17:45:52 +03:00
|
|
|
# edelib is compiled as shared library (or when is linked with some shared library)
|
|
|
|
#REMOVE_UNUSED_DEPENDENCIES_TRICK = 1 ;
|
2008-08-25 17:21:54 +04:00
|
|
|
|
|
|
|
# edelib libraries path
|
|
|
|
EDELIBINCLUDE ?= @EDELIB_CFLAGS@ ;
|
|
|
|
EDELIBLIB ?= @EDELIB_LIBS@ ;
|
2009-05-14 20:06:10 +04:00
|
|
|
EDELIB_GUI_INCLUDE ?= @EDELIB_GUI_CFLAGS@ ;
|
|
|
|
EDELIB_GUI_LIB ?= @EDELIB_GUI_LIBS@ ;
|
2008-08-25 17:21:54 +04:00
|
|
|
EDELIB_DBUS_INCLUDE ?= @EDELIB_DBUS_CFLAGS@ ;
|
|
|
|
EDELIB_DBUS_LIB ?= @EDELIB_DBUS_LIBS@ ;
|
|
|
|
|
|
|
|
# fltk libraries path
|
|
|
|
FLTKINCLUDE ?= @FLTK_CFLAGS@ ;
|
|
|
|
FLTKLIB ?= @FLTK_LIBS@ ;
|
|
|
|
FLTKLIB_NOIMAGES ?= @FLTK_LIBS_NOIMAGES@ ;
|
|
|
|
|
|
|
|
# backward; efltk libraries path
|
|
|
|
EFLTKINCLUDE ?= @EFLTK_CFLAGS@ ;
|
|
|
|
EFLTKLIB ?= @EFLTK_LIBS@ ;
|
|
|
|
EFLTKLIB_NOIMAGES ?= @EFLTK_LIBS_NOIMAGES@ ;
|
|
|
|
|
|
|
|
# Xcomposite
|
|
|
|
COMPOSITEINCLUDE ?= @COMPOSITE_CFLAGS@ ;
|
|
|
|
COMPOSITELIB ?= @COMPOSITE_LIBS@ ;
|
|
|
|
|
|
|
|
# HAL
|
2009-01-14 18:10:47 +03:00
|
|
|
HALINCLUDE ?= @HAL_CFLAGS@ ;
|
|
|
|
HALLIB ?= @HAL_LIBS@ ;
|
2008-08-25 17:21:54 +04:00
|
|
|
|
2009-03-06 15:12:27 +03:00
|
|
|
# startup-notification
|
|
|
|
STARTUP_NOTIFICATION_INCLUDE ?= @LIBSTARTUP_NOTIFICATION_CFLAGS@ ;
|
|
|
|
STARTUP_NOTIFICATION_LIB ?= @LIBSTARTUP_NOTIFICATION_LIBS@ ;
|
|
|
|
|
2009-03-03 14:47:30 +03:00
|
|
|
# X libraries (could be empty if are on standard paths)
|
|
|
|
X_CFLAGS ?= @X_CFLAGS@ ;
|
|
|
|
X_LIBS ?= @X_LIBS@ ;
|
|
|
|
X_PRE_LIBS ?= @X_PRE_LIBS@ ;
|
|
|
|
X_EXTRA_LIBS ?= @X_EXTRA_LIBS@ ;
|
|
|
|
|
2009-11-20 20:08:29 +03:00
|
|
|
# solo XKB extension library
|
|
|
|
XKB_LIBS ?= @XKB_LIBS@ ;
|
|
|
|
|
2009-06-25 19:37:12 +04:00
|
|
|
# curl libraries
|
|
|
|
CURL_CFLAGS ?= @CURL_CFLAGS@ ;
|
|
|
|
CURL_LIBS ?= @CURL_LIBS@ ;
|
|
|
|
|
|
|
|
# platform specific pthread flags
|
2009-09-03 15:35:31 +04:00
|
|
|
# FIXME: a quick hack to work everything on SunStudio
|
|
|
|
if $(SUN_COMPILER) {
|
|
|
|
PTHREAD_CFLAGS ?= ;
|
|
|
|
PTHREAD_LIBS ?= -lpthread ;
|
|
|
|
} else {
|
|
|
|
PTHREAD_CFLAGS ?= @PTHREAD_CFLAGS@ ;
|
|
|
|
PTHREAD_LIBS ?= @PTHREAD_LIBS@ ;
|
|
|
|
}
|
2009-06-25 19:37:12 +04:00
|
|
|
|
2008-08-25 17:21:54 +04:00
|
|
|
# do not touch this
|
|
|
|
JAMCONFIG_READ = "yes" ;
|