Win32 cross build scripts: better dependency tracking

* track the files we use, not the files that are the source of what we use

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8836 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2009-12-22 16:14:11 +00:00 committed by Git SVN Gateway
parent 18d344d8aa
commit 19754d0203
3 changed files with 16 additions and 4 deletions

View File

@ -6,6 +6,8 @@ PKG_SOURCE:=$(PKG_SOURCEBASE).tar.gz
PKG_SOURCE_URL:=@SF/expat
PKG_MD5SUM:=ee8b492592568805593f81f8cdf2a04c
TARGET:=$(TOPDIR)/builds/libs/lib/libexpat.la
include $(TOPDIR)/rules.mk
extract-stamp: $(TOPDIR)/downloads/$(PKG_SOURCE)
@ -16,10 +18,13 @@ $(PKG_SOURCEBASE)/config.status: extract-stamp
cd $(PKG_SOURCEBASE) && ./configure --host=$(HOST_TRIPLET) --enable-static --disable-shared --prefix=`pwd`/../$(TOPDIR)/build/libs
$(PKG_SOURCEBASE)/libexpat.la: $(PKG_SOURCEBASE)/config.status
$(MAKE) -C $(PKG_SOURCEBASE) libexpat.la
$(TARGET): $(PKG_SOURCEBASE)/libexpat.la
$(MAKE) -C $(PKG_SOURCEBASE) installlib
all: build
build: $(PKG_SOURCEBASE)/libexpat.la
build: $(TARGET)
clean:
$(RM) -rf $(PKG_SOURCEBASE) extract-stamp

View File

@ -6,6 +6,8 @@ PKG_SOURCE:=$(PKG_SOURCEBASE).tar.bz2
PKG_SOURCE_URL:=@SF/freetype
PKG_MD5SUM:=519c7cbf5cbd72ffa822c66844d3114c
TARGET:=$(TOPDIR)/build/libs/lib/libfreetype.la
include $(TOPDIR)/rules.mk
extract-stamp: $(TOPDIR)/downloads/$(PKG_SOURCE)
@ -15,11 +17,11 @@ extract-stamp: $(TOPDIR)/downloads/$(PKG_SOURCE)
$(PKG_SOURCEBASE)/builds/unix/config.status: extract-stamp
cd $(PKG_SOURCEBASE) && ./configure --host=$(HOST_TRIPLET) --enable-static --disable-shared --prefix=`pwd`/../$(TOPDIR)/build/libs
$(PKG_SOURCEBASE)/objs/libfreetype.la: $(PKG_SOURCEBASE)/builds/unix/config.status
$(TARGET): $(PKG_SOURCEBASE)/builds/unix/config.status
$(MAKE) -C $(PKG_SOURCEBASE) install
all: build
build: $(PKG_SOURCEBASE)/objs/libfreetype.la
build: $(TARGET)
clean:
$(RM) -rf $(PKG_SOURCEBASE) extract-stamp

View File

@ -6,6 +6,8 @@ PKG_SOURCE:=$(PKG_SOURCEBASE).tar.gz
PKG_SOURCE_URL:=http://ftp.gnu.org/pub/gnu/gettext/
PKG_MD5SUM:=58a2bc6d39c0ba57823034d55d65d606
TARGET:=$(TOPDIR)/build/libs/lib/libintl.la
include $(TOPDIR)/rules.mk
$(PKG_SOURCEBASE) extract-stamp: $(TOPDIR)/downloads/$(PKG_SOURCE)
@ -16,10 +18,13 @@ $(PKG_SOURCEBASE)/config.status: extract-stamp
cd $(PKG_SOURCEBASE) && ./configure --host=$(HOST_TRIPLET) --enable-static --disable-shared --prefix=`pwd`/../$(TOPDIR)/build/libs --disable-java
$(PKG_SOURCEBASE)/gettext-runtime/intl/libintl.la: $(PKG_SOURCEBASE)/config.status
$(MAKE) -C $(PKG_SOURCEBASE)/gettext-runtime/intl libintl.la
$(TARGET): $(PKG_SOURCEBASE)/gettext-runtime/intl/libintl.la
$(MAKE) -C $(PKG_SOURCEBASE)/gettext-runtime/intl install-exec
all: build
build: $(PKG_SOURCEBASE)/gettext-runtime/intl/libintl.la
build: $(TARGET)
clean:
$(RM) -r $(PKG_SOURCEBASE) extract-stamp