1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
# Make life easy, just include everything that is needed.
ifndef top_srcdir
include $(dir $(lastword $(MAKEFILE_LIST)))dirs.mk
endif
include $(top_srcdir)/mk/config.mk
include $(top_srcdir)/mk/version.mk
include $(top_srcdir)/mk/targets.mk
ARFLAGS=crvs
local-check local-base: $(LIB)
local-clean-base:
rm -f $(builddir)/*.o
rm -f $(builddir)/*.a
rm -f $(builddir)/*.c
list-local-base:
@: never nothing to do
# So that removing something from $(OBJS) triggers an archive build:
# depend on Makefile; and always build a new archive. Could also
# depend the mk/* directory?
$(LIB): $(OBJS) $(srcdir)/Makefile | $(builddir)
rm -f $(builddir)/$(LIB).tmp
cd $(builddir) && $(AR) $(ARFLAGS) $(LIB).tmp $(OBJS)
mv $(builddir)/$(LIB).tmp $(builddir)/$(LIB)
include $(top_srcdir)/mk/rules.mk
|