summaryrefslogtreecommitdiffstats
path: root/src/windows/cns/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/windows/cns/Makefile.in')
-rw-r--r--src/windows/cns/Makefile.in81
1 files changed, 81 insertions, 0 deletions
diff --git a/src/windows/cns/Makefile.in b/src/windows/cns/Makefile.in
new file mode 100644
index 0000000000..3fae32b43e
--- /dev/null
+++ b/src/windows/cns/Makefile.in
@@ -0,0 +1,81 @@
+# makefile: Constructs the Kerberos for Windows ticket manager
+# Works for both k4 and k5 releases.
+#
+NAME = cns
+OBJS = $(NAME).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
+XOBJS =
+!endif
+
+!if $(KVERSION) == 5
+BUILDTOP =..\..
+LIBDIR = $(BUILDTOP)\lib
+KLIB = $(LIBDIR)\libkrb5.lib
+WLIB = $(LIBDIR)\winsock.lib
+INCLUDES = /I$(BUILDTOP)\include /I$(BUILDTOP)\include\krb5
+XOBJS = kpasswd.obj
+!endif
+
+##### C Compiler
+CC = cl
+CFLAGS_RELEASE = /nologo /W3 /AL /GAs /G2 /Zp /O2 /DNDEBUG=1
+CFLAGS_DEBUG = /nologo /W3 /AL /GAs /G2 /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
+##WIN16##RFLAGS = /nologo /D$(KRB)=1 $(INCLUDES)
+##WIN32##RFLAGS = /D$(KRB)=1 $(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) $(XOBJS) $(LIBS)
+ $(LINK) $(LFLAGS) $(OBJS) $(XOBJS), $@, $*.map, \
+ $(LIBS) $(SYSLIBS), $*.def
+ $(RC) $(RFLAGS) /k $*.res $@
+
+install:
+ copy $(NAME).exe ..\floppy
+
+clean::
+ if exist *.obj del *.obj
+ if exist *.exe del *.exe
+ if exist *.res del *.res
+ if exist *.map del *.map
+ if exist *.pdb del *.pdb
+ if exist *.err del *.err
+ if exist ..\floppy\$(NAME).exe del ..\floppy\$(NAME).exe
+
+$(OBJS) $(NAME).res: $(NAME).h tktlist.h
+
+$(NAME).res: clock00.ico clock05.ico clock10.ico clock15.ico clock20.ico \
+ clock25.ico clock30.ico clock35.ico clock40.ico clock45.ico \
+ clock50.ico clock55.ico clock60.ico clockexp.ico clocktkt.ico \
+ cns.ico