From 66513137fec243fba7ee2f96a9a4dbcb863c8545 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 30 May 1990 15:35:06 +0000 Subject: [PATCH] put DES defines into Imakefiles /config files git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@967 dc483132-0cff-0310-8789-dd5450dbe970 --- src/config/Project.tmpl | 6 +++++- src/config/ibm.cf | 2 ++ src/config/ultrix.cf | 10 ++++++++++ src/config/vaxbsd.cf | 1 + 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/config/Project.tmpl b/src/config/Project.tmpl index 8a2705688..03f1e6e42 100644 --- a/src/config/Project.tmpl +++ b/src/config/Project.tmpl @@ -36,6 +36,9 @@ #ifndef ArAddCmd #define ArAddCmd ar cruv #endif +#ifndef DesDefines +#define DesDefines YouMustFigureOutYourDesDefines +#endif #ifndef PepyPosyRules #define PepyPosyRules() @@\ @@ -118,6 +121,7 @@ libdir/lib/**/libname.a: @@\ PEPY = PepyCmd POSY = PosyCmd TOUCH = TouchCmd + DESDEFINES = DesDefines ETSRC = $(TOP)/comerr SSSRC = $(TOP)/ss OSLIB = $(TOP)/lib/os/libos.a @@ -127,7 +131,7 @@ libdir/lib/**/libname.a: @@\ ISODELIB = $(ISODE)/@sys/lib/libisode.a DBMLIB = DbmLib - DEPKLIB = $(KRB5LIB) $(OSLIB) $(DESLIB) $(CRCLIB) + DEPKLIB = $(KRB5LIB) $(DESLIB) $(OSLIB) $(CRCLIB) KLIB = $(DEPKLIB) $(ISODELIB) $(COMERRLIB) $(DBMLIB) DEPKDBLIB = $(TOP)/lib/kdb/libkdb.a KDBLIB = $(DEPKDBLIB) diff --git a/src/config/ibm.cf b/src/config/ibm.cf index fc8efbb81..5b317725d 100644 --- a/src/config/ibm.cf +++ b/src/config/ibm.cf @@ -20,3 +20,5 @@ #define StandardCppDefines -U__STDC__ #define SaberDefines #define StandardDefines -U__STDC__ + +#define DesDefines -DBITS32 -DBIG -DMSBFIRST -DMUSTALIGN diff --git a/src/config/ultrix.cf b/src/config/ultrix.cf index 3af74f2e4..16b0d39cc 100644 --- a/src/config/ultrix.cf +++ b/src/config/ultrix.cf @@ -23,11 +23,21 @@ #ifdef VaxArchitecture #define UnalignedReferencesAllowed YES /* if arbitrary deref is okay */ #define HasSaberC YES +#define DesDefines -DBITS32 -DBIG -DLSBFIRST #endif #ifdef MipsArchitecture #define HasSaberC YES /* #define HasGcc YES */ +#ifdef MIPSEL +#define DesDefines -DBITS32 -DBIG -DMUSTALIGN -DLSBFIRST +#else +#ifdef MIPSEB +#define DesDefines -DBITS32 -DBIG -DMUSTALIGN -DMSBFIRST +#else /* not MIPSEB */ + error: you must figure out what endian your MIPS is! +#endif /* MIPSEB */ +#endif /* MIPSEL */ #endif /**/# platform: $XConsortium: ultrix.cf,v 1.20 89/12/22 15:56:14 rws Exp $ diff --git a/src/config/vaxbsd.cf b/src/config/vaxbsd.cf index 5a4ffef60..52380f21d 100644 --- a/src/config/vaxbsd.cf +++ b/src/config/vaxbsd.cf @@ -27,5 +27,6 @@ #ifdef VaxArchitecture #define UnalignedReferencesAllowed YES /* if arbitrary deref is okay */ +#define DesDefines -DBITS32 -DBIG -DLSBFIRST #endif -- 2.26.2