aboutsummaryrefslogtreecommitdiff
path: root/src/windows/wintel/Makefile.in
blob: 7134945df0ea3859c03bc922135ec6f7cc2cc030 (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# makefile: Constructs the kerborized telnet client
# Works for both k4 and k5 releases.
#
NAME 	 = telnet
OBJS 	 = $(NAME).obj negotiat.obj auth.obj edit.obj emul.obj \
		font.obj intern.obj screen.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 \
	/I$(BUILDTOP)\lib\crypto\des
XOBJS    = k5stream.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_RELEASE = /nologo /DNDEBUG
##WIN16##RFLAGS_DEBUG   = /nologo
##WIN32##RFLAGS_RELEASE = /DNDEBUG
##WIN32##RFLAGS_DEBUG   = 
!if $(DEBUG)
RFLAGS 	 = $(RFLAGS_DEBUG) $(INCLUDES)
!else
RFLAGS   = $(RFLAGS_RELEASE) $(INCLUDES)
!endif

##### Linker
LINK 	 = link	 
LIBS 	 = $(KLIB) $(WLIB)
SYSLIBS  = libw llibcew commdlg
!if $(DEBUG)
LFLAGS   = /co /nologo /nod /packc:61440 /stack:32768 /align:16 /onerror:noexe
!else
LFLAGS   = /nologo /nod /packc:61440 /stack:32768 /align:16 /onerror:noexe
!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

telnet.obj: telnet.h dialog.h screen.h struct.h wt-proto.h ini.h

negotiat.obj: telnet.h dialog.h screen.h struct.h wt-proto.h ini.h

auth.obj: telopts.h telnet.h dialog.h screen.h struct.h wt-proto.h ini.h

edit.obj: screen.h

emul.obj: screen.h

font.obj: screen.h ini.h

intern.obj: screen.h

screen.obj: screen.h ini.h

telnet.res: screen.h dialog.h telnet.dlg ncsa.ico terminal.ico

!if $(KVERSION) == 5
k5stream.c: k5stream.h auth.h
!endif