e101a3c9e2782d4eaf0306ee1f29d45d3cd19539
[krb5.git] / src / config / windows.in
1 # Microsoft Windows configuration file for Cygnus Kerberos
2 # ***copy from K4***
3
4 WHAT=windows
5
6 # Directory syntax:
7 R=\             # root
8 C=.\            # current
9 S=\             # seperator
10 U=..\           # up one level
11
12 srcdir = .
13
14 # /* The name of the C compiler for the target */
15 CC=cl /nologo
16 CL=
17 CCOPTS=/ALw /Zpa /GD2s /Os /Zi /Od /W3 $(XTRA)
18 CCOPTS2=/AL /Zpa /G2s  /Os /Zi /Od /W3 -DINTERFACE= -DINTERFACE_C= $(XTRA)
19 CPPFLAGS =  -I$(SRCTOP)/include -I$(SRCTOP)/include/krb5
20 DEFS = $(CPPFLAGS)
21 CFLAGS2 = $(CCOPTS2) $(DEFS)
22
23 # /Zi gives debug info in each object file.
24 # /Zp packs structures: Required for Windows API (but is not default!!!)
25 # /Za strict ansi compliance
26 # /ALw memory model:  Large model for Windows DLL (SS != DS)
27 # /GD DLL code generation for Windows 3.0 and up, and defines _WINDOWS
28 # /Gs Avoid stack probes (they don't seem to work anyway)
29 # /Os optimize for space.  FIXME:  Do not use /Ox; it miscompiles the DES lib!
30 # /G2 generate 286 instructions (it complains if you ask for 386!)
31 # /Od disable optimization (for debugging)
32
33 DBG_LIB=/nologo /Zp /ALw /GD /Gs /Os /G2 /Zi /Od
34 # /Zi gives debug info in each object file.
35 # /Zp packs structures: Required for Windows API (but is not default!!!)
36 # /AL large memory model
37 # /Mq quickwin ascii stdio window, and defines _WINDOWS
38 DBG=/nologo /Zp /AL /Os /Mq /Zi /Od
39
40 RM=$(BUILDTOP)\config\rm.bat
41 CP=copy
42 MV=ren
43 LN=copy
44 LIBCMD=lib
45 AWK=rem
46
47 ARADD=rem
48 RANLIB=rem
49 ARCHIVE=rem
50
51 LIBEXT=lib
52 OBJEXT=obj
53 EXEEXT=.exe
54
55 MFLAGS=$(MAKEFLAGS)
56
57 .c.obj:
58         $(CC) $(CFLAGS) /c $*.c
59 !if defined(LIBNAME)
60 !if "$(LIBCMD)"!="rem"
61         $(LIBCMD) /nologo $(LIBNAME) -+$@;
62 !endif
63 !endif
64
65 #
66 # End of Microsoft Windows config lines
67 #
68