Updated README and README.build to reflect the addition of autoconf support.
Added Makefile.in configure configure.in to automate buid configuration.
This commit is contained in:
Родитель
932fb88b4b
Коммит
b80c3df9a1
|
@ -0,0 +1,102 @@
|
|||
#!gmake
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License
|
||||
# Version 1.0 (the "License"); you may not use this file except in
|
||||
# compliance with the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS"
|
||||
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
|
||||
# the License for the specific language governing rights and limitations
|
||||
# under the License.
|
||||
#
|
||||
# The Original Code is the Grendel mail/news client.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape Communications
|
||||
# Corporation. Portions created by Netscape are Copyright (C) 1997
|
||||
# Netscape Communications Corporation. All Rights Reserved.
|
||||
#
|
||||
# Contributors: Jeff Galyan <talisman@anamorphic.com>
|
||||
# Edwin Woudt <edwin@woudt.nl>
|
||||
#
|
||||
|
||||
SUBDIRS= \
|
||||
addressbook \
|
||||
calypso \
|
||||
composition \
|
||||
dnd \
|
||||
dog \
|
||||
mime \
|
||||
prefs \
|
||||
search \
|
||||
storage \
|
||||
ui \
|
||||
util \
|
||||
view \
|
||||
widgets \
|
||||
$(NULL)
|
||||
|
||||
# Temporarily removed because FilterMaster is broken (edwin)
|
||||
# filters \
|
||||
|
||||
SRCS= \
|
||||
Main.java \
|
||||
$(NULL)
|
||||
|
||||
# TestFolderViewer.java \
|
||||
# SelfTest.java \
|
||||
|
||||
TOPDIR = @top_srcdir@
|
||||
|
||||
CLASSPATH_NEW = ${CLASSPATH}:$(TOPDIR)/..:$(TOPDIR)
|
||||
|
||||
DOCSOURCEPATH = $(TOPDIR)/..:$(TOPDIR)
|
||||
|
||||
JAVAC = @java_compiler@
|
||||
|
||||
JAVA = @java_run@
|
||||
|
||||
JAVADOC = @java_doc@
|
||||
|
||||
RM = rm -f
|
||||
|
||||
OBJS = $(subst .java,.class,$(SRCS))
|
||||
|
||||
.SUFFIXES: .java .class
|
||||
|
||||
.java.class:
|
||||
$(JAVAC) -classpath $(CLASSPATH_NEW) -J-mx64m -g $(SRCS)
|
||||
|
||||
all:: $(OBJS)
|
||||
|
||||
clean::
|
||||
$(RM) *.class
|
||||
|
||||
distclean::
|
||||
$(RM) *.class *~ core Makefile config.cache config.log config.status
|
||||
|
||||
all clean distclean::
|
||||
@sd="$(SUBDIRS)" ; \
|
||||
for dir in $$sd; do \
|
||||
( cd $$dir ; $(MAKE) $@ ); \
|
||||
done
|
||||
|
||||
run::
|
||||
$(JAVA) -classpath $(CLASSPATH_NEW) grendel.Main
|
||||
|
||||
TARFILE=/tmp/grendel.tar.gz
|
||||
|
||||
tar::
|
||||
@echo writing $(TARFILE)... ; \
|
||||
dir=`pwd | sed 's@^.*/\([^/]*\)$$@\1@'` ; \
|
||||
cd .. ; tar -vcf - $$dir \
|
||||
--exclude '*.class' \
|
||||
--exclude '*.bak' \
|
||||
--exclude '*~' \
|
||||
--exclude 'core' \
|
||||
--exclude '*.orig' \
|
||||
| gzip -v9 > $(TARFILE)
|
||||
|
||||
docs::
|
||||
$(JAVADOC) -d $(TOPDIR)/docs -windowtitle "Grendel API Documentation" -sourcepath $(DOCSOURCEPATH) calypso.util dog.mail.nntp dog.mail.util grendel.addressbook grendel.addressbook.addresscard grendel.composition grendel.dnd grendel.mime grendel.mime.encoder grendel.mime.extractor grendel.mime.html grendel.mime.parser grendel.prefs grendel.prefs.base grendel.prefs.ui grendel.search grendel.storage grendel.storage.addressparser grendel.storage.intertwingle grendel.storage.mdb grendel.ui grendel.util grendel.view grendel.widgets
|
||||
|
|
@ -1,11 +1,12 @@
|
|||
This is Grendel -- a Java mail/news client.
|
||||
|
||||
It is runnable state right now, though there is still a lot of work to do.
|
||||
It runs now, though there is still a lot of work to be done.
|
||||
|
||||
It is currently being maintained by Jeff Galyan (talisman@anamorphic.com),
|
||||
Grendel is maintained by Jeff Galyan (jeffrey.galyan@sun.com),
|
||||
Giao Nguyen (grail@cafebabe.org) and Edwin Woudt (edwin@woudt.nl)
|
||||
|
||||
See http://www.mozilla.org/projects/grendel/ for more info.
|
||||
|
||||
See README.libs for the libraries you need.
|
||||
See README.build for build instructions
|
||||
Read README.libs for the libraries you need.
|
||||
Read README.build for build instructions
|
||||
|
||||
|
|
|
@ -1,20 +1,43 @@
|
|||
Building Grendel:
|
||||
|
||||
Make sure you have the required (external) packages first. Then edit the
|
||||
top-level rules.mk file, setting the CLASSPATH and other variables
|
||||
appropriately for your system.
|
||||
Make sure you have the required (external) packages first.
|
||||
|
||||
Remember to add two dirs to your classpath for grendel: the
|
||||
your/path/mozilla/grendel dir itself *and* the your/path/mozilla/ dir.
|
||||
Then:
|
||||
./configure
|
||||
gmake
|
||||
|
||||
Then run 'make' in your grendel dir. All files should build fine.
|
||||
The 'configure' script will create the Makefiles with all necessary CLASSPATH
|
||||
settings and such set up appropriately for your system. You no longer have to
|
||||
edit the Makefiles or set CLASSPATH manually.
|
||||
|
||||
'configure' will look for three specific Java compilers (in this order):
|
||||
1. 'javac-ea' - early access of next-generation Java compiler from
|
||||
Java Software (Sun)
|
||||
|
||||
2. 'javac' - standard Sun JDK compiler
|
||||
|
||||
3. 'jikes' - IBM's Java-compatible compiler (included because some
|
||||
people like to use it instead of 'javac')
|
||||
|
||||
'configure' will use whichever of these three it finds first as the compiler
|
||||
for Grendel.
|
||||
|
||||
Running Grendel:
|
||||
|
||||
There are currently two ways you can run Grendel:
|
||||
|
||||
1. Type 'java grendel.Main' (with the correct CLASSPATH of course)
|
||||
1. Type 'java grendel.Main' (with the correct CLASSPATH, or you can
|
||||
use the '-classpath' option to set the classpath on the
|
||||
command-line)
|
||||
2. Type 'make run' after building and watch it work.
|
||||
|
||||
Editing Makefiles:
|
||||
|
||||
Do not edit the generated Makefiles as they will be overwritten when you next
|
||||
run 'configure' or 'configure.status'. If you want to change something in the
|
||||
Makefiles, or add or delete targets, edit the Makefile.in files.
|
||||
|
||||
If you edit 'configure.in' you will need to run GNU autoconf to remake the
|
||||
'configure' script. If you don't have GNU autoconf and don't want to get it,
|
||||
just don't go there.
|
||||
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
dnl The contents of this file are subject to the Mozilla Public License
|
||||
dnl Version 1.0 (the "License"); you may not use this file except in
|
||||
dnl compliance with the License. You may obtain a copy of the License
|
||||
dnl at http://www.mozilla.org/MPL/
|
||||
dnl
|
||||
dnl Software distributed under the License is distributed on an "AS IS"
|
||||
dnl basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
|
||||
dnl the License for the specific language governing rights and
|
||||
dnl limitations under the License.
|
||||
dnl
|
||||
dnl The Original Code is this file as it was released upon August 6, 1999.
|
||||
dnl
|
||||
dnl The Initial Developer of this code under the MPL is Jeff Galyan,
|
||||
dnl <jeffrey.galyan@sun.com>. Portions created by Jeff Galyan
|
||||
dnl are Copyright (C) 1999 Jeff Galyan. All Rights Reserved.
|
||||
dnl
|
||||
dnl Contributors:
|
||||
dnl
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
AC_INIT()
|
||||
|
||||
dnl Checks for programs.
|
||||
AC_CHECK_PROGS(java_compiler, javac-ea javac jikes)
|
||||
AC_CHECK_PROGS(java_run, java)
|
||||
AC_CHECK_PROGS(java_doc, javadoc)
|
||||
|
||||
AC_OUTPUT(mime/extractor/Makefile composition/Makefile storage/Makefile search/Makefile dnd/Makefile widgets/Makefile storage/addressparser/Makefile mime/encoder/Makefile filters/Makefile dog/mail/util/Makefile dog/Makefile view/Makefile calypso/Makefile dog/mail/nntp/Makefile util/Makefile ui/Makefile integrator/Makefile storage/intertwingle/Makefile prefs/Makefile addressbook/addresscard/Makefile mime/parser/Makefile dog/util/Makefile calypso/util/Makefile mime/Makefile prefs/base/Makefile mime/html/Makefile dog/mail/Makefile prefs/ui/Makefile addressbook/Makefile Makefile)
|
Загрузка…
Ссылка в новой задаче