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
+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;
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
## 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@
TOPLIBD = $(BUILDTOP)/lib
+OBJEXT = o
+LIBEXT = a
+EXEEXT =
+
all::
--- /dev/null
+@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
--- /dev/null
+# 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
+#
+