-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (33 loc) · 1.22 KB
/
Makefile
File metadata and controls
47 lines (33 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
SBCL?=sbcl
CCL?=ccl
CCL64?=ccl64
# Note: If you edit the install prefix, you may also have to edit the
# 'shuffletron' wrapper script so it can find its libraries.
PREFIX=/usr/local
# I preferred to build it with --no-userinit so as not to pull in
# unspecified random junk, but this is the easiest way to make it work
# with Quicklisp.
# SBCLFLAGS=--noinform --no-userinit
SBCLFLAGS?=--noinform
export LD_LIBRARY_PATH=$(CURDIR)/libs/
all: shuffletron-bin
tidy:
rm -f *~ *.fasl *.lx*fsl \#*\# src/*~ src/*.fasl src/*.lx*fsl src/\#*\#
clean: tidy
rm -f shuffletron-bin shuffletron-ccl shuffletron-ccl64
rm -f libs/gen*
install:
install -m 0755 shuffletron shuffletron-bin $(PREFIX)/bin
mkdir -p $(PREFIX)/lib/shuffletron
install -m 0755 libs/*.so* $(PREFIX)/lib/shuffletron
.PHONY: install all clean distclean
shuffletron-bin: build-sbcl.lisp src/*.lisp
$(SBCL) $(SBCLFLAGS) --disable-debugger \
--eval "(require :asdf)" \
--eval "(load \"build-sbcl.lisp\")"
shuffletron-ccl64: shuffletron.lisp build-ccl.lisp
$(CCL64) -n -e "(require :asdf)" \
-e "(load \"build-ccl.lisp\")"
shuffletron-ccl: shuffletron.lisp build-ccl.lisp
$(CCL) -n -e "(require :asdf)" \
-e "(load \"build-ccl.lisp\")"