DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: M T

⟦d6671a185⟧ TextFile

    Length: 4371 (0x1113)
    Types: TextFile
    Names: »Makefile.NEWS«

Derivation

└─⟦060c9c824⟧ Bits:30007080 DKUUG TeX 2/12/89
    └─⟦this⟧ »./tex82/Unsupported/FromJapan/mf84.support/mf84/MFconfig/mf84/Makefile.NEWS« 
└─⟦52210d11f⟧ Bits:30007239 EUUGD2: TeX 3 1992-12
    └─⟦beba6c409⟧ »unix3.0/Unsupported.tar.Z« 
        └─⟦25c524ae4⟧ 
            └─⟦this⟧ »Unsupported/FromJapan/mf84.support/mf84/MFconfig/mf84/Makefile.NEWS« 

TextFile

# $Header: Makefile.NEWS 1.0 87/07/04 19:47:00 john Released $

#
# Makefile for NEWS Berkeley UNIX version of MetaFont
#

# Configuration constants: defined by initial configuration setup
#	(since this makefile is generated, changes to it
#	 may disappear if the MF system is re-configured)
VERSION	= DIST
MACHINE	= NEWS

#
# local directory organization
#
BINDIR		= /usr/local
MF84DIR		= /usr/lib/mf84
TEX82DIR	= /usr/lib/tex82
TEXSRCDIR	= ../tex82
MFLIBDIR	= MFlib
CONFIGDIR	= MFconfig

#
# utilities needed to generate and/or configure MF
#
FIXOTHERS	= pxp -O -f
TANGLE		= tangle
DISTCHANGEFILE	= dist_inimf.ch

#
# compiler options -- the short "AF", "PF", etc. entries are to make
#			it easy to supplement the makefile defaults
#			where needed (i.e. to put compiler temporary
#			files in /usr/tmp, do "make PF='-t /usr/tmp'")
#
OPTIM	=

AS	= as
AF	=
AFLAGS	= -J ${AF}

PC	= pc
PF	=
PFLAGS	= -w -J ${PF} ${OPTIM}

LF	=
LDFLAGS	= -w ${LF}		# really for pc3

#
# libraries needed for linking MF
#
MFLIB		= ${MFLIBDIR}/mflib.a
MFLIBPROF	= ${MFLIBDIR}/mflib_p.a
WINLIBS	= -lX
WINLIBSPROF	= -lX_p
LIBS		= 
LIBSPROF	= 

#
# RCS checkout flags (for make systems that know about RCS)
#
COFLAGS	= -r${VERSION}

#-------------------- End of configuration definitions -------------------#

default:	inimf virmf

profiled:	inimf_p virmf_p

all:		inimf virmf trapmf

install:	default
	mv inimf virmf ${BINDIR}/.
	mv inimf.pool ${MF84DIR}/mf.pool

.SUFFIXES:
.SUFFIXES:	.web .web,v .ch .ch,v
.SUFFIXES:	_p.o .o _p.s .s _p.p .p _p.c .c 

#
#   INIMF: The slow version of MetaFont which is able to make .base files
#

INIOBJS		= inimf.o
INIOBJSPROF	= inimf_p.o

inimf.ch: ${DISTCHANGEFILE} dist_to_ini ${MAKEFILE}
	dist_to_ini ${MACHINE} ${DISTCHANGEFILE} inimf.ch

# --- NEWS standard version

inimf: ${INIOBJS} ${MFLIB}
	${PC} ${LDFLAGS} -o inimf ${INIOBJS} ${MFLIB} ${WINLIBS} ${LIBS}

inimf.o: inimf.s

inimf.s: inimf.p mf_ext.h

inimf.p: mf.web inimf.ch
	${TANGLE} mf.web inimf.ch
	${FIXOTHERS} mf.p > inimf.p
	mv mf.pool inimf.pool

# --- NEWS Profiled version (using gprof)

inimf_p: ${INIOBJSPROF} ${MFLIBPROF}
	${PC} ${LDFLAGS} -pg -o inimf_p ${INIOBJSPROF} \
					${MFLIBPROF} ${WINLIBSPROF} ${LIBSPROF}

inimf_p.o: inimf_p.s

inimf_p.s: inimf.p mf_ext.h


#
#   VIRMF: The fast version of MetaFont which relies on .base files to perform
#           the necessary initiations.
#

VIROBJS		= virmf.o
VIROBJSPROF	= virmf_p.o

virmf.ch: ${DISTCHANGEFILE} dist_to_vir ${MAKEFILE}
	dist_to_vir ${MACHINE} ${DISTCHANGEFILE} virmf.ch

virmf.p: mf.web virmf.ch
	${TANGLE} mf.web virmf.ch
	${FIXOTHERS} mf.p > virmf.p

# --- NEWS standard version

virmf: ${VIROBJS} ${MFLIB}
	${PC} ${LDFLAGS} -o virmf ${VIROBJS} ${MFLIB} ${WINLIBS} ${LIBS}

virmf.o: virmf.s

virmf.s: virmf.p mf_ext.h mf_window.h

# --- NEWS Profiled version (using gprof)

virmf_p: ${VIROBJSPROF} ${MFLIBPROF}
	${PC} ${LDFLAGS} -pg -o virmf_p ${VIROBJSPROF} \
					${MFLIBPROF} ${WINLIBSPROF} ${LIBSPROF}

virmf_p.o: virmf_p.s

virmf_p.s: virmf.p mf_ext.h

#
#   TRAPMF: The version of MetaFont with the constants set to the special values
#		needed when running the infamous and nefarious ``trap'' test.
#

TRAPOBJS	= trapmf.o

trapmf.ch: ${DISTCHANGEFILE} dist_to_trap ${MAKEFILE}
	dist_to_trap ${MACHINE} ${DISTCHANGEFILE} trapmf.ch

trapmf.p: mf.web trapmf.ch
	${TANGLE} mf.web trapmf.ch
	${FIXOTHERS} mf.p > trapmf.p
	mv mf.pool trapmf.pool

# --- NEWS standard version

trapmf: ${TRAPOBJS} ${MFLIB}
	${PC} ${LDFLAGS} -o trapmf ${TRAPOBJS} ${MFLIB} ${WINLIBS} ${LIBS}

trapmf.o: trapmf.s

trapmf.s: trapmf.p mf_ext.h

#
# Implicit rules needed to compile host-specific versions
#

# --- NEWS Specific rules

.p.o:
	${PC} ${PFLAGS} -c $< 

.p.s:
	${PC} ${PFLAGS} -S $<

.p_p.o:
	${PC} -pg ${PFLAGS} -c $< ; mv $*.o $*_p.o

.p_p.s:
	${PC} -pg ${PFLAGS} -S $< ; mv $*.s $*_p.s

_p.s_p.o:
	${AS} ${AFLAGS} -o $*_p.o $<

.s.o:
	${AS} ${AFLAGS} -o $*.o $<


#
#   Miscellaneous stuff -- mflib.a, utilities
#

${MFLIB}: always
	@cd ${MFLIBDIR}; make mflib.a 

${MFLIBPROF}: always
	cd ${MFLIBDIR}; make mflib_p.a

always:

clean:
	rm -f inimf*.o virmf*.o trapmf*.o
	rm -f inimf*.s virmf*.s trapmf*.s
	rm -f inimf*.p virmf*.p trapmf*.p mf*.p
	rm -f inimf*.ch virmf*.ch trapmf*.ch
	rm -f inimf.pool virmf.pool core

cleanall:
	mfhome=`pwd`; for dir in . MFlib MFutils; do \
		cd $$mfhome/$$dir; make clean; done