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 : $(addsuffix -clean,$(SUBDIRS))
16 # Never blow away subdirs
30 $(LTCOMMAND) : $(SUBDIRS) $(OBJECTS) $(LTDEPENDENCIES)
31 $(LTLINK) -o $@ $(LDFLAGS) $(OBJECTS) $(LDLIBS)
35 $(LTLIBRARY) : $(SUBDIRS) $(LTOBJECTS)
36 $(LTLINK) $(LTLDFLAGS) -o $(LTLIBRARY) $(LTOBJECTS) $(LTLIBS)
43 %.pot: $(XGETTEXTFILES)
44 $(XGETTEXT) --language=C --keyword=_ -o $@ $(XGETTEXTFILES)
46 # Generate temp .po files, to check whether translations need updating.
47 # Not by default, due to gettext output differences between versions.
49 # $(MSGMERGE) -o $@.tmpo $@ $(POTHEAD)
50 # if ! diff $@.tmpo $@ >/dev/null; then echo "$@ dated, see $@.tmpo"; fi
59 endif # _BUILDRULES_INCLUDED_
65 DEPENDSCRIPT := $(MAKEDEPEND) $(DEPENDFLAGS) -f - -- $(CFLAGS) -- $(CFILES) | \
66 $(SED) -e 's,`pwd`,$(TOPDIR),g' \
72 DEPENDSCRIPT := $(DEPENDSCRIPT) | $(SED) -e 's,^\([^:]*\)\.o,\1.lo,'
75 depend : $(CFILES) $(HFILES) $(addsuffix -depend,$(SUBDIRS))
76 $(DEPENDSCRIPT) > .dep
77 test -s .dep || rm -f .dep
82 # Include dep, but only if it exists
83 ifeq ($(shell test -f .dep && echo .dep), .dep)
87 $(LTOBJECTS): $(HFILES)