|
|
Songbird Wiki > Developer Center > Articles > Style Manual > Source Directory Makefile Template
Source Directory Makefile TemplateFrom $1Table of contentsNo headersYou must change the following after copying this template:
#
# BEGIN SONGBIRD GPL
#
# This file is part of the Songbird web player.
#
# Copyright(c) 2005-2007 POTI, Inc.
# http://songbirdnest.com
#
# This file may be licensed under the terms of of the
# GNU General Public License Version 2 (the "GPL").
#
# Software distributed under the License is distributed
# on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
# express or implied. See the GPL for the specific language
# governing rights and limitations.
#
# You should have received a copy of the GPL along with this
# program. If not, go to http://www.gnu.org/licenses/gpl.html
# or write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# END SONGBIRD GPL
#
DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/build/autodefs.mk
target_name = sbMyComponent
CPP_SRCS = sbSomeSourceFile.cpp \
abAnotherSourceFile.cpp \
$(NULL)
CPP_INCLUDES = $(DEPTH)/components/mycomponent/public \
$(MOZSDK_INCLUDE_DIR) \
$(MOZSDK_INCLUDE_DIR)/nspr \
$(MOZSDK_INCLUDE_DIR)/string \
$(MOZSDK_INCLUDE_DIR)/unicharutils \
$(MOZSDK_INCLUDE_DIR)/xpcom \
$(NULL)
DYNAMIC_LIB = $(target_name)$(DLL_SUFFIX)
DYNAMIC_LIB_OBJS = $(CPP_SRCS:.cpp=$(OBJ_SUFFIX))
DYNAMIC_LIB_EXTRA_IMPORTS = nspr4 \
xpcom \
xpcomglue_s \
$(NULL)
DYNAMIC_LIB_IMPORT_PATHS = $(MOZSDK_LIB_DIR)
ifneq (linux,$(SB_PLATFORM))
DYNAMIC_LIB_EXTRA_IMPORTS += unicharutil_external_s
else
DYNAMIC_LIB_STATIC_IMPORTS += $(MOZSDK_LIB_DIR)/libunicharutil_external_s
endif
SONGBIRD_COMPONENTS = $(DYNAMIC_LIB)
include $(topsrcdir)/build/rules.mk
Tags:
|
Powered by MindTouch Deki Wiki |