ICE 3.4.2
[php5-ice-freebsdport.git] / cpp / src / iceserviceinstall / Makefile.mak
blob96a818a17143b1fe1979d4f53fc09a45c4a4fd5a
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 # **********************************************************************
10 top_srcdir = ..\..
12 TOOL = $(top_srcdir)\bin\iceserviceinstall.exe
14 TARGETS = $(TOOL)
16 OBJS = ServiceInstaller.obj \
17 Install.obj
19 SRCS = $(OBJS:.obj=.cpp)
21 !include $(top_srcdir)\config\Make.rules.mak
23 CPPFLAGS = -I. $(CPPFLAGS) -DWIN32_LEAN_AND_MEAN
25 LINKWITH = $(LIBS)
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)
29 !else
30 EXTRA_MANIFEST = security.manifest
31 !endif
33 !if "$(GENERATE_PDB)" == "yes"
34 PDBFLAGS = /pdb:$(TOOL:.exe=.pdb)
35 !endif
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
44 clean::
45 del /q $(TOOL:.exe=.*)
46 del /q IceServiceInstall.res
48 install:: all
49 copy $(TOOL) "$(install_bindir)"
51 !if "$(GENERATE_PDB)" == "yes"
53 install:: all
54 copy $(TOOL:.exe=.pdb) "$(install_bindir)"
56 !endif
59 !include .depend.mak