0.8.13.41: Require robustness
[sbcl.git] / contrib / asdf-module.mk
1 CC=gcc
2
3 # We need to extend flags to the C compiler and the linker
4 # here. sb-posix, sb-grovel, and sb-bsd-sockets depends upon these
5 # being set on x86_64. Setting these in their Makefiles is not
6 # adequate since, while we're building contrib, they can be compiled
7 # directly via ASDF from a non-C-aware module which has these tricky
8 # ones as dependencies.
9
10 UNAME:=$(shell uname -m)
11 ifeq (x86_64,$(UNAME))
12     export EXTRA_LDFLAGS=-m32 -shared
13     export EXTRA_CFLAGS+=-m32
14 endif
15
16 export CC SBCL EXTRA_CFLAGS EXTRA_LDFLAGS
17
18 all: $(EXTRA_ALL_TARGETS)
19         $(MAKE) -C ../asdf
20         $(SBCL) --eval '(defvar *system* "$(SYSTEM)")' --load ../asdf-stub.lisp --eval '(quit)'
21
22 test: all
23         echo "(asdf:operate (quote asdf:load-op) :$(SYSTEM))" \
24              "(asdf:operate (quote asdf:test-op) :$(SYSTEM))" | \
25           $(SBCL) --eval '(load "../asdf/asdf")'
26
27
28 install: $(EXTRA_INSTALL_TARGETS)
29         tar cf - . | ( cd $(BUILD_ROOT)$(INSTALL_DIR) && tar xpvf - )
30         ( cd  $(BUILD_ROOT)$(SBCL_HOME)/systems && ln -fs ../$(SYSTEM)/$(SYSTEM).asd . )