Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc-cf / packages / build.ncurses / Makefile
blob9e6d85d0f03fb8d16ffe10cb35b88270d10405b2
1 include ../packages.mk
3 ifeq ($(OS), Darwin)
4 # Build universl binaries
6 COMPILERS = CC="$(XCODE_ROOT)/usr/bin/gcc" CXX="$(XCODE_ROOT)/usr/bin/g++"
8 LDFLAGS += -Wl,-syslibroot,$(XCODE_ROOT)/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -L$(HOME)/local-$(HOSTNAME)/lib
9 CXXFLAGS += -O2 -isysroot $(XCODE_ROOT)/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -I$(HOME)/local-$(HOSTNAME)/include
10 CFLAGS += -O2 -isysroot $(XCODE_ROOT)/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -I$(HOME)/local-$(HOSTNAME)/include
11 endif
13 VERSION=$(shell expr download/ncurses-*.tar.gz : 'download/ncurses-\(.*\).tar.gz')
15 .PHONY: all
16 all: ncurses-install.tag clean
18 ncurses-download.tag:
19 wget -P download http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz
20 touch $@
22 ncurses-unpack.tag: ncurses-download.tag
23 tar xzvf download/ncurses-$(VERSION).tar.gz
24 touch $@
26 ncurses-configure.tag: ncurses-unpack.tag
27 cd ncurses-$(VERSION) && \
28 ./configure --prefix=$(LOCAL_DIR) $(COMPILERS) CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)"
29 touch $@
31 ncurses-make.tag: ncurses-configure.tag
32 $(MAKE) -C ncurses-$(VERSION)
33 touch $@
35 ncurses-install.tag: ncurses-make.tag
36 $(MAKE) -C ncurses-$(VERSION) install
37 touch $@
39 clean:
40 rm -rf ncurses-$(VERSION) download/* *.tag