diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/.mkdirhier.sh,l | 1 | ||||
-rw-r--r-- | config/Imake.rules | 267 | ||||
-rw-r--r-- | config/Imake.tmpl | 405 | ||||
-rwxr-xr-x | config/mkdirhier.sh | 24 | ||||
-rw-r--r-- | config/site.def | 178 | ||||
-rw-r--r-- | config/zephyr.rules | 102 |
6 files changed, 0 insertions, 977 deletions
diff --git a/config/.mkdirhier.sh,l b/config/.mkdirhier.sh,l deleted file mode 100644 index da447b3..0000000 --- a/config/.mkdirhier.sh,l +++ /dev/null @@ -1 +0,0 @@ -../ATHENA/config/mkdirhier.sh
\ No newline at end of file diff --git a/config/Imake.rules b/config/Imake.rules deleted file mode 100644 index 2716eaf..0000000 --- a/config/Imake.rules +++ /dev/null @@ -1,267 +0,0 @@ -/* - * The following macros are supported - * ---------------------------------- - * create_dir(dir) - Create a directory hierarchy - * AnsiCC() - Specify desire for ANSI compiling - * ProfiledObjectRule() - Build profiled objects/libraries - * SpecialObject(obj,depends,options) - Build a special object - * - * cmd_table(tbl) - build a command table module (tbl.ct) - * error_table(tbl) - build an error table module (tbl.et) - * - * SimpleProgram(prog,objs,libs,dest) - Build/install a program (simple) - * build_program(prog,objs,ldflags,libs)- Build a program (complex) - * install_program(prog,instflags,dest) - Install a program (complex) - * install_script(prog,instflags,dest) - Install a script (complex) - * - * SimpleLibrary(base,objs,destdir) - Build/install a library (simple) - * build_library(base,objs) - Build a library - * install_library(base,dir) - Install a library - * - * SimpleLint(base,srcs) - Build/install a lint library - * - * install_man(src,name) - Install man page - * install_man_links(name,links) - Install man page links - * - * install_file(src,dest) - Install file - * - * foreach_subdirs(name,subdirs) - Make 'name' in subdirs - * do_subdirs_imakefile(subdirs) - Make Makefile in subdirs (Athena) - * do_subdirs_xmakefile(subdirs) - Make Makefile in subdirs (X-style) - * do_subdirs(subdirs) - Make common instances in subdirs - */ - -#define concat2(a,b) a/**/b -#define concat3(a,b,c) a/**/b/**/c - -#define create_dir(dir) @@\ -install_dirs:: $(DESTDIR)dir @@\ -$(DESTDIR)dir:: @@\ - $(MKDIRHIER) $(DESTDIR)dir - -#define build_program(prog,objs,ldflags,libs) @@\ -all:: prog @@\ -prog:: objs @@\ - $(LD) ldflags $(LDFLAGS) -o prog objs $(LDPATH) libs $(LDLIBS) @@\ -clean:: @@\ - $(RM) prog @@\ - -#ifndef static_program -#define static_program(prog,objs,ldflags,libs) @@\ -build_program(prog,objs,ldflags,libs) -#endif - -#define install_program(prog,instflags,dest) @@\ -install:: @@\ - $(INSTALL) InstPgmFlags instflags prog $(DESTDIR)dest - -#define install_script(prog,instflags,dest) @@\ -install:: @@\ - $(INSTALL) InstScriptFlags instflags prog $(DESTDIR)dest - -#define install_file(src,dest) @@\ -install:: @@\ - $(INSTALL) -m 0444 src $(DESTDIR)dest - -#define SimpleProgram(prog,objs,libs,dest) @@\ -build_program(prog,objs,,libs) @@\ -install_program(prog,,dest) - -#define SpecialObject(obj,depends,options) @@\ -obj: depends @@\ - $(RM) $@ @@\ - $(CC) -c $(CFLAGS) options $*.c - -#define install_man(src,name) @@\ -install.man:: @@\ - base=`expr name \: '\(.*\)\.'`; \ @@\ - ext=`expr name \: '.*\.\(.*\)'`; \ @@\ - sdir=$(DESTDIR)$(ATHMANDIR)/man`expr name \: '.*\.\(.\)'`; \ @@\ - $(INSTALL) -m 0444 src $${sdir}/`basename name` - -#define install_man_links(name,links) @@\ -name.so: @@\ - $(RM) name.so @@\ - sdir=man`expr name \: '.*\.\(.\)'`; \ @@\ - echo ".so $${sdir}/name" > name.so @@\ -clean:: @@\ - $(RM) name.so @@\ -install.man:: name.so @@\ - for i in links; do \ @@\ - sdir=$(DESTDIR)$(ATHMANDIR)/man`expr $$i \: '.*\.\(.\)'`;\ @@\ - $(INSTALL) -m 0444 name.so $${sdir}/$$i;\ @@\ - done - -#ifdef NOPROF -#define ProfiledObjectRule() -#else -#define ProfiledObjectRule() @@\ -.c.o: @@\ - $(RM) $@ profiled/$@ @@\ - $(CC) ProfCcFlags -c $(CFLAGS) $*.c @@\ - mv $*.o profiled/$*.o @@\ - $(CC) -c $(CFLAGS) $*.c @@\ -all:: profiled all-prof @@\ -install:: inst-prof @@\ -profiled: @@\ - -mkdir $@ -#endif - -#define AnsiCC() @@\ -CC=AnsiCcCmd @@\ -LD=AnsiLdCmd - -#define error_table(tbl) @@\ -depend:: concat2(tbl,.c) concat2(tbl,.h) @@\ -concat2(tbl,.o): concat2(tbl,.c) @@\ -concat2(tbl,.c) concat2(tbl,.h): concat2(tbl,.et) @@\ - $(RM) concat2(tbl,.c) concat2(tbl,.h) @@\ - $(ETCMD) concat2(tbl,.et) @@\ -clean:: @@\ - $(RM) concat2(tbl,.c) concat2(tbl,.h) - -#define cmd_table(tbl) @@\ -depend:: concat2(tbl,.c) @@\ -concat2(tbl,.o): concat2(tbl,.c) @@\ -concat2(tbl,.c): concat2(tbl,.ct) @@\ - $(RM) concat2(tbl,.c) concat2(tbl,.h) @@\ - $(SSCMD) concat2(tbl,.ct) @@\ -clean:: @@\ - $(RM) concat2(tbl,.c) - -#define build_library(base,objs) @@\ -all:: concat3(lib,base,.a) @@\ -concat3(lib,base,.a):: objs @@\ - ar cru concat3(lib,base,.a) objs @@\ - $(RANLIB) concat3(lib,base,.a) @@\ -all-prof:: concat3(lib,base,_p.a) @@\ -concat3(lib,base,_p.a): objs @@\ - cd profiled; ar cru concat3(../lib,base,_p.a) objs @@\ - $(RANLIB) concat3(lib,base,_p.a) - -#define install_library(base,dir) @@\ -install:: @@\ - $(RM) concat3($(DESTDIR)dir/lib,base,.a) @@\ - $(INSTALL) -m 0644 concat3(lib,base,.a) $(DESTDIR)dir @@\ - $(RANLIB) concat3($(DESTDIR)dir/lib,base,.a) @@\ -inst-prof:: @@\ - $(RM) concat3($(DESTDIR)dir/lib,base,_p.a) @@\ - $(INSTALL) -m 0644 concat3(lib,base,_p.a) $(DESTDIR)dir @@\ - $(RANLIB) concat3($(DESTDIR)dir/lib,base,_p.a) - -#define SimpleLibrary(base,objs,dir) @@\ -build_library(base,objs) @@\ -install_library(base,dir) - - -#ifdef NOLINT -#define SimpleLint(base,srcs) -#else -#define SimpleLint(base,srcs) @@\ -all:: concat3(llib-l,base,.ln) @@\ -concat3(llib-l,base,.ln):: srcs @@\ - LintCmd $(LINTCFLAG)base LintFlags $(LINTFLAGS) srcs @@\ -install:: @@\ - $(INSTALL) concat3(llib-l,base,.ln) $(DESTDIR)/usr/lib/lint/ @@\ -clean:: @@\ - $(RM) concat3(llib-l,base,.ln) -#endif - -#define makefile_target() @@\ -Makefile:: $(ICONFIGFILES) @@\ - -@if [ -f Makefile ]; then \ @@\ - echo " $(RM) Makefile.bak; mv Makefile Makefile.bak"; \ @@\ - $(RM) Makefile.bak; mv Makefile Makefile.bak; \ @@\ - else exit 0; fi @@\ - $(IMAKE) $(IPROJ) $(IFLAGS) -DNEWTOP=$(TOP) -DNEWCWD=$(CWD) @@\ - @@\ -XMakefile:: @@\ - -@if [ -f Makefile ]; then \ @@\ - echo " $(RM) Makefile.bak; mv Makefile Makefile.bak"; \ @@\ - $(RM) Makefile.bak; mv Makefile Makefile.bak; \ @@\ - else exit 0; fi @@\ - $(IMAKE) $(XIFLAGS) - - -#define foreach_subdirs_flags(name,subdirs,flgs) @@\ -name:: FRC @@\ - @for d in subdirs; \ @@\ - do \ @@\ - (cd $$d; echo "### Making" name "in $(CWD)/$$d"; \ @@\ - make $(MFLAGS) flgs DESTDIR=$(DESTDIR) name; \ @@\ - echo "### Done with $(CWD)/$$d"); \ @@\ - done - -#define do_subdirs_flags(subdirs,flgs) @@\ - foreach_subdirs_flags(all, subdirs, flgs) @@\ - foreach_subdirs_flags(install, subdirs, flgs) @@\ - foreach_subdirs_flags(clean, subdirs, flgs) @@\ - foreach_subdirs_flags(depend, subdirs, flgs) @@\ -subdirs:: FRC @@\ - @(cd $@; echo "### Making" all "in $(CWD)/$@"; \ @@\ - make $(MFLAGS) flgs DESTDIR=$(DESTDIR) all ; \ @@\ - echo "### Done with $(CWD)/$@") - -#define foreach_subdirs(name,subdirs) @@\ - foreach_subdirs_flags(name,subdirs,) - -#define do_subdirs(subdirs) @@\ - do_subdirs_flags(subdirs,) - -#define do_subdirs_imakefile(subdirs) @@\ - foreach_subdirs(install.man, subdirs) @@\ -Makefiles:: Makefile @@\ - @echo "### Making Makefiles in $(CWD)" @@\ - @-for d in subdirs; \ @@\ - do \ @@\ - case "$$d" in \ @@\ - ./?*/?*/?*/?*) newtop=../../../.. ;; \ @@\ - ./?*/?*/?*) newtop=../../.. ;; \ @@\ - ./?*/?*) newtop=../.. ;; \ @@\ - ./?*) newtop=.. ;; \ @@\ - */?*/?*/?*) newtop=../../../.. ;; \ @@\ - */?*/?*) newtop=../../.. ;; \ @@\ - */?*) newtop=../.. ;; \ @@\ - *) newtop=.. ;; \ @@\ - esac; \ @@\ - ( cd $$d; \ @@\ - echo "### Making Makefile in $(CWD)/$$d"; \ @@\ - if [ -f Makefile ]; then \ @@\ - $(RM) Makefile.bak; \ @@\ - mv Makefile Makefile.bak; fi; \ @@\ - make -f $${newtop}/Makefile TOP=$${newtop}/$(TOP) \ @@\ - CWD=$(CWD)/$$d Makefile; \ @@\ - make $(MFLAGS) Makefiles; \ @@\ - echo "### Done with $(CWD)/$$d" ) ; \ @@\ - done - -#define do_subdirs_xmakefile(subdirs) @@\ - foreach_subdirs(install.man,subdirs) @@\ -Makefiles:: Makefile @@\ - @echo "### Making Makefiles in $(CWD)" @@\ - @-for d in subdirs; \ @@\ - do \ @@\ - case "$$d" in \ @@\ - ./?*/?*/?*/?*) newtop=../../../.. ;; \ @@\ - ./?*/?*/?*) newtop=../../.. ;; \ @@\ - ./?*/?*) newtop=../.. ;; \ @@\ - ./?*) newtop=.. ;; \ @@\ - */?*/?*/?*) newtop=../../../.. ;; \ @@\ - */?*/?*) newtop=../../.. ;; \ @@\ - */?*) newtop=../.. ;; \ @@\ - *) newtop=.. ;; \ @@\ - esac; \ @@\ - ( cd $$d; \ @@\ - echo "### Making Makefile in $(CWD)/$$d"; \ @@\ - if [ -f Makefile ]; then \ @@\ - $(RM) Makefile.bak; \ @@\ - mv Makefile Makefile.bak; fi; \ @@\ - make -f $${newtop}/Makefile TOP=$${newtop}/$(TOP) \ @@\ - CWD=$(CWD)/$$d XMakefile; \ @@\ - make $(MFLAGS) Makefiles; \ @@\ - echo "### Done with $(CWD)/$$d" ) ; \ @@\ - done - -#define create_depend(files) @@\ -depend:: files @@\ - makedepend $(CFLAGS) files diff --git a/config/Imake.tmpl b/config/Imake.tmpl deleted file mode 100644 index 0e8a14d..0000000 --- a/config/Imake.tmpl +++ /dev/null @@ -1,405 +0,0 @@ -/* - * Generic Imake Template - * - * Future changes: - * - * o Reorganize the structure to employ a config.Imakefile and reduce - * the complexity of Imake.tmpl. Also, the use of site.def should be - * re-examined. - * - * o Support global project configurations. This can be done by always - * including a Project.tmpl and altering the include path such that - * this is found prior to the minimal one in the global templates. - */ - -#define ATHENA_RULES - -/* - * WARNING - HACK HACK HACK - * To allow xmkmf to work with our setup: set CONFDIR to be TOPDIR/config. - * - * NEWTOP is still set to . since this is being run from the top of the - * developer's project tree. However, TOPDIR is simply the top of the - * Athena source tree, which contains the Imake configuration files. - */ -#ifdef TOPDIR -#define UseInstalled -#define ConfDir TOPDIR/config -#endif - -all:: - -#include <site.def> - -#ifndef ConfDir -#define ConfDir $(TOP)/config -#endif -#ifndef NEWTOP -#define NEWTOP . -#endif -#ifndef NEWCWD -#define NEWCWD . -#endif -#ifndef ALibDir -#define ALibDir $(ATHBASEDIR)/lib -#endif -#ifndef ABinDir -#define ABinDir $(ATHBASEDIR)/bin -#endif -#ifndef AIncDir -#define AIncDir $(ATHBASEDIR)/include -#endif -#ifndef AManDir -#define AManDir $(ATHBASEDIR)/man -#endif -#ifndef AEtcDir -#define AEtcDir $(ATHBASEDIR)/etc -#endif -#ifndef AConfDir -#define AConfDir /etc/athena -#endif -#ifndef ARBinDir -#define ARBinDir /bin/athena -#endif -#ifndef AREtcDir -#define AREtcDir /etc/athena -#endif -#ifndef AthXAppDir -#define AthXAppDir /usr/athena/lib/X11/app-defaults -#endif -#ifndef AthXBitDir -#define AthXBitDir /usr/athena/lib/X11/bitmaps -#endif -#ifndef AthXIncDir -#define AthXIncDir /usr/athena/include -#endif -#ifndef AthXLibDir -#define AthXLibDir /usr/athena/lib -#endif -#ifndef LintCFlag -#define LintCFlag -o -#endif -#ifndef CcCmd -#define CcCmd cc -#endif -#ifndef LdCmd -#define LdCmd cc -#endif -#ifndef AnsiCcCmd -#define AnsiCcCmd cc -#endif -#ifndef AnsiLdCmd -#define AnsiLdCmd cc -#endif -#ifndef AsCmd -#define AsCmd as -#endif -#ifndef RanLibCmd -#define RanLibCmd ranlib -#endif -#ifndef InstPgmFlags -#define InstPgmFlags -s -#endif -#ifndef InstScriptFlags -#define InstScriptFlags -m 755 -#endif -#ifndef RmCmd -#define RmCmd rm -f -#endif -#ifndef CpCmd -#define CpCmd cp -p -#endif -#ifndef CcFlags -#define CcFlags -DPOSIX -#endif -#ifndef CDebugFlags -#define CDebugFlags -O -#endif -#ifndef ProfCcFlags -#define ProfCcFlags -p -#endif -#ifndef LdFlags -#define LdFlags -#endif -#ifndef LdPath -#define LdPath -L$(ATHLIBDIR) -#endif -#ifndef LdLibs -#define LdLibs -#endif -#ifndef LintCmd -#define LintCmd lint -#endif -#ifndef LintFlags -#define LintFlags CcFlags -#endif - -#ifndef ExtraXLibs -#define ExtraXLibs -#endif - -#ifdef UseInstalled -# ifndef InstallCmd -# define InstallCmd install -c -# endif -# ifndef EtCmd -# define EtCmd compile_et -# endif -# ifndef SsCmd -# define SsCmd mk_cmds -# endif -# ifndef EtLibs -# define EtLibs -lcom_err -# endif -# ifndef SsLibs -# define SsLibs -lss -# endif -# ifndef KrbLibs -# define KrbLibs -lkrb -ldes -# endif -# ifndef HesLibs -# define HesLibs -lhesiod -# endif -# ifndef ZephyrLibs -# define ZephyrLibs -lzephyr KrbLibs EtLibs -# endif -# ifndef XLibs -# define XLibs -lX11 -lXext ExtraXLibs -# endif -# ifndef XtLibs -# define XtLibs -lXt XLibs -# endif -# ifndef XawLibs -# define XawLibs -lXaw -lXmu XtLibs -# endif -#else /* !UseInstalled */ -# ifndef InstallCmd -# define InstallCmd $(UTILDIR)install -c -# endif -# ifndef EtCmd -# define EtCmd $(TOP)/athena/athena.lib/et/compile_et -# endif -# ifndef SsCmd -# define SsCmd $(TOP)/athena/athena.lib/ss/mk_cmds -# endif -# ifndef EtLibs -# define EtLibs $(TOP)/athena/athena.lib/et/libcom_err.a -# endif -# ifndef SsLibs -# define SsLibs $(TOP)/athena/athena.lib/ss/libss.a -# endif -# ifndef KrbLibs -# define KrbLibs $(TOP)/athena/athena.lib/kerberos.p10/lib/krb/libkrb.a \ - $(TOP)/athena/athena.lib/kerberos.p10/lib/des/libdes.a -# endif -# ifndef HesLibs -# define HesLibs $(TOP)/athena/athena.lib/hesiod/libhesiod.a -# endif -# ifndef ZephyrLibs -# define ZephyrLibs $(TOP)/athena/athena.lib/zephyr/lib/libzephyr.a \ - KrbLibs EtLibs -# endif -# ifndef XLibs -# define XLibs $(XTOP)/lib/X/libX11.a $(XTOP)/extensions/lib/libXext.a \ - ExtraXLibs -# endif -# ifndef XtLibs -# define XtLibs $(XTOP)/lib/Xt/libXt.a XLibs -# endif -# ifndef XawLibs -# define XawLibs $(XTOP)/lib/Xaw/libXaw.a $(XTOP)/lib/Xmu/libXmu.a XtLibs -# endif -#endif /* UseInstalled */ - - -SHELL=/bin/sh -MAKESHELL=/bin/sh - -TOP = NEWTOP -CWD = NEWCWD -CONFIGSRC = ConfDir -DESTDIR= - -IRULESRC = $(CONFIGSRC) - -#ifdef ProjectTop -PTOP = $(TOP)/ProjectTop -#endif - -#ifdef UseInstalled -IMAKE= imake -IFLAGS= -I$(IRULESRC) $(IFLAGS_SH) $(OTHER_IFLAGS) -DTOPDIR=TOPDIR -XIFLAGS= -I$(ATHXLIBDIR)/X11/config -DUseInstalled -#else -UTILDIR=$(TOP)/util/bin/ -IMAKE= $(UTILDIR)imake -IFLAGS= -I$(IRULESRC) $(IFLAGS_SH) $(OTHER_IFLAGS) -XTOP=$(TOP)/third/common/X11R4 -XIFLAGS= -I$(XTOP)/config -DTOPDIR=$(XTOP) -DCURDIR=$(CWD) -#endif - -ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \ - $(IRULESRC)/site.def Imakefile $(PRULEDEP) -MKDIRHIER= sh $(IRULESRC)/mkdirhier.sh - -ATHVERS = $(IRULESRC)/update.conf - -ATHBASEDIR=/usr/athena - -ATHLIBDIR=ALibDir -ATHBINDIR=ABinDir -ATHINCDIR=AIncDir -ATHETCDIR=AEtcDir -ATHCONFDIR=AConfDir -ATHMANDIR=AManDir -ATHRBINDIR=ARBinDir -ATHRETCDIR=AREtcDir - -/* This should be removed, but too much depends on it */ -ATHNEWDIR=$(ATHBINDIR) - -ATHXAPPDIR=AthXAppDir -ATHXBITDIR=AthXBitDir -ATHXINCDIR=AthXIncDir -ATHXLIBDIR=AthXLibDir - -#ifdef AfsDir -AFSDIR=AfsDir -#endif - -LINTCFLAG=LintCFlag -LINTFLAGS=LintFlags $(DEFINES) -I/usr/athena/include - -INSTALL=InstallCmd -RANLIB=RanLibCmd -CC=CcCmd -LD=LdCmd -AS=AsCmd -RM=RmCmd -CP=CpCmd - -ETCMD=EtCmd -SSCMD=SsCmd - -LIB_ET = EtLibs -LIB_SS = SsLibs -LIB_HES = HesLibs -LIB_KRB = KrbLibs -LIB_ZEPHYR = ZephyrLibs -LIB_X = XLibs -LIB_XT = XtLibs -LIB_XAW = XawLibs - -CDEBUG=CDebugFlags - -CFLAGS=$(CDEBUG) CcFlags $(DEFINES) -I/usr/athena/include -LDFLAGS=LdFlags $(LDDEFS) -LDPATH=LdPath -LDLIBS=LdLibs - -#include "Imake.rules" - -install:: install_dirs -install_dirs:: -install:: -install.man:: - -clean:: -depend:: - -FRC:: - -/**/########################################################################### -/**/# start of Imakefile -/**/########################################################################### - -#ifdef Project -#define InProject -#undef Project -#ifdef ProjectRules -#include ProjectRules -#endif -#endif /* Project */ - -#include INCLUDE_IMAKEFILE - -#if defined(InProject) && !defined(Project) -#define Project -#endif - -/* - * PROJECT DECLARATION - * - * At the top of the project directory, simply include the following: - * - * #define Project - * - * If you also want to declare a set of rules that should be included, - * simply do: - * - * #ifndef ProjectRules - * #define ProjectRules config/extra.rules - * #include ProjectRules - * #endif - * - * at the top of the project tree. - * - * - * This will declare that directory to be the top of the project tree. - * The top of the project tree will be in the include path, so if there - * are additional rules files that are being used by the Imakefiles, you - * can simply do something like: - * - * #include "config/extra.rules" - * - * from any Imakefile in the tree. - * - * The Make variable $(PTOP) is also set to the top of the project tree, - * so you can declare dependencies such as $(PTOP)/lib/libfoo.a. - */ - -#ifdef Project -#ifndef ProjectTop -#define ProjectTop NEWCWD -#endif -#ifdef ProjectRules -PRULES = ProjectRules -PINC = -DProjectRules=\"$(PRULES)\" -DProjectRuleDep=$(PRULES) -#ifdef ProjectRuleDep -PRULEDEP = $(PTOP)/ProjectRuleDep -#endif -#endif -PTOP = $(TOP)/ProjectTop -IPROJ = -DProject -DProjectTop=ProjectTop -I$(PTOP) $(PINC) -#endif - -#ifdef UseSharedLibs -IFLAGS_SH = -DUseSharedLibs -#endif - -makefile_target() - -clean:: - $(RM) *~ *.o *.a core a.out Makefile.bak - $(RM) -r profiled - -all-prof inst-prof:: - -#ifdef ISUBDIRS -do_subdirs_imakefile(ISUBDIRS) -do_subdirs(ISUBDIRS) -#endif - -#ifdef XSUBDIRS -do_subdirs_xmakefile(XSUBDIRS) -do_subdirs(XSUBDIRS) -#endif - -#ifdef SUBDIRS -do_subdirs(SUBDIRS) -#endif SUBDIRS - -Makefiles:: - -/**/########################################################################### -/**/# dependencies generated by makedepend diff --git a/config/mkdirhier.sh b/config/mkdirhier.sh deleted file mode 100755 index 739535e..0000000 --- a/config/mkdirhier.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -# -# create a heirarchy of directories -# - -for f in $*; do - parts=`echo $f | sed 's,\(.\)/\(.\),\1 \2,g' | sed 's,/$,,'`; - path=""; - for p in $parts; do - if [ x"$path" = x ]; then - dir=$p; - else - dir=$path/$p; - fi; - if [ ! -d $dir ]; then - echo mkdir $dir; - mkdir $dir; - chmod a+rx $dir; - fi; - path=$dir; - done; -done - diff --git a/config/site.def b/config/site.def deleted file mode 100644 index cbc0044..0000000 --- a/config/site.def +++ /dev/null @@ -1,178 +0,0 @@ -/* - * BSD 4.3 - */ -#if (defined(vax) && !defined(ultrix)) || defined(ibm032) -#define LintCFlag -C -#define ProfCcFlags -pg -#endif - -#if defined(vax) && !defined(ultrix) -#define AnsiCcCmd gcc -pipe -#define AnsiLdCmd gcc -pipe -#define CcFlags "-Dmemmove(a,b,c)=bcopy(b,a,c)" -#endif - -#ifdef ibm032 -#define AnsiCcCmd cc -Hon=read_only_strings -#define CcFlags -#endif - - -/* - * DECstation ULTRIX - */ -#ifdef ultrix -#define SYSLOG_COMPAT42 -#endif - - -/* - * DEC Alpha OSF/1 - */ -#if defined(__alpha) -#define RanlibCmd ar -tsl -#define LintLibFlag -o -#define LintOpts -ax -#define LintFlags -DPOSIX -xv -std -#define CcFlags -DPOSIX -std1 -#define NOLINT /* Until I can install somewhere useful */ -#endif - - -/* - * IBM AIX - */ -#if defined(_AIX) && defined(_IBMR2) -#define NOLINT - -#ifdef _AIX32 -#define ARBinDir /usr/bin/athena -#endif - -#define BsdLibs -lbsd -#define BsdFlags -D_BSD - -#define NoBsdArgs \ - /*-Dindex=index_oops*/ /*-Drindex=rindex_oops*/ \ - -Dbcopy=bcopy_oops /*-Dbzero=bzero_oops*/ -Dbcmp=bcmp_oops \ - -Dsignal=signal_oops -Dsigsetmask=sigsetmask_oops \ - -Dsigblock=sigblock_oops -Dsigpause=sigpause_oops \ - /*-Dsetjmp=setjmp_oops*/ -Dlongjmp=longjmp_oops -#undef NoBsdArgs -#define NoBsdArgs - -#define LdLibs BsdLibs -#define LintFlags BsdFlags -DAIXV=AIXV -DPOSIX NoBsdArgs -#define CcFlags LintFlags -#define CDebugFlags -#define AnsiCcCmd xlc -qro -D_ALL_SOURCE -#define CcCmd xlc -qlanglvl=extended -D_ALL_SOURCE - -#if !defined(UseInstalled) || defined(UseSharedLibs) -#define LdPath -L$(ATHLIBDIR)/shared -L$(ATHLIBDIR) - -#define static_program(prog,objs,ldflags,libs) @@\ -all:: prog @@\ -prog:: objs @@\ - $(LD) ldflags $(LDFLAGS) -o prog objs -L$(ATHLIBDIR) libs $(LDLIBS) @@\ -clean:: @@\ - $(RM) prog -#endif - -clean:: - $(RM) bind.??* - -#endif /* _AIX */ - - -/* - * MAC A/UX - */ -#ifdef _AUX_SOURCE -#define NOLINT - -/* Do not use -ZP; this undefines other symbols used by the system .h files */ -#define CcFlags -DPOSIX -D_POSIX_SOURCE -D_BSD_SOURCE -#define LdLibs -lposix -#define RanLibCmd \: -#endif - - -/* - * Sun SUNOS - */ - -#if defined(sun) && defined(sparc) && !defined(SOLARIS) -#define NOLINT -#define LintFlags -DSUNOS -#define ProfCcFlags -pg -#define CDebugFlags -g -O -#define CcFlags LintFlags -I/usr/openwin/include -#define LdPath -L/usr/openwin/lib -L$(ATHLIBDIR) -#define CcCmd gcc -#define LdCmd gcc -#define AnsiCcCmd gcc -#define AnsiLdCmd gcc -#define AfsDir /usr/transarc -#define XLibs -L/usr/openwin/lib -lX11 -L/usr/local/lib -lXext -lm -#define XawLibs -lXaw -lXmu -lXt -static XLibs -#endif - - -/* - * Sun SOLARIS - */ -#if defined(SOLARIS) - -#define NoBsdArgs \ - -Dsignal=signal_oops -Dlongjmp=lonjmp_oops -Dsetjmp=setjmp_oops -/* -#undef NoBsdArgs -#define NoBsdArgs -I/usr/ucbinclude -*/ - -#define NOLINT -#define CcFlags -DSOLARIS -DPOSIX \ - -Dsrandom=srand48 -Drandom=lrand48 NoBsdArgs \ - -I/usr/openwin/include -#define ProfCcFlags -pg -#define CDebugFlags -O2 -#define LdPath -L/usr/openwin/lib -Xlinker -R/usr/openwin/lib -L$(ATHLIBDIR) -#define LdLibs -lresolv -lsocket -lnsl -lelf -#define AnsiCcCmd /usr/gcc/bin/gcc -#define AnsiLdCmd /usr/gcc/bin/gcc -#define CcCmd /usr/gcc/bin/gcc -traditional -#define LdCmd /usr/gcc/bin/gcc -#define RanLibCmd \: -#define AfsDir /usr/transarc -#define ExtraXLibs -lm -#endif - -/* - * Linux - */ -#ifdef linux -#define NOLINT -#define NOPROF -#define SYSLOG_COMPAT42 -#endif - -/* - * SGI Irix 5 - */ -#ifdef sgi -#define CcFlags -DSYSV -DPOSIX -#define CDebugFlags -O2 -#define RanLibCmd \: -#endif - -/* - * AFS configuration - */ -#if !defined(AfsDir) && !defined(NoAFS) -#ifdef UseInstalled -#define AfsDir /mit/afsuser/@sys -#else -#define AfsDir /usr/transarc /* wrong, but use for now */ -#endif -#endif diff --git a/config/zephyr.rules b/config/zephyr.rules deleted file mode 100644 index 8e3d1bc..0000000 --- a/config/zephyr.rules +++ /dev/null @@ -1,102 +0,0 @@ -/**/# Copyright 1993 Massachusetts Institute of Technology -/**/# For copying and distribution information, see the file -/**/# "mit-copyright.h" -/**/# -/**/# $Id$ - -/* General system configuration */ -#define KERBEROS /* Has Kerberos installed */ -#define HESIOD /* Has Hesiod installed */ - -/* Other defines that one may wish to use */ -#if 0 -#define NO_IMAKE /* Need to build imake */ -#define NO_ET /* Need to build com_err library */ -#define NO_SS /* Need to build ss library */ -#endif - -#ifndef UseSharedLibs -#define UseSharedLibs -#endif - -#ifdef NO_IMAKE -D_IMAKE = $(PTOP)/util/imake -IMAKE = $(D_IMAKE)/imake -OTHER_IFLAGS = -DNO_IMAKE -Makefile Makefiles:: $(IMAKE) -#endif - -#ifdef KERBEROS -CDEFS_KRB = -DKERBEROS -ZLIB_KRB = $(LIB_KRB) -#endif - -#ifdef HESIOD -CDEFS_HES = -DHESIOD -ZLIB_HES = $(LIB_HES) -#endif - -#ifdef NO_ET -D_ET = $(PTOP)/util/et -CDEFS_ET = -I$(D_ET) -#define EtLibs $(D_ET)/libcom_err.a -#endif - -#ifdef NO_SS -D_UTIL = $(PTOP)/util -D_SS = $(D_UTIL)/ss -CDEFS_SS = -I$(D_UTIL) -#define SsLibs $(D_SS)/libss.a -#endif - -ZPIDDIR = /var/athena -ZETCDIR = $(ATHCONFDIR)/zephyr -ZLIBDIR = $(ATHLIBDIR)/zephyr -ZINCDIR = $(ATHINCDIR)/zephyr -ZACLDIR = $(ZETCDIR)/acl - -BINC = $(PTOP)/h - -ZLIB = $(PTOP)/lib/libzephyr.a -ZLIBDES = $(PTOP)/libdes/libdes.a -ZLIBS = $(ZLIB_KRB) $(LIB_ET) $(ZLIB_HES) -DYN_LIB = $(PTOP)/libdyn/libdyn.a - -DEFINES = $(XDEFS) -DX11 -I$(BINC) \ - $(CDEFS_KRB) $(CDEFS_HES) $(CDEFS_ET) $(CDEFS_SS) \ - $(MACHDEFS) - -#ifndef _AIX /* AIX ANSI CcCmd doesn't want to compile compile_et output. */ -AnsiCC() -#endif - -/* - * Supplemental rules - */ -#define make_err(name) \ -error_table(name) @@\ -all:: concat3($(BINC)/zephyr/,name,.h) @@\ -$(OBJS): concat3($(BINC)/zephyr/,name,.h) @@\ -concat3($(BINC)/zephyr/,name,.h): concat2(name,.h) @@\ - $(RM) $@; $(CP) concat2(name,.h) $@ @@\ -clean:: @@\ - $(RM) concat3($(BINC)/zephyr/,name,.h) - -#define zprogram(name,libs) \ -SimpleProgram(name,$(OBJS) $(ZLIB),libs $(ZLIBS),$(ATHBINDIR)) @@\ -create_depend($(SRCS)) - - -#if defined(UseInstalled) && defined(NoBrainDamage) -ATHBINDIR = /mit/zephyr/@sys/bin -ATHLIBDIR = /mit/zephyr/@sys/lib -ATHINCDIR = /mit/zephyr/include -ATHMANDIR = /mit/zephyr/man - -ZLIBDIR = /mit/zephyr/configs -ATHCONFDIR = $(ZLIBDIR) -ATHETCDIR = $(ATHBINDIR) -ATHRETCDIR = $(ATHBINDIR) - -LDPATH = -L/usr/athena/lib/shared -L/usr/athena/lib -#endif |