]> eyrie.org Git - kerberos/remctl.git/blob - Makefile.w32
Ignore ignored attributes for Ruby
[kerberos/remctl.git] / Makefile.w32
1 # Windows Makefile for remctl.  -*- makefile -*-
2 #
3 # Written by Matthew Loar and Jeffrey Altman
4 # Copyright 2008, 2011 Matthew Loar
5 # Copyright 2009 Jeffrey Altman
6 # Copyright 2008-2011
7 #     The Board of Trustees of the Leland Stanford Junior University
8 #
9 # SPDX-License-Identifier: MIT
10
11 !INCLUDE <Win32.mak>
12
13 !if "$(CPU)" == "i386"
14 GSSAPI_LIB = gssapi32.lib
15 !elseif "$(CPU)" == "AMD64"
16 GSSAPI_LIB = gssapi64.lib
17 !endif
18
19 cflags=$(cflags) /I "$(KRB5SDK)"\inc\krb5 /I "$(KRB5SDK)"\inc\krb5\gssapi /I . /D_CRT_SECURE_NO_DEPRECATE /DWIN32_LEAN_AND_MEAN
20
21 rcflags=$(rcflags) /I .
22
23 remctl.exe: api.obj client-v1.obj client-v2.obj gss-tokens.obj gss-errors.obj error.obj open.obj strlcpy.obj strlcat.obj concat.obj tokens.obj network.obj inet_aton.obj inet_ntop.obj fdflag.obj remctl.obj getopt.obj messages.obj asprintf.obj winsock.obj xmalloc.obj remctl.lib remctl.res
24         link $(ldebug) $(lflags) /LIBPATH:"$(KRB5SDK)"\lib\$(CPU) /out:$@ $** $(GSSAPI_LIB) ws2_32.lib advapi32.lib
25
26 remctl.lib: remctl.dll
27
28 remctl.dll: api.obj client-v1.obj client-v2.obj error.obj open.obj network.obj fdflag.obj asprintf.obj concat.obj gss-tokens.obj gss-errors.obj inet_aton.obj inet_ntop.obj strlcpy.obj strlcat.obj tokens.obj messages.obj winsock.obj xmalloc.obj libremctl.res
29         link $(ldebug) $(lflags) /LIBPATH:"$(KRB5SDK)"\lib\$(CPU) /dll /out:$@ /export:remctl /export:remctl_new /export:remctl_open /export:remctl_close /export:remctl_command /export:remctl_commandv /export:remctl_error /export:remctl_output $** $(GSSAPI_LIB) ws2_32.lib advapi32.lib
30
31 {client\}.c{}.obj::
32         $(cc) $(cdebug) $(cflags) $(cvars) /c $<
33
34 {util\}.c{}.obj::
35         $(cc) $(cdebug) $(cflags) $(cvars) /c $<
36
37 {portable\}.c{}.obj::
38         $(cc) $(cdebug) $(cflags) $(cvars) /c $<
39
40 {client\}.rc{}.res:
41         $(rc) $(rcflags) $(rcvars) /fo $@ $<
42
43 clean:
44         -del *.obj *.exe *.pdb *.ilk *.exp *.lib *.dll *.res