#
# Makefile for irchat-pj (w/PURE)
# $Id: Makefile,v 1.7 2001/09/16 15:32:24 simm Exp $
#

#EMACS	= mule
EMACS	= emacs
XEMACS	= xemacs

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

LISPDIR	=

# CC	= gcc
# CFLAGS	= -O2 -pthread -DUSE_PTHREAD -DENABLE_PTHREAD_ATTR
# LDFLAGS	=

all: lisp

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

install:
	$(EMACS) $(BYTECOMP) -f make-pj-install lispdir=$(LISPDIR)
	$(MAKE) clean

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

install-package:
	$(XEMACS) $(BYTECOMP) -f make-pj-package packagedir=$(PACKDIR) lispdir=$(LISPDIR)
	$(MAKE) clean

dcc:
	$(CC) $(CFLAGS) -o $@ dcc.c $(LDFLAGS)

clean:
	rm -f dcc dcc.exe *~ *.elc

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


syntax highlighted by Code2HTML, v. 0.9.1