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.
10 UNAME:=$(shell uname -m)
11 ifeq (x86_64,$(UNAME))
12 export EXTRA_LDFLAGS=-m32 -shared
13 export EXTRA_CFLAGS+=-m32
16 export CC SBCL EXTRA_CFLAGS EXTRA_LDFLAGS
18 all: $(EXTRA_ALL_TARGETS)
20 $(SBCL) --eval '(defvar *system* "$(SYSTEM)")' --load ../asdf-stub.lisp --eval '(quit)'
23 echo "(asdf:operate (quote asdf:load-op) :$(SYSTEM))" \
24 "(asdf:operate (quote asdf:test-op) :$(SYSTEM))" | \
25 $(SBCL) --eval '(load "../asdf/asdf")'
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 . )