ICE 3.4.2
[php5-ice-freebsdport.git] / cpp / demo / book / simple_filesystem / Makefile.mak
blob93941ee4e4a35aeb9878ac9c29066ef10d3f611f
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 CLIENT = client.exe
13 SERVER = server.exe
15 TARGETS = $(CLIENT) $(SERVER)
17 OBJS = Filesystem.obj
19 COBJS = Client.obj
21 SOBJS = FilesystemI.obj \
22 Server.obj
24 SRCS = $(OBJS:.obj=.cpp) \
25 $(COBJS:.obj=.cpp) \
26 $(SOBJS:.obj=.cpp)
28 !include $(top_srcdir)/config/Make.rules.mak
30 CPPFLAGS = -I. $(CPPFLAGS) -DWIN32_LEAN_AND_MEAN
32 !if "$(GENERATE_PDB)" == "yes"
33 CPDBFLAGS = /pdb:$(CLIENT:.exe=.pdb)
34 SPDBFLAGS = /pdb:$(SERVER:.exe=.pdb)
35 !endif
37 $(CLIENT): $(OBJS) $(COBJS)
38 $(LINK) $(LD_EXEFLAGS) $(CPDBFLAGS) $(SETARGV) $(OBJS) $(COBJS) $(PREOUT)$@ $(PRELIBS)$(LIBS)
39 @if exist $@.manifest echo ^ ^ ^ Embedding manifest using $(MT) && \
40 $(MT) -nologo -manifest $@.manifest -outputresource:$@;#1 && del /q $@.manifest
42 $(SERVER): $(OBJS) $(SOBJS)
43 $(LINK) $(LD_EXEFLAGS) $(SPDBFLAGS) $(SETARGV) $(OBJS) $(SOBJS) $(PREOUT)$@ $(PRELIBS)$(LIBS)
44 @if exist $@.manifest echo ^ ^ ^ Embedding manifest using $(MT) && \
45 $(MT) -nologo -manifest $@.manifest -outputresource:$@;#1 && del /q $@.manifest
47 clean::
48 del /q Filesystem.cpp Filesystem.h
50 !include .depend.mak