2007-03-16 16:06:41 +03:00
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
# Part of Equinox Desktop Environment (EDE).
|
|
|
|
# Copyright (c) 2000-2007 EDE Authors.
|
|
|
|
#
|
2007-07-18 17:21:52 +04:00
|
|
|
# This program is licensed under terms of the
|
|
|
|
# GNU General Public License version 2 or newer.
|
2007-03-16 16:06:41 +03:00
|
|
|
# See COPYING for details.
|
|
|
|
|
2007-07-18 20:14:10 +04:00
|
|
|
# tools used by jam rules
|
|
|
|
XGETTEXT ?= xgettext ;
|
|
|
|
MSGFMT ?= msgfmt ;
|
|
|
|
RMDIR_UNSFE ?= $(RM) -Rf ;
|
|
|
|
RMDIR_SAFE ?= rmdir ;
|
|
|
|
CP ?= cp ;
|
|
|
|
MV ?= mv ;
|
|
|
|
MKDIRS ?= "mkdir -p" ;
|
|
|
|
LINKCMD ?= "ln -s" ;
|
2007-03-15 19:21:30 +03:00
|
|
|
|
2007-07-18 20:14:10 +04:00
|
|
|
# directories where data will be installed
|
|
|
|
PREFIX ?= "/opt/ede2" ;
|
|
|
|
EDEBINDIR ?= "$(PREFIX)/bin" ;
|
|
|
|
EDECONFIGDIR ?= "$(PREFIX)/data/config" ;
|
|
|
|
EDEICONDIR ?= "$(PREFIX)/data/icons" ;
|
|
|
|
EDEDESKTOPDIR ?= "$(PREFIX)/data/desktop" ;
|
|
|
|
|
|
|
|
# global flags used to be passed to every target
|
|
|
|
GLOBALFLAGS ?= -Wall -pedantic -g3 -D_DEBUG -I$(TOP) ;
|
2007-07-18 17:21:52 +04:00
|
|
|
STDLIB ?= -lstdc++ ;
|
2007-03-15 19:21:30 +03:00
|
|
|
|
2008-08-10 22:18:16 +04:00
|
|
|
# some options
|
|
|
|
REMOVE_UNUSED_DEPENDENCIES_TRICK = 1 ;
|
|
|
|
|
2007-07-18 20:14:10 +04:00
|
|
|
# edelib libraries path
|
|
|
|
EDELIBINCLUDE ?= -I/opt/ede/include ;
|
|
|
|
EDELIBLIB ?= -L/opt/ede/lib -ledelib ;
|
|
|
|
|
|
|
|
# fltk libraries path
|
2007-07-18 17:21:52 +04:00
|
|
|
FLTKINCLUDE ?= -I/usr/local/include ;
|
2008-08-10 22:18:16 +04:00
|
|
|
FLTKLIB ?= -L/usr/local/lib -lfltk_images -lpng -lz -ljpeg -lfltk -ldl -lm -lXext -lXft -lX11 -lXpm ;
|
|
|
|
FLTKLIB_NOIMAGES ?= -L/usr/local/lib -lfltk -ldl -lm -lXext -lXft -lX11 ;
|
2007-03-16 18:18:54 +03:00
|
|
|
|
2007-07-18 20:14:10 +04:00
|
|
|
# backward; efltk libraries path
|
2007-07-18 17:21:52 +04:00
|
|
|
EFLTKINCLUDE ?= -I/usr/local/include ;
|
|
|
|
EFLTKLIB ?= -L/usr/local/lib -lefltk_images -lpng -lz -ljpeg -lefltk -lX11 -lXext -lm ;
|
|
|
|
EFLTKLIB_NOIMAGES ?= -L/usr/local/lib -lefltk -lX11 -lXext -lm ;
|
2007-03-15 19:21:30 +03:00
|
|
|
|
2007-07-18 20:14:10 +04:00
|
|
|
# by default all flags that jam uses directly are cleared
|
|
|
|
# here should _not_ be set anything since they are filled per target
|
2007-07-18 17:21:52 +04:00
|
|
|
CCFLAGS = ;
|
|
|
|
C++FLAGS = ;
|
2007-03-15 19:21:30 +03:00
|
|
|
OPTIM = ;
|
|
|
|
|
2007-07-18 17:21:52 +04:00
|
|
|
# only haiku jam
|
|
|
|
JCACHEFILE = $(TOP)/.jamcache ;
|
|
|
|
HCACHEFILE = $(TOP)/.jamhcache ;
|
|
|
|
|
|
|
|
include $(TOP)/build/Utils.jam ;
|
|
|
|
include $(TOP)/build/Library.jam ;
|
|
|
|
include $(TOP)/build/Program.jam ;
|
|
|
|
include $(TOP)/build/Translation.jam ;
|
|
|
|
include $(TOP)/build/Install.jam ;
|
|
|
|
include $(TOP)/build/Doc.jam ;
|
2007-12-06 18:54:24 +03:00
|
|
|
include $(TOP)/build/Svg.jam ;
|
|
|
|
|
|
|
|
BUILD_ICON_THEMES ?= ;
|
2007-07-18 17:21:52 +04:00
|
|
|
|
|
|
|
actions quietly Help
|
|
|
|
{
|
|
|
|
echo ""
|
|
|
|
echo "Build options:"
|
|
|
|
echo " jam build all"
|
|
|
|
echo " jam clean clean compiled and created data"
|
|
|
|
echo " jam distclean clean all compiled and created data (development only)"
|
|
|
|
echo " jam [target] build [target] only"
|
|
|
|
echo " jam translation extract translation strings and compile existing"
|
|
|
|
echo " jam potfile extract translation strings only"
|
|
|
|
echo " jam doc build documentation"
|
|
|
|
echo " jam help this help"
|
|
|
|
echo ""
|
2007-12-06 18:54:24 +03:00
|
|
|
echo " jam -sBUILD_ICON_THEMES=1 build icon themes (not built by default)"
|
|
|
|
echo ""
|
2007-07-18 17:21:52 +04:00
|
|
|
}
|
2007-12-06 18:54:24 +03:00
|
|
|
|
2007-07-18 17:21:52 +04:00
|
|
|
Help help ;
|
|
|
|
NotFile help ;
|
|
|
|
Always help ;
|