1 # **********************************************************************
3 # Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
5 # This copy of Ice is licensed to you under the terms described in the
6 # ICE_LICENSE file included in this distribution.
8 # **********************************************************************
12 TOOL
= $(top_srcdir
)\bin\iceserviceinstall.exe
16 OBJS
= ServiceInstaller.obj \
19 SRCS
= $(OBJS
:.obj
=.
cpp)
21 !include $(top_srcdir
)\config\Make.rules.mak
23 CPPFLAGS
= -I.
$(CPPFLAGS
) -DWIN32_LEAN_AND_MEAN
26 !if
"$(CPP_COMPILER)" == "VC90" ||
"$(CPP_COMPILER)" == "VC90_EXPRESS" || \
27 "$(CPP_COMPILER)" == "VC100" ||
"$(CPP_COMPILER)" == "VC100_EXPRESS"
28 LINKWITH
= /MANIFEST
/MANIFESTUAC
:"level='requireAdministrator' uiAccess='false'" $(LINKWITH
)
30 EXTRA_MANIFEST
= security.manifest
33 !if
"$(GENERATE_PDB)" == "yes"
34 PDBFLAGS
= /pdb
:$(TOOL
:.exe
=.pdb
)
37 RES_FILE
= IceServiceInstall.res
39 $(TOOL
): $(OBJS
) IceServiceInstall.res
40 $(LINK
) $(LD_EXEFLAGS
) $(PDBFLAGS
) $(OBJS
) $(SETARGV
) $(PREOUT
)$@
$(PRELIBS
)$(LINKWITH
) $(RES_FILE
)
41 @if exist
$@.manifest echo ^ ^ ^ Embedding manifest using
$(MT
) && \
42 $(MT
) -nologo
-manifest
$@.manifest
$(EXTRA_MANIFEST
) -outputresource
:$@
;#1 && del /q $@.manifest
45 del
/q
$(TOOL
:.exe
=.
*)
46 del
/q IceServiceInstall.res
49 copy
$(TOOL
) "$(install_bindir)"
51 !if
"$(GENERATE_PDB)" == "yes"
54 copy
$(TOOL
:.exe
=.pdb
) "$(install_bindir)"