2 # Copyright (c) 1999, 2001-2003 Silicon Graphics, Inc. All Rights Reserved.
4 ifndef _BUILDRULES_INCLUDED_
5 _BUILDRULES_INCLUDED_ = 1
7 include $(TOPDIR)/include/builddefs
9 clean clobber : $(SUBDIRS)
14 # Never blow away subdirs
26 $(LTCOMMAND) : $(SUBDIRS) $(OBJECTS) $(LTDEPENDENCIES)
27 $(LTLINK) -o $@ $(LDFLAGS) $(OBJECTS) $(LDLIBS)
31 $(LTLIBRARY) : $(SUBDIRS) $(LTOBJECTS)
32 $(LTLINK) $(LTLDFLAGS) -o $(LTLIBRARY) $(LTOBJECTS) $(LTLIBS)
39 %.pot: $(XGETTEXTFILES)
40 xgettext --omit-header --language=C --keyword=_ -o $@ $(XGETTEXTFILES)
43 $(MSGMERGE) -o $@.tmpo $@ $(PKG_NAME).pot
44 @if ! diff $@.tmpo $@ >/dev/null; then \
45 echo "$@ is out of date, see $@.tmpo"; \
55 endif # _BUILDRULES_INCLUDED_
61 depend : $(CFILES) $(HFILES)
64 $(MAKEDEPEND) -f - -- $(CFLAGS) -- $(CFILES) | \
65 $(SED) -e 's,`pwd`,$(TOPDIR),g' \
68 -e '/^#.*/d' -e '/^ *$$/d' \
70 test -s .dep || rm -f .dep
72 # Include dep, but only if it exists
73 ifeq ($(shell test -f .dep && echo .dep), .dep)