Permalink
Switch branches/tags
save2011_02_16 release10.1_t6 release10.1_t5 release10.1_t4 release10.1_t3 release10.1_t2 release10.1_t1 release10.1_release_point release10.1_rc5 release10.1_rc4 release10.1_rc3 release10.1_rc2 release10.1_rc1 release10.1_beta3_release_point release10.1.beta2_release_point release10.1.beta_t6 release10.1.beta_t5 release10.1.beta_t4 release10.1.beta_t3 release10.1.beta_t2 release10.1.beta_t1 release10.1.beta_release_point release10.1.beta_rc4 release10.1.beta_rc3 release10.1.beta_rc2 release10.1.beta_rc1 release10.0_t3 release10.0_t2 release10.0_t1 release10.0_rc9 release10.0_rc8 release10.0_rc7 release10.0_rc6 release10.0_rc5 release10.0_rc4 release10.0_rc3 release10.0_rc2 release10.0_rc1 release10.0.pre-final.30_release_point release10.0.pre-final.17_release_point release10.0.beta_t13 release10.0.beta_t12 release10.0.beta_t11 release10.0.beta_t10 release10.0.beta_t9 release10.0.beta_t8 release10.0.beta_t7 release10.0.beta_t6 release10.0.beta_t5 release10.0.beta_t4 release10.0.beta_t3 release10.0.beta_t2 release10.0.beta_t1 release10.0.beta_release_point release10.0.beta_rc2 release10.0.beta_rc1 release_aclt2 release_acl100b14t8 release_acl100b11t7 release_acl100b10t6 release_acl100b8t5 release_acl100b7t4 release_acl100b6t3 release_acl100b4t2 release_acl100b2t1 release_acl90b21rc5 release_acl90b20_release_point release_acl90b20rc4 release_acl90b19rc3 release_acl90b18rc2 release_acl90b15_release_point release_acl90b15rc1 release_acl90b13t1 release_acl90b11t1 release_acl90b9t1 release_acl90b8t1 release_acl90b6_release_point release_acl90b6rc2 release_acl90b_release_point release_acl90a52rc1 release_acl90a44rc2 release_acl90a43rc1 release_acl90a39 release_acl90a39rc2 release_acl90a32 release_acl90a27 release_acl90a25 release_acl90a24 release_acl90a23 release_acl90a20 release_acl90a18 install-spider_2013-04-26T12-55-31 install-spider_2013-04-25T12-56-58 install-spider_2013-04-24T16-52-55 install-spider_2013-04-24T16-42-42 install-spider_2013-04-24T16-29-36 install-spider_2013-04-24T15-47-16 install-spider_2013-04-24T15-37-01 install-spider_2013-04-24T15-02-09 install-spider_2013-04-23T11-10-35
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
125 lines (100 sloc) 3.46 KB
# On Windows, this makefile requires the use of GNU make from Redhat
# (http://sources.redhat.com/cygwin/).
SHELL = sh
## First, so it can set variables and even change the default rule
makefile_local = $(shell if test -f makefile.local;then echo makefile.local;fi)
ifneq ($(makefile_local),)
include $(makefile_local)
endif
on_windows = $(shell if test -d "c:/"; then echo yes; else echo no; fi)
use_dcl = $(shell if test -f ../dcl.dxl; then echo yes; else echo no; fi)
ifeq ($(use_dcl),yes)
mlisp = ../lisp
image = dcl.dxl
endif
ifeq ($(on_windows),yes)
mlisp ?= "/cygdrive/c/acl100/mlisp.exe"
else
mlisp ?= /fi/cl/10.0/bin/mlisp
endif
image ?= mlisp.dxl
ifeq ($(on_windows),yes)
mlisp += +B +cn +P # +M
endif
mlisp += -I $(image)
# -batch must come before -L, since arguments are evaluated from left to right
mlisp += -batch -backtrace-on-error
build: FORCE
rm -f build.tmp
echo '(setq *record-source-file-info* t)' >> build.tmp
echo '(setq *load-source-file-info* t)' >> build.tmp
echo '(setq excl::*break-on-warnings* t)' >> build.tmp
echo '(load "load.cl")' >> build.tmp
echo '(make-aserve.fasl)' >> build.tmp
$(mlisp) -L build.tmp -kill
# Can be used to change the number of parallel test runs:
#NSERVERS = :n 1
COMPILE_TESTS = yes
test.tmp: FORCE
rm -f test.tmp
echo '(dribble "test.out")' >> test.tmp
echo '(setq excl::*break-on-warnings* t)' >> test.tmp
echo '(require :tester)' >> test.tmp
echo '(setq util.test::*break-on-test-failures* t)' >> test.tmp
echo '(load "load.cl")' >> test.tmp
echo '(setq user::*do-aserve-test* nil)' >> test.tmp
ifeq ($(COMPILE_TESTS),yes)
echo '(load (compile-file "test/t-aserve.cl"))' >> test.tmp
else
echo '(load "test/t-aserve.cl")' >> test.tmp
endif
test: test.tmp
echo '(time (test-aserve-n :n 1 :exit t))' >> test.tmp
$(mlisp) -L test.tmp -kill
testsmp: test.tmp
echo '(time (test-aserve-n $(NSERVERS) :exit t))' >> test.tmp
$(mlisp) -L test.tmp -kill
stress: test.tmp
echo '(net.aserve::debug-on :notrap)' >> test.tmp
echo '(time (test-aserve-n $(NSERVERS) :exit t))' >> test.tmp
../bin/repeat.sh 10 $(mlisp) -L test.tmp -kill
stresswp: test.tmp
echo '(net.aserve::debug-on :notrap)' >> test.tmp
echo '(setq excl::*break-on-warnings* :pause)' >> test.tmp
echo '(time (test-aserve-n $(NSERVERS) :exit t))' >> test.tmp
../bin/repeat.sh 10 $(mlisp) -L test.tmp -kill
test-from-asdf: FORCE
rm -f build.tmp
echo '(dribble "test.out")' >> build.tmp
echo '(setq excl::*break-on-warnings* t)' >> build.tmp
echo '(require :tester)' >> build.tmp
echo '(setq util.test::*break-on-test-failures* t)' >> build.tmp
echo '(require :asdf)' >> build.tmp
echo "(asdf:operate 'asdf:load-op :aserve)" >> build.tmp
ifeq ($(COMPILE_TESTS),yes)
echo '(time (load (compile-file "test/t-aserve.cl")))' >> build.tmp
else
echo '(time (load "test/t-aserve.cl"))' >> build.tmp
endif
echo '(exit util.test::*test-errors*)' >> build.tmp
$(mlisp) -L build.tmp -kill
srcdist: FORCE
rm -f build.tmp
echo '(setq excl::*break-on-warnings* t)' >> build.tmp
echo '(load "load.cl")' >> build.tmp
echo '(make-src-distribution "aserve")' >> build.tmp
$(mlisp) -L build.tmp -kill
clean: FORCE
rm -f *.tmp *.gz
find . -name '*.fasl' -print | xargs rm -f
cleanall distclean: clean
rm -fr aserve-src
tags: FORCE
rm -f TAGS
find . -name '*.cl' -print | xargs etags -a
FORCE:
## last, for including new rules which are not the default
makefile_last = $(shell if test -f makefile.last;then echo makefile.last;fi)
ifneq ($(makefile_last),)
include $(makefile_last)
endif