From 6b9c882c8ad80496e76174f9b363206509511f0e Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Wed, 15 Feb 1995 01:04:57 +0000 Subject: [PATCH] * pre.in: Added macros for directory syntax, filename extensions and what system we're building on (defaults to Unix). * post.in: split clean into unix and windows branches * windows.in: new file--makefile macros and rules for windows * rm.bat: new file--DOS batch file to mimic Unix's rm command git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4946 dc483132-0cff-0310-8789-dd5450dbe970 --- src/config/ChangeLog | 8 ++++++ src/config/post.in | 9 ++++-- src/config/pre.in | 12 ++++++++ src/config/rm.bat | 30 ++++++++++++++++++++ src/config/windows.in | 65 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 122 insertions(+), 2 deletions(-) create mode 100644 src/config/rm.bat create mode 100644 src/config/windows.in diff --git a/src/config/ChangeLog b/src/config/ChangeLog index 35c88871e..b0662ed7a 100644 --- a/src/config/ChangeLog +++ b/src/config/ChangeLog @@ -1,3 +1,11 @@ +Mon Feb 6 19:33:57 1995 Keith Vetter (keithv@fusion.com) + + * pre.in: Added macros for directory syntax, filename extensions + and what system we're building on (defaults to Unix). + * post.in: split clean into unix and windows branches + * windows.in: new file--makefile macros and rules for windows + * rm.bat: new file--DOS batch file to mimic Unix's rm command + Wed Nov 2 21:04:18 1994 Theodore Y. Ts'o (tytso@dcl) * pre.in: Don't actually add the $(CPPOPTS) flags to CPPFLAGS; diff --git a/src/config/post.in b/src/config/post.in index a31cf2a44..f06af3c22 100644 --- a/src/config/post.in +++ b/src/config/post.in @@ -5,7 +5,12 @@ all:: check:: -clean:: - if test -n "$(OBJS)" ; then $(RM) $(OBJS); else :; fi +clean:: clean-$(WHAT) $(RM) config.log pre.out post.out Makefile.out +clean-unix:: + if test -n "$(OBJS)" ; then $(RM) $(OBJS); else :; fi + +clean-windows:: + $(RM) *.$(OBJEXT) + $(RM) msvc.pdb *.err diff --git a/src/config/pre.in b/src/config/pre.in index aee7a04cc..5b4800350 100644 --- a/src/config/pre.in +++ b/src/config/pre.in @@ -1,6 +1,14 @@ ## config/pre.in ## common prefix for all Makefile.in in the Kerberos V5 tree. +WHAT = unix + +# Directory syntax: +R=/ +C=./ +S=/ +U=../ + BUILDTOP = @BUILDTOP@ srcdir = @srcdir@ VPATH = @srcdir@ @@ -51,4 +59,8 @@ SUBDIRS = @subdirs@ TOPLIBD = $(BUILDTOP)/lib +OBJEXT = o +LIBEXT = a +EXEEXT = + all:: diff --git a/src/config/rm.bat b/src/config/rm.bat new file mode 100644 index 000000000..fd502fdbe --- /dev/null +++ b/src/config/rm.bat @@ -0,0 +1,30 @@ +@echo off +Rem +Rem rm.bat +Rem +Rem Copyright 1995 by the Massachusetts Institute of Technology. +Rem All Rights Reserved. +Rem +Rem Export of this software from the United States of America may +Rem require a specific license from the United States Government. +Rem It is the responsibility of any person or organization contemplating +Rem export to obtain such a license before exporting. +Rem +Rem WITHIN THAT CONSTRAINT, permission to use, copy, modify, and +Rem distribute this software and its documentation for any purpose and +Rem without fee is hereby granted, provided that the above copyright +Rem notice appear in all copies and that both that copyright notice and +Rem this permission notice appear in supporting documentation, and that +Rem the name of M.I.T. not be used in advertising or publicity pertaining +Rem to distribution of the software without specific, written prior +Rem permission. M.I.T. makes no representations about the suitability of +Rem this software for any purpose. It is provided "as is" without express +Rem or implied warranty. +Rem +Rem +Rem Batch file to mimic the functionality of the Unix rm command +Rem +:loop +if exist %1 del %1 +shift +if not %1.==. goto loop diff --git a/src/config/windows.in b/src/config/windows.in new file mode 100644 index 000000000..959efa93a --- /dev/null +++ b/src/config/windows.in @@ -0,0 +1,65 @@ +# Microsoft Windows configuration file for Cygnus Kerberos +# ***copy from K4*** + +WHAT=windows + +# Directory syntax: +R=\ # root +C=.\ # current +S=\ # seperator +U=..\ # up one level + +srcdir = . + +# /* The name of the C compiler for the target */ +CC=cl /nologo +CL= +CCOPTS=/ALw /Zpa /GD2s /Os /Zi /Od /W2 +CCOPTS2=/AL /Zpa /G2s /Os /Zi /Od /W2 -DAPI= +CPPFLAGS = -I$(SRCTOP)/include +DEFS = $(CPPFLAGS) +CFLAGS2 = $(CCOPTS2) $(DEFS) + +# /Zi gives debug info in each object file. +# /Zp packs structures: Required for Windows API (but is not default!!!) +# /Za strict ansi compliance +# /ALw memory model: Large model for Windows DLL (SS != DS) +# /GD DLL code generation for Windows 3.0 and up, and defines _WINDOWS +# /Gs Avoid stack probes (they don't seem to work anyway) +# /Os optimize for space. FIXME: Do not use /Ox; it miscompiles the DES lib! +# /G2 generate 286 instructions (it complains if you ask for 386!) +# /Od disable optimization (for debugging) + +DBG_LIB=/nologo /Zp /ALw /GD /Gs /Os /G2 /Zi /Od +# /Zi gives debug info in each object file. +# /Zp packs structures: Required for Windows API (but is not default!!!) +# /AL large memory model +# /Mq quickwin ascii stdio window, and defines _WINDOWS +DBG=/nologo /Zp /AL /Os /Mq /Zi /Od + +RM=$(BUILDTOP)\config\rm.bat +CP=copy +MV=ren +LN=copy +LIB=lib + +ARADD=rem +RANLIB=rem +ARCHIVE=rem + +LIBEXT=lib +OBJEXT=obj +EXEEXT=.exe + +MFLAGS=$(MAKEFLAGS) + +.c.obj: + $(CC) $(CFLAGS) /c $*.c +!if defined(LIBNAME) + $(LIB) /nologo $(LIBNAME) -+$@; +!endif + +# +# End of Microsoft Windows config lines +# + -- 2.26.2