2003-07-23 15:53:34 +00:00
|
|
|
# Berkeley DB
|
|
|
|
|
2003-10-16 08:52:44 +00:00
|
|
|
DB = db-4.1.25
|
2003-07-23 15:53:34 +00:00
|
|
|
|
|
|
|
$(DB).tar.gz:
|
2003-08-18 08:52:49 +00:00
|
|
|
@echo "Nix requires Berkeley DB to build."
|
2003-10-16 08:52:44 +00:00
|
|
|
@echo "Please download version 4.1.25 from"
|
|
|
|
@echo " http://www.sleepycat.com/update/snapshot/db-4.1.25.tar.gz"
|
2003-08-18 08:52:49 +00:00
|
|
|
@echo "and place it in the externals/ directory."
|
2003-08-18 08:35:16 +00:00
|
|
|
false
|
2003-07-23 15:53:34 +00:00
|
|
|
|
|
|
|
$(DB): $(DB).tar.gz
|
|
|
|
gunzip < $(DB).tar.gz | tar xvf -
|
|
|
|
|
2003-07-24 14:31:39 +00:00
|
|
|
have-db:
|
|
|
|
$(MAKE) $(DB)
|
|
|
|
touch have-db
|
|
|
|
|
|
|
|
build-db: have-db
|
2003-07-23 15:53:34 +00:00
|
|
|
(pfx=`pwd` && \
|
|
|
|
cd $(DB)/build_unix && \
|
2003-11-09 10:31:56 +00:00
|
|
|
CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
|
|
|
|
../dist/configure --prefix=$$pfx/inst \
|
2003-07-28 14:13:42 +00:00
|
|
|
--enable-cxx --disable-shared && \
|
2003-07-23 15:53:34 +00:00
|
|
|
make && \
|
|
|
|
make install)
|
|
|
|
touch build-db
|
|
|
|
|
|
|
|
|
|
|
|
# CWI ATerm
|
|
|
|
|
2003-10-16 08:52:44 +00:00
|
|
|
ATERM = aterm-2.0.5
|
2003-07-23 15:53:34 +00:00
|
|
|
|
|
|
|
$(ATERM).tar.gz:
|
2003-08-18 08:52:49 +00:00
|
|
|
@echo "Nix requires the CWI ATerm library to build."
|
2003-10-16 08:52:44 +00:00
|
|
|
@echo "Please download version 2.0.5 from"
|
|
|
|
@echo " http://www.cwi.nl/projects/MetaEnv/aterm/aterm-2.0.5.tar.gz"
|
2003-08-18 08:52:49 +00:00
|
|
|
@echo "and place it in the externals/ directory."
|
2003-08-18 08:35:16 +00:00
|
|
|
false
|
2003-07-23 15:53:34 +00:00
|
|
|
|
|
|
|
$(ATERM): $(ATERM).tar.gz
|
|
|
|
gunzip < $(ATERM).tar.gz | tar xvf -
|
|
|
|
|
2003-07-24 14:31:39 +00:00
|
|
|
have-aterm:
|
|
|
|
$(MAKE) $(ATERM)
|
|
|
|
touch have-aterm
|
|
|
|
|
|
|
|
build-aterm: have-aterm
|
2003-07-23 15:53:34 +00:00
|
|
|
(pfx=`pwd` && \
|
|
|
|
cd $(ATERM) && \
|
2003-11-09 10:31:56 +00:00
|
|
|
CC="$(CC)" ./configure --prefix=$$pfx/inst \
|
|
|
|
--with-cflags="-DNDEBUG -DXGC_VERBOSE -DXHASHPEM -DWITH_STATS $(CFLAGS)" && \
|
2003-07-23 15:53:34 +00:00
|
|
|
make && \
|
|
|
|
make install)
|
|
|
|
touch build-aterm
|
|
|
|
|
|
|
|
|
2003-10-29 15:04:50 +00:00
|
|
|
# SDF bundle
|
2003-07-23 15:53:34 +00:00
|
|
|
|
2003-10-29 15:04:50 +00:00
|
|
|
SDF2 = sdf2-bundle-1.6
|
|
|
|
|
|
|
|
$(SDF2).tar.gz:
|
|
|
|
@echo "Nix requires the SDF2 bundle to build."
|
|
|
|
@echo "Please download version 1.6 from"
|
2003-10-31 19:20:03 +00:00
|
|
|
@echo " ftp://ftp.stratego-language.org/pub/stratego/sdf2/sdf2-bundle-1.6.tar.gz"
|
2003-10-29 15:04:50 +00:00
|
|
|
@echo "and place it in the externals/ directory."
|
|
|
|
false
|
|
|
|
|
|
|
|
$(SDF2): $(SDF2).tar.gz
|
|
|
|
gunzip < $(SDF2).tar.gz | tar xvf -
|
|
|
|
|
|
|
|
have-sdf2:
|
|
|
|
$(MAKE) $(SDF2)
|
|
|
|
touch have-sdf2
|
|
|
|
|
|
|
|
build-sdf2: have-sdf2
|
|
|
|
(pfx=`pwd` && \
|
|
|
|
cd $(SDF2) && \
|
2003-11-09 10:31:56 +00:00
|
|
|
CC="$(CC) -pg" ./configure --prefix=$$pfx/inst --with-cflags="$(CFLAGS)" && \
|
2003-10-29 15:04:50 +00:00
|
|
|
make && \
|
|
|
|
make install)
|
|
|
|
touch build-sdf2
|
|
|
|
|
|
|
|
|
|
|
|
all: build-db build-aterm build-sdf2
|
|
|
|
|
|
|
|
EXTRA_DIST = $(DB).tar.gz $(ATERM).tar.gz $(SDF2).tar.gz
|
2003-11-09 10:31:56 +00:00
|
|
|
|
|
|
|
ext-clean:
|
|
|
|
$(RM) -f have-db build-db have-aterm build-aterm have-sdf2 build-sdf2
|
|
|
|
$(RM) -rf $(DB) $(ATERM) $(SDF2)
|