blob: 7c81c73085f10e15e44404a785b1961f7120c62d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# makefile: Constructs the Kerberos for Windows ticket manager
# Works for both k4 and k5 releases.
#
NAME = cns
OBJS = cns.obj tktlist.obj
##### Options
DEBUG = 1
!IF ! defined(KVERSION)
KVERSION = 5
!endif
KRB = KRB$(KVERSION)
!if $(KVERSION) == 4
BUILDTOP = ..
LIBDIR = $(BUILDTOP)\lib\krb
KLIB = $(LIBDIR)\kerberos.lib
WLIB = $(LIBDIR)\winsock.lib
INCLUDES = /I$(BUILDTOP)\include
!endif
!if $(KVERSION) == 5
BUILDTOP =..\..
LIBDIR = $(BUILDTOP)\lib
KLIB = $(LIBDIR)\libkrb5.lib
WLIB = $(LIBDIR)\winsock.lib
INCLUDES = /I$(BUILDTOP)\include /I$(BUILDTOP)\include\krb5
!endif
##### C Compiler
CC = cl
CFLAGS_RELEASE = /f- /nologo /W3 /AL /Gw /Gsy /Zp /O2 /DNDEBUG=1
CFLAGS_DEBUG = /f /nologo /W3 /AL /Gw /Gsy /Zp /O2 /Od /Zi
!if $(DEBUG)
CFLAGS = $(CFLAGS_DEBUG) $(INCLUDES) /D$(KRB)=1
!else
CFLAGS = $(CFLAGS_RELEASE) $(INCLUDES) /D$(KRB)=1
!endif
##### RC Compiler
RC = rc
RFLAGS = /nologo $(INCLUDES)
##### Linker
LINK = link
LIBS = $(KLIB) $(WLIB)
SYSLIBS = libw llibcew
!if $(DEBUG)
LFLAGS = /co /nologo /nod /nopackcode /map:full
!else
LFLAGS = /nologo /nod /nopackcode
!endif
all:: makefile $(NAME).exe
$(NAME).exe: $*.def $*.res $(OBJS) $(LIBS)
$(LINK) $(LFLAGS) $(OBJS), $@, $*.map, $(LIBS) $(SYSLIBS), $*.def
$(RC) $(RFLAGS) /k $*.res $@
$(OBJS) cns.res: cns.h tktlist.h
install:
copy cns.exe ..\floppy
clean::
if exist *.exe del *.exe
if exist ..\floppy\cns.exe del ..\floppy\cns.exe
if exist *.obj del *.obj
if exist *.res del *.res
if exist *.map del *.map
if exist *.pdb del *.pdb
if exist *.err del *.err
|