### -*-makefile-*- ### ### $Id$ ### ### Makefile for runlisp ### ### (c) 2006 Straylight/Edgeware ### ###----- Licensing notice --------------------------------------------------- ### ### This program is free software; you can redistribute it and/or modify ### it under the terms of the GNU General Public License as published by ### the Free Software Foundation; either version 2 of the License, or ### (at your option) any later version. ### ### This program is distributed in the hope that it will be useful, ### but WITHOUT ANY WARRANTY; without even the implied warranty of ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ### GNU General Public License for more details. ### ### You should have received a copy of the GNU General Public License ### along with this program; if not, write to the Free Software Foundation, ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. prefix = /usr/local bindir = /usr/local/bin libdir = /usr/local/lib/runlisp CC = gcc CFLAGS = -O2 -g -Wall -pedantic LDFLAGS = all: \ runlisp-cmucl runlisp-cmucl.core \ runlisp-ecl \ runlisp-clisp runlisp-clisp.mem runlisp-cmucl: runlisp-cmucl.o $(CC) $(LDFLAGS) -o $@ $^ runlisp-cmucl.o: runlisp-helper.c $(CC) -c -o $@ \ -DCMUCL \ -DLISP=\"/usr/bin/cmucl\" \ -DCORE=\"$(libdir)/runlisp-cmucl.core\" \ $< runlisp-clisp.o: runlisp-helper.c $(CC) -c -o $@ \ -DCLISP \ -DLISP=\"/usr/lib/clisp/full/lisp.run\" \ -DCORE=\"$(libdir)/runlisp-clisp.mem\" \ $< build-cmucl.stamp: build.lisp runlisp.lisp cmucl -noinit -load "$<" build-ecl.stamp: build.lisp runlisp.lisp ecl -load "$<" build-clisp.stamp: build.lisp runlisp.lisp clisp "$<" runlisp-cmucl.core: make-runlisp.lisp build-cmucl.stamp cmucl -noinit -load "$<" runlisp-ecl: make-runlisp.lisp runlisp.lisp build-ecl.stamp ecl -load "$<" runlisp-clisp.mem: make-runlisp.lisp runlisp.lisp build-clisp.stamp clisp "$<" install: all install -d $(DISTDIR)$(bindir) install -d $(DISTDIR)$(libdir) install -m644 \ runlisp-clisp.mem runlisp-cmucl.core \ $(DISTDIR)$(libdir) install -m755 \ runlisp-cmucl runlisp-ecl runlisp-clisp \ $(DISTDIR)$(bindir) clean: rm -f *.stamp \ runlisp-ecl runlisp-cmucl runlisp-clisp \ *.x86f *.fas *.lib *.o \ *.core *.mem ###----- That's all, folks --------------------------------------------------