|
|
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: I T
Length: 9712 (0x25f0)
Types: TextFile
Names: »Imakefile«
└─⟦5f3412b64⟧ Bits:30000745 8mm tape, Rational 1000, ENVIRONMENT 12_6_5 TOOLS
└─⟦91c658230⟧ »DATA«
└─⟦5d656759a⟧
└─⟦50f09e4e4⟧
└─⟦this⟧ »./Imakefile«
└─⟦5f3412b64⟧ Bits:30000745 8mm tape, Rational 1000, ENVIRONMENT 12_6_5 TOOLS
└─⟦91c658230⟧ »DATA«
└─⟦5d656759a⟧
└─⟦610eb0a19⟧
└─⟦this⟧ »./Imakefile«
└─⟦5f3412b64⟧ Bits:30000745 8mm tape, Rational 1000, ENVIRONMENT 12_6_5 TOOLS
└─⟦91c658230⟧ »DATA«
└─⟦5d656759a⟧
└─⟦d97085656⟧
└─⟦this⟧ »./Imakefile«
#==============================================================================
# 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.fonts - Installs just the fonts that rxi needs
# install.all - Does install, install.man, 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.source- Installs the rxi font sources into the system's
# font source area.
# 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
# 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
#==============================================================================
#ifdef BandAidCompiler
#include BandAidCompiler
#endif
#define IHaveSpecialMakefileTarget
BuildMakefileTarget(Imakefile,-DUseInstalled)
/*
* The configuration parameter GettyProgramName may be found in the
* appropriate .macros in the directory $(TOP)/util/imake.includes/.
*/
#if defined(SunArchitecture) && SunOSPlatform && OSMajorVersion >= 4
#define GettyProgram '-DGETTY_EXE="/usr/etc/getty"'
#else
#define GettyProgram /* as nothing */
#endif
/* add -DWTMP and -DLASTLOG if you want them */
DEFINES = -DUTMP GettyProgram
SRCS1 = main.c input.c charproc.c cursor.c util.c tabs.c \
screen.c scrollbar.c button.c misc.c \
VTPrsTbl.c data.c menu.c \
RMForm.c ratmenu.c RMShell.c RMLabel.c RMSub.c \
RMCommand.c
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
SRCS2 = xsvrrunning.c
OBJS2 = xsvrrunning.o
PROGRAMS = rxi xsvrrunning RXI.tmp RXI.tmp2 version.info
INSTALLFLAGS = $(INSTUIDFLAGS)
INCLUDES = -I$(TOOLKITSRC) -I$(AWIDGETSRC) -I$(TOP) $(BLOCKER)
MAKEMACRO = BINDIR='$(BINDIR)' \
FONTDIR='$(FONTDIR)' \
FONTSRC='$(FONTSRC)' \
MANDIR='$(MANDIR)' \
XAPPLOADDIR='$(XAPPLOADDIR)'
MAKE = make $(MAKEMACRO) $(MFLAGS)
MAKENORMAL = 'CC=$(CC)'
MAKESTATIC = 'CC=$(CC) -Bstatic'
#==============================================================================
# Compilation/Generation
#==============================================================================
ComplexProgramTarget_1(rxi,Xaw/libXaw.a Xmu/libXmu.a $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB),-ltermcap)
SingleProgramTarget(xsvrrunning,$(OBJS2),, $(XLIB) -lc)
InstallProgramWithFlags(xsvrrunning,$(BINDIR),)
X11/DoneCopy:
cd Xmu ; cp *.h ../X11
cd Xaw ; cp *.h ../X11
cp /dev/null X11/DoneCopy
main.o: X11/DoneCopy Xaw/libXaw.a Xmu/libXmu.a
clean::
cd X11 ; rm -f *
cd Xmu ; make clean
cd Xaw ; make clean
Xmu/libXmu.a: X11/DoneCopy
cd Xmu ; \
$(MAKE) INCLUDES="-I.. -I`(cd .. ; cd $(TOP) ; pwd)` $(INCLUDES)" all
Xaw/libXaw.a: X11/DoneCopy
cd Xaw ; \
$(MAKE) INCLUDES="-I.. -I`(cd .. ; cd $(TOP) ; pwd)` $(INCLUDES)" all
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
@( 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
rx: rx.tmpl Makefile
$(TMPL) rx.tmpl > rx
rxsun3: rxsun3.tmpl Makefile
$(TMPL) rxsun3.tmpl > rxsun3
rxsun4: rxsun4.tmpl Makefile
$(TMPL) rxsun4.tmpl > rxsun4
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
backup.relink:
$(MAKE) $(MAKESTATIC) relink
clean::
$(RM) RXI.tmp* rxi.man rx rxsun4 rxsun3 version.info rxi-backup*
#==============================================================================
# Install Executables
#==============================================================================
install.all: install.man install.fonts install
install:: $(PROGRAMS) $(BINDIR) $(XAPPLOADDIR) \
rx rxrc rxsun3 rxsun4 RXI.tmp RXI.tmp2 \
XSun3-xmodmap XSun4-xmodmap
chmod +x rxi xsvrrunning rx rxrc rxsun3 rxsun4
if [ -f $(BINDIR)/rxi ] ; then \
mv $(BINDIR)/rxi $(BINDIR)/rxi.old ; \
else \
echo New installation. ; \
fi
$(INSTALL) -c -m 0444 RXI.tmp $(XAPPLOADDIR)/RXI
$(INSTALL) -c -m 0444 RXI.tmp2 $(XAPPLOADDIR)/RXI_Env_Menu
$(INSTALL) -c -m 0755 rx $(BINDIR)/rx
$(INSTALL) -c -m 0755 rxsun3 $(BINDIR)/rxsun3
$(INSTALL) -c -m 0755 rxsun4 $(BINDIR)/rxsun4
$(INSTALL) -c -m 0755 rxrc $(XAPPLOADDIR)/rxrc
$(INSTALL) -c -m 0755 XSun3-xmodmap $(XAPPLOADDIR)/XSun3-xmodmap
$(INSTALL) -c -m 0755 XSun4-xmodmap $(XAPPLOADDIR)/XSun4-xmodmap
rm -f RXI.tmp rx rxsun3 rxsun4
$(BINDIR):
mkdir -p $(BINDIR)
$(XAPPLOADDIR):
mkdir -p $(XAPPLOADDIR)
#==============================================================================
# Fonts
#==============================================================================
install.fonts.source:
cp fixed-screen-*.bdf $(FONTSRC)/bdf/misc
cp bdf.Imakfeile $(FONTSRC)/bdf/misc
@echo -n '=================================================='
@echo '========================='
@echo -n Please cd $(FONTSRC)/bdf/misc and add fixed-screen-'*'.bdf to
@echo the Imakefile.
@echo -n and then do '"make Makefile"' and '"make install"'. See
@echo bdf.Imakefile for
@echo example Imakefile entries for these fonts.
@echo -n '=================================================='
@echo '========================='
install.fonts:
for bdf in fixed-screen-*.bdf ; do \
snf=`echo $$bdf | sed 's/\.bdf/.snf/g'` ; \
echo $$bdf '=>' $(FONTDIR)/misc/$$snf ; \
$(FC) $(FCFLAGS) $$bdf > $(FONTDIR)/misc/$$snf ; \
done
( cd $(FONTDIR)/misc ; \
mv fonts.dir fonts.dir.`date | sed -e 's/ /-/g'` ; \
$(MKFONTDIR) . )
-xset fp rehash
backup.fonts:
cp $(BINDIR)/bdftosnf bdftosnf.exe
cp $(BINDIR)/mkfontdir mkfontdir.exe
for bdf in fixed-screen-*.bdf ; do \
snf=`echo $$bdf | sed 's/\.bdf/.snf/g` ; \
echo $$bdf ' -> ' $$snf ; \
$(FC) $$bdf > $$snf ; \
done
install.fonts.fallback:
mv bdftosnf.exe bnftosnf
mv mkfontdir.exe mkfontdir
$(MAKE) $(MAKENORMAL) "MKFONTDIR=`pwd`/$(MKFONTDIR)" install.fonts
mv bdftosnf bnftosnf.exe
mv mkfontdir mkfontdir.exe
#==============================================================================
# Bug Fixes - fixes a bug in make where "make Makefile" is always "up to date".
#==============================================================================
MakeBug:
cp Makefile MakeBug.bak
make -f MakeBug.bak Makefile
rm MakeBug.bak
#==============================================================================
# RXI Maintenance
#==============================================================================
deinstall:
rm -f $(BINDIR)/rxi
rm -f $(XAPPLOADDIR)/RXI*
rm -f $(BINDIR)/rx $(BINDIR)/rxrc $(BINDIR)/rxsun3 $(BINDIR)/rxsun4
rm -f $(XAPPLOADDIR)/XSun3-xmodmap $(XAPPLOADDIR)/XSun4-xmodmap
rm -f $(FONTDIR)/misc/fixed-screen-{r,b,wr,wb}-{11,12,13,14,15,16}.snf
( cd $(FONTDIR)/misc ; $(MKFONTDIR) . )
-xset fp rehash