summaryrefslogtreecommitdiffstats
path: root/src/windows/leash/Makefile.in
blob: eb8a566ae2785bb97669f8fc492c8d1e93e42825 (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
# makefile: Leash executable
#

#TODO Fix later:
NO_AFS=1

!ifndef NO_AFS
###AFS_BASE=
AFS_INCLUDES=-I$(AFS_BASE)\Include
AFS_LIB=$(AFS_BASE)\lib
AFS_LIBS=$(AFS_LIB)\afsauthent.lib
!else
AFS_INCLUDES=
AFS_LIBS=
!endif

MFCLIB=MFC100D.LIB
EXE_NAME=leash
WSHELPER=wshelp32

!if ("$(CPU)" == "IA64") || ("$(CPU)" == "AMD64") || ("$(CPU)" == "ALPHA64")
WSHELPER=wshelp64
!endif

SUBDIRS= htmlhelp

OBJS=   \
	$(OUTPRE)Krb4EditDomainRealmList.obj \
	$(OUTPRE)CLeashDragListBox.obj \
	$(OUTPRE)Krb5Properties.obj \
	$(OUTPRE)KrbAddHostServer.obj \
	$(OUTPRE)KrbAddRealm.obj \
	$(OUTPRE)KrbConfigOptions.obj \
	$(OUTPRE)KrbDomainRealmMaintenance.obj \
	$(OUTPRE)KrbEditHostServer.obj \
	$(OUTPRE)KrbEditRealm.obj \
	$(OUTPRE)KrbProperties.obj \
	$(OUTPRE)KrbRealmHostMaintenance.obj \
	$(OUTPRE)Leash.obj \
	$(OUTPRE)LeashAboutBox.obj \
	$(OUTPRE)LeashDebugWindow.obj \
	$(OUTPRE)LeashDoc.obj \
	$(OUTPRE)LeashFileDialog.obj \
	$(OUTPRE)LeashFrame.obj \
	$(OUTPRE)LeashMessageBox.obj \
	$(OUTPRE)LeashProperties.obj \
	$(OUTPRE)LeashView.obj \
	$(OUTPRE)lglobals.obj \
	$(OUTPRE)MainFrm.obj \
	$(OUTPRE)out2con.obj \
	$(OUTPRE)StdAfx.obj \
	$(OUTPRE)AfsProperties.obj \
	$(OUTPRE)VSroutines.obj \
	$(OUTPRE)KrbMiscConfigOpt.obj

RESFILE = $(OUTPRE)Leash.res
XOBJS	= $(RESFILE)

##### Options
# Set NODEBUG if building release instead of debug
BUILDTOP=..\..

LOCALINCLUDES= -I$(BUILDTOP) -I$(BUILDTOP)\include -I$(BUILDTOP)\windows\include

##### RC Compiler
RFLAGS	= $(LOCALINCLUDES)
RCFLAGS	= $(RFLAGS) -D_WIN32 -DLEASH_APP

DEFINES = -DWINSOCK -DWIN32 -DWINDOWS -D_AFXDLL -D_MBCS -DNO_KRB4
!ifdef NODEBUG
DEFINES = $(DEFINES)
!else
DEFINES = $(DEFINES) -DDBG
!endif

!ifdef NO_AFS
DEFINES = $(DEFINES) -DNO_AFS
!endif

##### Linker
LINK	= link
LIBS	= $(GLIB) $(CLIB) $(WLIB)
SYSLIBS	= kernel32.lib Iphlpapi.lib ws2_32.lib user32.lib gdi32.lib comdlg32.lib comctl32.lib version.lib
LFLAGS	= /nologo $(LOPTS)

all:: Makefile $(OUTPRE)$(EXE_NAME).exe

$(OUTPRE)$(EXE_NAME).exe: $(OBJS) $(XOBJS) $(LIBS)
	$(LINK) $(LFLAGS) /out:$@ /ENTRY:WinMainCRTStartup $(OBJS) $(XOBJS) \
	  $(LIBS) $(SYSLIBS) $(BUILDTOP)\util\wshelper\$(OUTPRE)$(WSHELPER).lib \
	  ../lib/$(OUTPRE)libwin.lib atl.lib $(MFCLIB) $(SCLIB)

$(RESFILE): Leash.rc res/Leash.rc2 ver.rc ../version.rc ../kerberos.ver

clean::
	if exist $(OUTPRE)*.exe del $(OUTPRE)*.exe
	if exist $(OUTPRE)*.obj del $(OUTPRE)*.obj
	if exist $(OUTPRE)*.res del $(OUTPRE)*.res
	if exist $(OUTPRE)*.pdb del $(OUTPRE)*.pdb
	if exist *.err del *.err