File: Makefile.w32

package info (click to toggle)
remctl 3.15-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 5,224 kB
  • sloc: ansic: 20,027; sh: 5,047; perl: 1,791; java: 740; makefile: 683; xml: 501
file content (44 lines) | stat: -rw-r--r-- 1,845 bytes parent folder | download
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
# Windows Makefile for remctl.  -*- makefile -*-
#
# Written by Matthew Loar and Jeffrey Altman
# Copyright 2008, 2011 Matthew Loar
# Copyright 2009 Jeffrey Altman
# Copyright 2008-2011
#     The Board of Trustees of the Leland Stanford Junior University
#
# SPDX-License-Identifier: MIT

!INCLUDE <Win32.mak>

!if "$(CPU)" == "i386"
GSSAPI_LIB = gssapi32.lib
!elseif "$(CPU)" == "AMD64"
GSSAPI_LIB = gssapi64.lib
!endif

cflags=$(cflags) /I "$(KRB5SDK)"\inc\krb5 /I "$(KRB5SDK)"\inc\krb5\gssapi /I . /D_CRT_SECURE_NO_DEPRECATE /DWIN32_LEAN_AND_MEAN

rcflags=$(rcflags) /I .

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
	link $(ldebug) $(lflags) /LIBPATH:"$(KRB5SDK)"\lib\$(CPU) /out:$@ $** $(GSSAPI_LIB) ws2_32.lib advapi32.lib

remctl.lib: remctl.dll

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
	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

{client\}.c{}.obj::
	$(cc) $(cdebug) $(cflags) $(cvars) /c $<

{util\}.c{}.obj::
	$(cc) $(cdebug) $(cflags) $(cvars) /c $<

{portable\}.c{}.obj::
	$(cc) $(cdebug) $(cflags) $(cvars) /c $<

{client\}.rc{}.res:
	$(rc) $(rcflags) $(rcvars) /fo $@ $<

clean:
	-del *.obj *.exe *.pdb *.ilk *.exp *.lib *.dll *.res