PKG_NAME := libfixmath PKG_VERSION := 91 PKG_BRANCH := trunk PKG_URL := http://libfixmath.googlecode.com/svn/$(PKG_BRANCH)/ CHECKOUT_FOLDER := $(CURDIR)/checkout/$(PKG_BRANCH)-r$(PKG_VERSION) .PHONY: all clean distclean all: $(BINDIR)$(PKG_NAME).a all-unittests: $(BINDIR)$(PKG_NAME)-unittests.a ifneq (,$(filter libfixmath-unittests,$(USEMODULE))) all: all-unittests endif $(BINDIR)$(PKG_NAME).a: $(BINDIR)$(PKG_NAME)-src/Makefile $(BINDIR)$(PKG_NAME)-headers/fix16.h "$(MAKE)" -C $( $(@D)/fix16_unittests.inc $(CHECKOUT_FOLDER)/svn_info.xml: @mkdir -p $(@D) svn checkout -r $(PKG_VERSION) $(PKG_URL) $(@D) @svn info --xml $(@D) > $@ clean:: rm -rf $(BINDIR)$(PKG_NAME)-src/ $(BINDIR)$(PKG_NAME)-headers/ distclean:: clean rm -rf $(CHECKOUT_FOLDER) Makefile.include: @true