|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: M T
Length: 11995 (0x2edb)
Types: TextFile
Names: »MAKEFILE«
└─⟦5f3412b64⟧ Bits:30000745 8mm tape, Rational 1000, ENVIRONMENT 12_6_5 TOOLS
└─⟦91c658230⟧ »DATA«
└─⟦5d656759a⟧
└─⟦this⟧
#==============================================================================
# Makefile - Use this to generate and/or install an executable version
# of the Rational X Interface program; RXI.
#
# Regeneration and Installation of RXI from sources :
#
# Unix> make <what>
#
# <what> is one of:
#
# install - Installs just the rxi executables and data files.
# install.man - Installs just the rxi man page.
# install.terminfo - Installs just the rxi terminfo data.
# install.fonts - Installs just the fonts that rxi needs
# install.all - Does install, install.man, install.terminfo, and
# install.fonts.
#
# relink - Relinks the rxi executables with local workstation
# libraries (perhaps cause the use of shared
# libraries, a desirable situation.)
# clean - "Cleans" the directory so that you can rebuild
# rxi from sources.
# all - Creates all rxi executables (from sources if
# necessary, do this after a "make clean").
# install.fonts.fallback- If the normal install.fonts process fails (some
# important system program is missing for instance)
# then this can be used to attempt to install the
# fonts using programs supplied by Rational.
#
#==============================================================================
#---Generated programs/fonts/etc. are installed into these directories.
# You may want to change some or all of these directory specifications.
#
# BINDIR - where rxi executables will reside; eg. /usr/bin
# HPBINDIR - where the various HP X Windows executables currently
# reside; eg. /usr/bin
# FONTDIR - where compiled fonts reside; eg. /usr/lib/X11/fonts
# MANDIR - the man page directory for the rxi man page
# XAPPLOADDIR - where application defaults files reside
# FONTSRC - where uncompiled fonts reside
#==============================================================================
#---Generated items are installed into these directories.
DESTDIR =
BINDIR = $(DESTDIR)/usr/bin/X11
HPBINDIR = $(DESTDIR)/usr/bin/X11
FONTDIR = $(DESTDIR)/usr/lib/X11/fonts/misc
MANDIR = $(DESTDIR)/usr/man/man1.Z
XAPPLOADDIR = $(DESTDIR)/usr/lib/X11/app-defaults
#---Change this if you change MANDIR. A MANDIR of /usr/man/man2.Z implies a
# file name of rxi.2, etc.
MANFILE = rxi.1
#==============================================================================
# You should not need to edit anything below this point.
#==============================================================================
CC = cc
CP = cp
INSTALL = install
LD = ld
MV = mv
RM = rm -f
SHELL = /bin/sh
#---These are passed to all normal make commands.
ALLMAKES = BINDIR="$(BINDIR)" \
FONTDIR="$(FONTDIR)" \
MANDIR="$(MANDIR)" \
XAPPLOADDIR="$(XAPPLOADDIR)" \
CCFLAGS="$(CCFLAGS)" \
DEFINES="$(DEFINES)"
#---These are passed to all recursive make commands.
RECURSIVEMAKES = $(ALLMAKES) \
INCLUDES="$(INCLUDES)" \
LDFLAGS="$(LDFLAGS)" \
LIBDIRS="$(LIBDIRS)"
RECURSIVEMAKE = make $(RECURSIVEMAKES) $(MFLAGS)
#---These are passed to all SUBDIR make commands.
SUBDIRMAKES = $(ALLMAKES) \
INCLUDES="-I.. $(INCLUDES)" \
LDFLAGS="$(LDFLAGS)" \
LIBDIRS="$(LIBDIRS)"
SUBDIRMAKE = make $(SUBDIRMAKES) $(MFLAGS)
#---These are passed to all make commands done for Rational maintenance.
MAINTINCLUDES =
MAINTMAKES = $(ALLMAKES) \
INCLUDES="$(INCLUDES) $(MAINTINCLUDES)" \
LDFLAGS="" \
LIBDIRS=""
MAINTMAKE = make $(MAINTMAKES) $(MFLAGS)
#==============================================================================
INSTMANFLAGS = 0444
INSTDEFFLAGS = 0444
INSTAPPFLAGS = 0755
#---These macros are defined on the make command line or not at all.
CCFLAGS =
DEFINES =
INCLUDES =
LDFLAGS =
LIBDIRS =
#---These macros are redefined on the make command line if some special effect
# is desirec.
OPTIMIZE = -O -W c,-Ns5000
#---These macros are (presumably) never overridded by the command line.
intCCFLAGS = $(OPTIMIZE) $(intDEFINES) $(intINCLUDES)
intDEFINES = -DUTMP -DSYSV $(DEFINES)
intINCLUDES = $(INCLUDES) -I.
intLDFLAGS = $(LDFLAGS) $(intLIBDIRS)
intLIBDIRS = $(LIBDIRS)
.c.o:
$(CC) $(intCCFLAGS) -c $*.c
XLIB = -lX11
XMULIB = Xmu/libXmu.a
XTOOLLIB = Xt/libXt.a
XAWLIB = Xaw/libXaw.a
RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a \
.emacs_* tags TAGS make.log MakeOut *.fb *.tmp
OBJS1 = main.o input.o charproc.o cursor.o util.o tabs.o \
screen.o scrollbar.o button.o misc.o \
VTPrsTbl.o data.o menu.o \
RMForm.o ratmenu.o RMShell.o RMLabel.o RMSub.o \
RMCommand.o
PROGRAMS = rxi RXI.tmp RXI.tmp2 version.info rxi.man
#==============================================================================
# Compilation/Generation
#==============================================================================
X11/DidCopy:
cp Xt/*.h X11
cp Xaw/*.h X11
cp Xmu/*.h X11
cp /dev/null X11/DidCopy
all:: X11/DidCopy
cd Xt ; $(SUBDIRMAKE) all
cd Xaw ; $(SUBDIRMAKE) all
cd Xmu ; $(SUBDIRMAKE) all
$(RECURSIVEMAKE) all-programs
Xt/libXt.a: X11/DidCopy
cd Xt ; $(SUBDIRMAKE) all
Xmu/libXmu.a: X11/DidCopy
cd Xmu ; $(SUBDIRMAKE) all
Xaw/libXaw.a: X11/DidCopy
cd Xaw ; $(SUBDIRMAKE) all
all-programs: $(PROGRAMS)
main.o: $(XAWLIB) $(XTOOLLIB) $(XMULIB) X11/DidCopy
rxi: $(OBJS1) $(XAWLIB) $(XTOOLLIB) $(XMULIB) X11/DidCopy
$(RM) $@
$(CC) -o $@ $(intLDFLAGS) $(OBJS1) \
$(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) -ltermcap
relink::
$(RM) $(PROGRAMS)
for pgm in $(PROGRAMS) ; do \
$(RECURSIVEMAKE) $$pgm ; \
done
TMPL = sed -e 's=@BINDIR@='$(BINDIR)'=g' -e 's=@APPDEF@='$(XAPPLOADDIR)'=g'
RXI_ENV = $(XAPPLOADDIR)/RXI_Env_Menu
RXI.tmp: RXI.Xdefaults Makefile version.info
rm -f RXI.tmp
@(echo 'BEGIN { print "BEGIN {"; }' ; \
echo '/#define *defGeometry/ { print "GEO = " $$3 ";" ; }' ; \
echo '/#define *defRV/ { print " RCG = " $$3 ";" ; }' ; \
echo '{ next; }' ; \
echo 'END { print "}"; }' ; \
) > awk.tmp
awk -f awk.tmp rcg.h > awk2.tmp
@(echo '/\*recognition:[ ]*<.*>/ ' \
'{ print $$1 " " RCG ; next ;}' ; \
echo '/\*vt100.geometry:[ ]*<.*>/ ' \
'{ print $$1 " " GEO ; next; }' ; \
echo '/\*menu.envMenuFile:[ ]*<.*>/ ' \
'{ print $$1 " '"$(RXI_ENV)"'" ; next;}' ; \
echo '{ print; }' ; \
) >> awk2.tmp
awk '{ print "# " $$0; }' version.info > RXI.tmpx
echo '' >> RXI.tmpx
awk -f awk2.tmp RXI.Xdefaults >> RXI.tmpx
mv RXI.tmpx RXI.tmp
@rm -f awk.tmp awk2.tmp
RXI.tmp2: RXI_Env_Menu Makefile version.info
rm -f RXI.tmp2
awk '{ print "/* " $$0 " */"; }' version.info > RXI.tmpx
echo '' >> RXI.tmpx
cat RXI_Env_Menu >> RXI.tmpx
mv RXI.tmpx RXI.tmp2
rxi.man: rxi.man.tmpl Makefile version.info
rm -f rxi.man rxi.man.Z
@( echo '/@VERSION@/ {' ; \
awk '{ printf "print %c%s%c;", 34, $$0, 34; }' version.info ; \
echo ' next;}' ; \
echo '{ print; }' ; \
) > awk.tmp
awk -f awk.tmp rxi.man.tmpl > rxi.many
d="`awk '/ [12][90][0-9][0-9]/ {print $$0;exit;}' version.info`" ; \
$(TMPL) -e 's=@DATE@='"$$d"'=g' rxi.many > rxi.manx
rm -f awk.tmp rxi.many
mv rxi.manx rxi.man
version.info: rcg.h main.o
@(echo 'BEGIN { GO = 0; }' ; \
echo '/RatRXIVersion\[\]/ { GO = 1; next; }' ; \
echo '/^ *0 *\};/ || (GO == 1 && /#ifdef /) { GO = 0; exit; }' ; \
echo 'GO == 1 { print $$0; }' ; \
) > awk.tmp
awk -f awk.tmp rcg.h | sed -e 's=", *==g' -e 's= *"==g' > version.info
#==============================================================================
# Install Executables
#==============================================================================
install.all: install.dirs install.man install.fonts install.terminfo install
install.terminfo:
tic terminfo
install.man: install.dirs rxi.man
compress rxi.man
$(CP) rxi.man.Z $(MANDIR)/$(MANFILE)
chmod $(INSTMANFLAGS) $(MANDIR)/$(MANFILE)
-man rxi > /dev/null
rm -f rxi.man.Z
install: install.dirs $(PROGRAMS) RXI.tmp RXI.tmp2
if [ -f $(BINDIR)/rxi ] ; then \
mv $(BINDIR)/rxi $(BINDIR)/rxi.old ; \
else \
echo New installation. ; \
fi
$(CP) rxi $(BINDIR)
$(CP) RXI.tmp $(XAPPLOADDIR)/RXI
$(CP) RXI.tmp2 $(XAPPLOADDIR)/RXI_Env_Menu
chmod $(INSTAPPFLAGS) $(BINDIR)/rxi
chmod $(INSTDEFFLAGS) $(XAPPLOADDIR)/RXI
chmod $(INSTDEFFLAGS) $(XAPPLOADDIR)/RXI_Env_Menu
rm -f RXI.tmp RXI.tmp2
install.dirs: $(BINDIR) $(FONTDIR) $(MANDIR) $(XAPPLOADDIR)
$(BINDIR):
mkdir $(BINDIR)
$(FONTDIR):
mkdir $(FONTDIR)
$(MANDIR):
mkdir $(MANDIR)
$(XAPPLOADDIR):
mkdir $(XAPPLOADDIR)
#==============================================================================
# Fonts
#==============================================================================
install.fonts: install.dirs
for bdf in fixed*.bdf ; do \
snf=`echo $$bdf | sed -e 's/\.bdf/.snf/g'` ; \
echo $$bdf '=>' $$snf ; \
$(HPBINDIR)/xfc $$bdf > $$snf ; \
cp $$snf $(FONTDIR) ; \
done
( cd $(FONTDIR) ; $(HPBINDIR)/mkfontdir . )
-$(HPBINDIR)/xset fp rehash
install.fonts.fallback:
cp *.snf $(FONTDIR)
-$(HPBINDIR)/xset fp rehash
#==============================================================================
clean:
$(RM_CMD) \#*
$(RM) $(PROGRAMS) *.snf
$(RM) RXI.tmp* rxi.man version.info rxi-backup* *.snf
$(RM) X11/*
cd Xt ; $(SUBDIRMAKE) clean
cd Xmu ; $(SUBDIRMAKE) clean
cd Xaw ; $(SUBDIRMAKE) clean
#==============================================================================
# RXI Maintenance
#==============================================================================
maint:
$(MAINTMAKE) all
backup.fonts:
for bdf in fixed*.bdf ; do \
snf=`echo $$bdf | sed -e 's/\.bdf/.snf/g'` ; \
echo $$bdf '=>' $$snf ; \
$(HPBINDIR)/xfc $$bdf > $$snf ; \
done
backup.relink:
$(MAINTMAKE) relink
backup: backup.fonts backup.relink
sed -e 's/\(#define *[a-zA-Z_0-9]* *\)1/\10/g' RXI_Env_Menu > foo
mv foo RXI_Env_Menu
rm -f rxi-backup version.info RXI.Tmp RXI.Tmp2
-chmod ug+rw *
chmod ug+rw */*
tar cflv - . > ../rxi-backup$$$$ ; \
mv ../rxi-backup$$$$ ./rxi-backup
restore: rxi-backup
tar xf ./rxi-backup
for hfile in *.hh ; do \
mv $$hfile `echo $$hfile | sed -e 's/\.hh/.h/g'` ; \
done
sleep 2
touch *.o
sleep 2
touch $(PROGRAMS)
rm rxi-backup
deinstall:
rm -f $(BINDIR)/rxi
rm -f $(XAPPLOADDIR)/RXI*
rm -f $(FONTDIR)/fixed{-r,-b,wr,wb}-{11,12,13,14,15,16}.snf
( cd $(FONTDIR) ; \
$(OPENWIN)/bin/bldfamily ) | tee bldfamily.log | fgrep fixed
-echo /setdefaultfontpath exit | $(OPENWIN)/bin/psh
#==============================================================================
# dependencies generated by makedepend
# DO NOT DELETE
#==============================================================================
button.o: ptyx.h data.h error.h menu.h ratmenu.h
charproc.o: ptyx.h VTparse.h data.h error.h main.h menu.h ratmenu.h rcg.h
cursor.o: ptyx.h
data.o: ptyx.h data.h
input.o: ptyx.h data.h ratmenu.h
main.o: ptyx.h data.h error.h main.h rcg.h
menu.o: menu.h ptyx.h data.h
misc.o: ptyx.h data.h error.h gray.ic wait.ic waitmask.ic ratmenu.h
screen.o: ptyx.h error.h
scrollbar.o:ptyx.h data.h error.h
tabs.o: ptyx.h
util.o: ptyx.h data.h error.h
VTPrsTbl.o: VTparse.h
RmForm.o: ratmenu.h RMLabelP.h RMLabel.h RMSubP.h RMSub.h RMCommandP.h \
RMCommand.h RMFormP.h RMForm.h
ratmenu.o: ratmenu.h RMShellP.h RMShell.h RMLabelP.h RMLabel.h RMSubP.h \
RMSub.h ptyx.h data.h menu.h
RMShell.o: ratmenu.h RMShellP.h RMShell.h
RMLabel.o: RMLabelP.h RMLabel.h
RMSub.o: RMSubP.h RMSub.h
RMCommand.o:RMCommandP.h RMCommand.h RMCommandI.h