summaryrefslogtreecommitdiffstats
path: root/src/windows/cns/Makefile.in
blob: ffa1d92619d9f204c2076df361001b24056fd765 (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
# makefile: Constructs the Kerberos for Windows ticket manager
# Works for both k4 and k5 releases.
#
NAME 	 = krb5
OBJS 	 = cns.obj tktlist.obj password.obj options.obj

##### Options
!IF ! defined(KVERSION)
KVERSION = 5
!endif
KRB 	 = KRB$(KVERSION)

BUILDTOP =..\..
INCLUDES = /I$(BUILDTOP)\include /I$(BUILDTOP)\include\krb5

##WIN16##XOBJS    = kpasswd.obj
##WIN32##XOBJS    = cnsres5.obj kpasswd.obj

CFLAGS	= $(CCOPTS2) $(INCLUDES) /D$(KRB)=1

##WIN16##RFLAGS 	 = /nologo /D$(KRB)=1 $(INCLUDES)
##WIN32##RFLAGS 	 = /D$(KRB)=1 $(INCLUDES)

##### Linker
LINK 	 = link
LIBS 	 = $(KLIB) $(CLIB) $(WLIB)
##WIN16##SYSLIBS  = libw llibcew
##WIN16##LFLAGS  = /nologo /nod /nopackcode
##WIN32##LFLAGS	 = /nologo /nod
##WIN32##SYSLIBS = libc.lib kernel32.lib wsock32.lib user32.lib gdi32.lib

all:: makefile $(NAME).exe

$(NAME).exe: $*.def $(OBJS) $(XOBJS) $(LIBS)
##WIN16##	$(LINK) $(LFLAGS) $(OBJS) $(XOBJS), $@, $*.map, \
##WIN16##	  $(LIBS) $(SYSLIBS), $*.def
##WIN16##	$(RC) $(RFLAGS) /k cnsres5.rc $@
##WIN32##	$(LINK) $(LFLAGS) /map:$*.map /out:$@ $(OBJS) $(XOBJS) \
##WIN32##	  $(LIBS) $(SYSLIBS)

##WIN32##.rc.obj:
##WIN32##	$(RC) $(RFLAGS) /r $*.rc
##WIN32##	$(CVTRES) /nologo /out:$*.obj $*.res

install::
	$(CP) $(NAME).exe $(DESTDIR)
	$(CP) $(NAME).hlp $(DESTDIR)

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

$(OBJS): cns.h tktlist.h

cns.res: cns.h \
	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