#
# Makefile for PURE
# $Id: Makefile,v 1.7 2001/09/16 15:30:24 simm Exp $
#

#EMACS	= mule
EMACS	= emacs
XEMACS	= xemacs

BYTECOMP= -batch -q -nw -no-site-file -l ./pure-make.el -l ./make.el

CFLAGS="-O2 -Wall"
LDFLAGS=""

PACKDIR	=
LISPDIR	=
BINDIR	=

all: c lisp

c:
	cd c ; $(MAKE) CFLAGS=$(CFLAGS) LDFLAGS=$(LDFLAGS) LIBPURE=libpure.a all ; cd ..

lisp:
	$(EMACS) $(BYTECOMP) -f make-pure-compile

install: c
	$(EMACS) $(BYTECOMP) -f make-pure-install lispdir=$(LISPDIR) bindir=$(BINDIR)
	cd c ; $(MAKE) clean

package:
	$(XEMACS) $(BYTECOMP) -f make-pure-compile

install-package: c
	$(XEMACS) $(BYTECOMP) -f make-pure-package packagedir=$(PACKDIR) lispdir=$(LISPDIR) bindir=$(BINDIR)

clean:
	cd c ; $(MAKE) clean
	rm -f *~ *.elc

.PHONY: all c lisp install package install-package clean


syntax highlighted by Code2HTML, v. 0.9.1