2
# Copyright (c) 1999, 2001-2003 Silicon Graphics, Inc. All Rights Reserved.
4
# This program is free software; you can redistribute it and/or modify it
5
# under the terms of version 2 of the GNU General Public License as published
6
# by the Free Software Fondation.
8
# This program is distributed in the hope that it would be useful, but WITHOUT
9
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
# FITNESS FOR A PARTICULAR PURPOSE. Further, any license provided herein,
11
# whether implied or otherwise, is limited to this program in accordance with
12
# the express provisions of the GNU General Public License. Patent licenses,
13
# if any, provided herein do not apply to combinations of this program with
14
# other product or programs, or any other product whatsoever. This program is
15
# distributed without any warranty that the program is delivered free of the
16
# rightful claim of any third person by way of infringement or the like. See
17
# the GNU General Public License for more details.
19
# You should have received a copy of the GNU General Public License along with
20
# this program; if not, write the Free Software Foundation, Inc., 59 Temple
21
# Place - Suite 330, Boston MA 02111-1307, USA.
22
# Common build rules for gmake
24
ifndef _BUILDRULES_INCLUDED_
25
_BUILDRULES_INCLUDED_ = 1
27
include $(TOPDIR)/include/builddefs
29
clean clobber : $(SUBDIRS)
34
# Never blow away subdirs
46
$(LTCOMMAND) : $(SUBDIRS) $(OBJECTS) $(LTDEPENDENCIES)
47
$(LTLINK) -o $@ $(LDFLAGS) $(OBJECTS) $(LDLIBS)
51
$(LTLIBRARY) : $(SUBDIRS) $(LTOBJECTS)
52
$(LTLINK) $(LTLDFLAGS) -o $(LTLIBRARY) $(LTOBJECTS) $(LTLIBS)
59
%.pot: $(XGETTEXTFILES)
60
xgettext --omit-header --language=C --keyword=_ -o $@ $(XGETTEXTFILES)
63
$(MSGMERGE) -o $@.tmpo $@ $(PKG_NAME).pot
64
@if ! diff $@.tmpo $@ >/dev/null; then \
65
echo "$@ is out of date, see $@.tmpo"; \
75
endif # _BUILDRULES_INCLUDED_
81
depend : $(CFILES) $(HFILES)
84
$(MAKEDEPEND) -f - -- $(CFLAGS) -- $(CFILES) | \
85
$(SED) -e 's,`pwd`,$(TOPDIR),g' \
88
-e '/^#.*/d' -e '/^ *$$/d' \
90
test -s .dep || rm -f .dep
92
# Include dep, but only if it exists
93
ifeq ($(shell test -f .dep && echo .dep), .dep)