Permalink
Browse files

new makefile w/test rule

Change-Id: Ib70f291f89c058a2f364e4f3c82e2aedca4ba636
  • Loading branch information...
1 parent ab76a53 commit 4f54bfb8cd862d77a10ea46ede03bf4fb5643009 @dklayer dklayer committed Mar 17, 2011
Showing with 37 additions and 0 deletions.
  1. +37 −0 makefile
View
@@ -0,0 +1,37 @@
+# On Windows, this makefile requires the use of GNU make from Redhat
+# (http://sources.redhat.com/cygwin/).
+
+SHELL = sh
+
+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 -I dcl.dxl
+endif
+
+ifndef mlisp
+ifeq ($(on_windows),yes)
+mlisp = "/cygdrive/c/acl82/mlisp.exe" +B +cn
+else
+mlisp = /fi/cl/8.2/bin/mlisp
+endif
+endif
+
+test: FORCE
+ rm -f build.tmp
+ echo '(setq excl::*break-on-warnings* t)' >> build.tmp
+ echo '(load (compile-file "inflate.cl"))' >> build.tmp
+ echo '(load (compile-file "deflate.cl"))' >> build.tmp
+ echo '(dribble "test.out")' >> build.tmp
+ echo '(time (load (compile-file "t-gzip.cl")))' >> build.tmp
+ echo '(exit util.test::*test-errors*)' >> build.tmp
+# -batch must come before -L, since arguments are evaluated from left to right
+ $(mlisp) -batch -L build.tmp -kill
+
+clean: FORCE
+ rm -f build.tmp
+ find . -name '*.fasl' -print | xargs rm -f
+
+FORCE:

0 comments on commit 4f54bfb

Please sign in to comment.