2009-10-03 11:33:08 +04:00
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
# Part of Equinox Desktop Environment (EDE).
|
|
|
|
# Copyright (c) 2009 EDE Authors.
|
|
|
|
#
|
|
|
|
# This program is licensed under terms of the
|
|
|
|
# GNU General Public License version 2 or newer.
|
|
|
|
# See COPYING for details.
|
|
|
|
|
2009-10-03 11:49:30 +04:00
|
|
|
SubDir TOP ede-panel ;
|
2009-10-03 11:33:08 +04:00
|
|
|
|
2013-01-04 18:36:40 +04:00
|
|
|
EdeProgram ede-panel : Hider.cpp Panel.cpp AppletManager.cpp ede-panel.cpp ;
|
2013-06-03 15:15:59 +04:00
|
|
|
LinkAgainst ede-panel : -ldl ;
|
2013-01-09 17:47:08 +04:00
|
|
|
#ObjectC++Flags Panel.cpp : -DEDE_PANEL_LOCAL_APPLETS ;
|
2009-10-03 11:33:08 +04:00
|
|
|
|
2009-11-12 16:22:16 +03:00
|
|
|
if $(OS) != "SOLARIS" {
|
|
|
|
# also must use this flag (on anything but Solaris) or program will crash
|
|
|
|
LINKFLAGS on ede-panel = -rdynamic ;
|
|
|
|
}
|
2009-10-03 11:33:08 +04:00
|
|
|
|
|
|
|
rule PanelApplet
|
|
|
|
{
|
2009-11-12 16:22:16 +03:00
|
|
|
local target linker_stuff ;
|
|
|
|
|
|
|
|
# FIXME: these are gcc specific flags
|
|
|
|
if $(OS) = "SOLARIS" {
|
|
|
|
linker_stuff = "-G" ;
|
|
|
|
} else {
|
|
|
|
linker_stuff = "-shared -rdynamic" ;
|
|
|
|
}
|
2009-10-03 11:33:08 +04:00
|
|
|
|
|
|
|
# append default extension
|
2013-01-09 20:01:35 +04:00
|
|
|
target = $(1:S=$(SUFLIB_SHARED)) ;
|
2009-10-03 11:33:08 +04:00
|
|
|
|
2013-01-09 20:01:35 +04:00
|
|
|
Main $(target) : $(2) ;
|
|
|
|
ObjectC++Flags $(2) : $(GLOBALFLAGS) -fPIC $(FLTKINCLUDE) -I [ FDirName $(TOP) ede-panel ] $(EDELIBINCLUDE) ;
|
2009-10-03 11:33:08 +04:00
|
|
|
|
2009-12-17 18:16:35 +03:00
|
|
|
LinkAgainst $(target) : $(3) $(EDELIBLIB) $(EDELIB_GUI_LIB) $(FLTKLIB) $(STDLIB) ;
|
2013-01-09 20:01:35 +04:00
|
|
|
LINKFLAGS on $(target) = $(linker_stuff) [ on $(target) return $(LINKFLAGS) ] $(3) ;
|
2009-10-03 11:33:08 +04:00
|
|
|
|
2009-10-03 13:14:21 +04:00
|
|
|
InstallProgram $(EDE_PANEL_APPLETS_DIR) : $(target) ;
|
2009-10-03 11:33:08 +04:00
|
|
|
|
|
|
|
Clean clean : $(target) ;
|
|
|
|
}
|
|
|
|
|
2009-10-03 11:49:30 +04:00
|
|
|
SubInclude TOP ede-panel applets ;
|