Skip to content
Snippets Groups Projects
Commit d2e3a132 authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

* Pass CFLAGS to the subpackages.

parent 90e26d39
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,8 @@ have-db:
build-db: have-db
(pfx=`pwd` && \
cd $(DB)/build_unix && \
CC=$(CC) CXX=$(CXX) ../dist/configure --prefix=$$pfx/inst \
CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
../dist/configure --prefix=$$pfx/inst \
--enable-cxx --disable-shared && \
make && \
make install)
......@@ -47,7 +48,8 @@ have-aterm:
build-aterm: have-aterm
(pfx=`pwd` && \
cd $(ATERM) && \
./configure --prefix=$$pfx/inst && \
CC="$(CC)" ./configure --prefix=$$pfx/inst \
--with-cflags="-DNDEBUG -DXGC_VERBOSE -DXHASHPEM -DWITH_STATS $(CFLAGS)" && \
make && \
make install)
touch build-aterm
......@@ -74,7 +76,7 @@ have-sdf2:
build-sdf2: have-sdf2
(pfx=`pwd` && \
cd $(SDF2) && \
./configure --prefix=$$pfx/inst && \
CC="$(CC) -pg" ./configure --prefix=$$pfx/inst --with-cflags="$(CFLAGS)" && \
make && \
make install)
touch build-sdf2
......@@ -83,3 +85,7 @@ build-sdf2: have-sdf2
all: build-db build-aterm build-sdf2
EXTRA_DIST = $(DB).tar.gz $(ATERM).tar.gz $(SDF2).tar.gz
ext-clean:
$(RM) -f have-db build-db have-aterm build-aterm have-sdf2 build-sdf2
$(RM) -rf $(DB) $(ATERM) $(SDF2)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment