Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc-cf / packages / build.popt / Makefile
blob501114987d328807330505ffc018d4441ce1cf59
1 include ../packages.mk
3 PACKAGE=popt
5 VERSION=1.16
7 .PHONY: all
8 all: $(PACKAGE)-install.tag clean
10 download/$(PACKAGE)-$(VERSION).tar.gz:
11 wget -P download http://rpm5.org/files/$(PACKAGE)/$(PACKAGE)-$(VERSION).tar.gz
13 $(PACKAGE)-unpack.tag: download/$(PACKAGE)-$(VERSION).tar.gz
14 tar xzvf download/$(PACKAGE)-$(VERSION).tar.gz
15 touch $@
17 $(PACKAGE)-configure.tag: $(PACKAGE)-unpack.tag
18 cd $(PACKAGE)-$(VERSION) && \
19 ./configure --prefix=$(LOCAL_DIR) CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)"
20 touch $@
22 $(PACKAGE)-make.tag: $(PACKAGE)-configure.tag
23 $(MAKE) -C $(PACKAGE)-$(VERSION)
24 touch $@
26 $(PACKAGE)-install.tag: $(PACKAGE)-make.tag
27 $(MAKE) -C $(PACKAGE)-$(VERSION) install
28 touch $@
30 clean:
31 rm -rf $(PACKAGE)-$(VERSION) download/* *.tag