# DIST: This is the distribution Makefile for Emacs. configure can# DIST: make most of the changes to this file you might want, so try# DIST: that first.# add -DUSG for SysV movemail and timer# For Xenix, add the following for movemail:# LOADLIBES= -lx# For Mips, the following is needed for who knows what.# LOADLIBES = -lmld /usr/bsd43/usr/lib/libc.a# Avoid trouble on systems where the `SHELL' variable might be# inherited from the environment.SHELL = /bin/sh# Allow the user to specify the install program.INSTALL = installINSTALLFLAGS =# Things that a user might actually run, which should be installed in bindir.INSTALLABLES = etags ctags emacsclient b2m # Things that Emacs runs internally, or during the build process,# which should not be installed in bindir.UTILITIES= test-distrib wakeup make-docfile digest-doc sorted-doc \ movemail cvtmail fakemail yow env emacsserver hexl timer# Like UTILITIES, but they're not system-dependent, and should not be# deleted by the distclean target.SCRIPTS= rcs2log vcdiffEXECUTABLES= ${UTILITIES} ${INSTALLABLES} ${SCRIPTS}# These things are edited by ../configure; don't change anything before# or including the '='; everything after that gets blown away.CC=gccCFLAGS= -g -OLOADLIBES=all: ../arch-lib../arch-lib: ${EXECUTABLES} for file in ${EXECUTABLES} ; do \ if [ -f $${file} ]; then \ if [ -f ../arch-lib/$${file} ]; then \ rm ../arch-lib/$${file} ; \ fi ; \ ln $${file} ../arch-lib ; \ fi ; \ done# We don't need to install `wakeup' explicitly, because it will be copied when# this whole directory is copied.install: all ${INSTALL} ${INSTALLFLAGS} -c emacsclient ${BINDIR}/emacsclient ${INSTALL} ${INSTALLFLAGS} -c etags ${BINDIR}/etags ${INSTALL} ${INSTALLFLAGS} -c ctags ${BINDIR}/ctags ${INSTALL} ${INSTALLFLAGS} -c b2m ${BINDIR}/b2m ${INSTALL} ${INSTALLFLAGS} -c -m 444 emacs.1 ${MANDIR}/emacs.${MANEXT}install.sysv: all -cp emacsclient ${BINDIR}/emacsclient.new -chmod 755 ${BINDIR}/emacsclient.new -chgrp bin ${BINDIR}/emacsclient.new -chown bin ${BINDIR}/emacsclient.new -mv ${BINDIR}/emacsclient.new ${BINDIR}/emacsclient -cp etags ${BINDIR}/etags.new -chmod 755 ${BINDIR}/etags.new -chgrp bin ${BINDIR}/etags.new -chown bin ${BINDIR}/etags.new -mv ${BINDIR}/etags.new ${BINDIR}/etags -cp ctags ${BINDIR}/ctags.new -chmod 755 ${BINDIR}/ctags.new -chgrp bin ${BINDIR}/ctags.new -chown bin ${BINDIR}/ctags.new -mv ${BINDIR}/ctags.new ${BINDIR}/ctags -cp b2m ${BINDIR}/b2m.new -chmod 755 ${BINDIR}/b2m.new -chgrp bin ${BINDIR}/b2m.new -chown bin ${BINDIR}/b2m.new -mv ${BINDIR}/b2m.new ${BINDIR}/b2m -cp emacs.1 ${MANDIR}/emacs.${MANEXT}.new -chmod 444 ${MANDIR}/emacs.${MANEXT}.new -mv ${MANDIR}/emacs.${MANEXT}.new ${MANDIR}/emacs.${MANEXT}install.xenix: cp etags ctags emacsclient ${BINDIR} chmod 755 ${BINDIR}/etags ${BINDIR}/ctags chmod 755 ${BINDIR}/emacsclient cp b2m ${BINDIR} chmod 755 ${BINDIR}/b2m cp emacs.1 ${MANDIR}/emacs.${MANEXT} chmod 444 ${MANDIR}/emacs.${MANEXT}clean mostlyclean: -rm -f ${INSTALLABLES} ${UTILITIES} core *.odistclean: -rm -f ${INSTALLABLES} ${UTILITIES} *~ \#* ../etc/DOC* core *.o cd ../arch-lib; rm -f ${EXECUTABLES}realclean: distclean rm TAGS aixcc.c# Test the contents of the directory.check: @echo "We don't have any tests for GNU Emacs yet."TAGS: etags etags *.[ch]# This verifies that the non-ASCII characters in the file `testfile'# have not been clobbered by whatever means were used to copy and# distribute Emacs. If they were clobbered, all the .elc files were# clobbered too.test-distrib: test-distrib.c $(CC) -o test-distrib test-distrib.c ./test-distribGETOPTOBJS = getopt.o getopt1.oGETOPTDEPS = $(GETOPTOBJS) getopt.hgetopt.o: getopt.c getopt.hgetopt1.o: getopt1.c getopt.hetags: etags.c $(GETOPTDEPS) $(CC) ${CFLAGS} -DETAGS etags.c $(GETOPTOBJS) $(LOADLIBES) -o etagsctags: etags.c $(GETOPTDEPS) $(CC) ${CFLAGS} -DCTAGS etags.c $(GETOPTOBJS) $(LOADLIBES) -o ctagswakeup: wakeup.c $(CC) ${CFLAGS} wakeup.c $(LOADLIBES) -o wakeupmake-docfile: make-docfile.c $(CC) ${CFLAGS} make-docfile.c $(LOADLIBES) -o make-docfiledigest-doc: digest-doc.c $(CC) ${CFLAGS} digest-doc.c $(LOADLIBES) -o digest-doc sorted-doc: sorted-doc.c $(CC) ${CFLAGS} sorted-doc.c $(LOADLIBES) -o sorted-docb2m: b2m.c ../src/config.h $(CC) ${CFLAGS} b2m.c $(LOADLIBES) -o b2m movemail: movemail.c ../src/config.h $(CC) ${CFLAGS} movemail.c $(LOADLIBES) -o movemailcvtmail: cvtmail.c $(CC) ${CFLAGS} cvtmail.c $(LOADLIBES) -o cvtmailfakemail: fakemail.c ../src/config.h $(CC) ${CFLAGS} fakemail.c $(LOADLIBES) -o fakemailyow: yow.c ../src/paths.h $(CC) ${CFLAGS} yow.c $(LOADLIBES) -o yowenv: env.c ../src/config.h $(CC) -DEMACS ${CFLAGS} env.c $(LOADLIBES) -o envemacsserver: emacsserver.c ../src/config.h $(CC) ${CFLAGS} emacsserver.c $(LOADLIBES) -o emacsserveremacsclient: emacsclient.c ../src/config.h $(CC) ${CFLAGS} emacsclient.c $(LOADLIBES) -o emacsclienthexl: hexl.c $(CC) ${CFLAGS} hexl.c $(LOADLIBES) -o hexltimer: getdate.o timer.o $(CC) $(CFLAGS) getdate.o timer.o -o timer# These are NOT included in INSTALLABLES or UTILITIES.# See ../src/ymakefile.emacstool: emacstool.c $(CC) emacstool.c -o emacstool ${CFLAGS} \ -lsuntool -lsunwindow -lpixrect $(LOADLIBES)# For SUN Japanese Language Environmentnemacstool: emacstool.c $(CC) -o nemacstool -DJLE ${CFLAGS} emacstool.c \ -lsuntool -lmle -lsunwindow -lpixrect $(LOADLIBES)xvetool: emacstool.c $(CC) -o xvetool -DXVIEW ${CFLAGS} emacstool.c \ -lxview -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \ $(LOADLIBES)xveterm: emacstool.c $(CC) -o xveterm -DXVIEW -DTTERM ${CFLAGS} emacstool.c \ -lxview -lolgx -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \ $(LOADLIBES)aixcc: aixcc.c $(CC) $(CFLAGS) -o aixcc aixcc.caixcc.c: aixcc.lex lex aixcc.lex mv lex.yy.c aixcc.c