4 # Build universal binaries
5 CFLAGS
= -g
-O2
-isysroot
$(XCODE_ROOT
)/SDKs
/MacOSX10.4u.sdk
-arch i386
-arch ppc
-DNEED_EXTERN_PC
6 CXXFLAGS
= -g
-O2
-isysroot
$(XCODE_ROOT
)/SDKs
/MacOSX10.4u.sdk
-arch i386
-arch ppc
-DNEED_EXTERN_PC
7 LDFLAGS
= -g
-O2
-arch i386
-arch ppc
8 CONFFLAGS
= --disable-dependency-tracking
13 FLAGS
+= CFLAGS
="$(CFLAGS)"
16 FLAGS
+= CXXFLAGS
="$(CXXFLAGS)"
19 FLAGS
+= LDFLAGS
="$(LDFLAGS)"
22 FLAGS
+= CONFFLAGS
="$(CONFFLAGS)"
27 PACKAGE_DIR
=$(PACKAGE
)-$(VERSION
)
28 PACKAGE_FILE
=$(PACKAGE_DIR
).
tar.gz
31 all: $(PACKAGE
)-install.tag
clean
33 download
/$(PACKAGE_FILE
):
34 wget
-P download ftp
://ftp.cwru.edu
/pub
/bash
/$(PACKAGE_FILE
)
36 $(PACKAGE
)-download.tag
: download
/$(PACKAGE_FILE
)
39 $(PACKAGE
)-unpack.tag
: $(PACKAGE
)-download.tag
40 tar xzvf download
/$(PACKAGE_FILE
)
43 $(PACKAGE
)-configure.tag
: $(PACKAGE
)-unpack.tag
44 cd
$(PACKAGE_DIR
) && \
45 .
/configure
--prefix=$(LOCAL_DIR
) $(CONFFLAGS
) $(FLAGS
)
48 $(PACKAGE
)-make.tag
: $(PACKAGE
)-configure.tag
49 $(MAKE
) -C
$(PACKAGE_DIR
)
52 $(PACKAGE
)-install.tag
: $(PACKAGE
)-make.tag
53 $(MAKE
) -C
$(PACKAGE_DIR
) install
57 rm -rf
$(PACKAGE_DIR
) download
/* *.tag