#
# MICO --- a CORBA 2.0 implementation
# Copyright (C) 1997 Kay Roemer & Arno Puder
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# Send comments and/or bug reports to:
#                mico@informatik.uni-frankfurt.de
#

!include ..\..\MakeVars.win32

CXXFLAGS = $(CXXFLAGS) /I. /I..\..\include /I..\..\include\windows

MICOLIBS = ..\..\win32-bin\lib\mico.lib

!ifdef VC8
mt:
	$(MT) -manifest diiclient.exe.manifest -outputresource:diiclient.exe;#1
	$(MT) -manifest diiserver.exe.manifest -outputresource:diiserver.exe;#1
	$(MT) -manifest siiclient.exe.manifest -outputresource:siiclient.exe;#1
	$(MT) -manifest siiserver.exe.manifest -outputresource:siiserver.exe;#1
!else
mt:
!endif

all: prg mt


prg: diiclient.exe diiserver.exe siiclient.exe siiserver.exe


diiclient.exe: diiclient.obj
	$(LINK) $(LINKFLAGS) /out:diiclient.exe diiclient.obj \
        $(MICOLIBS) $(SYSLIBS)

diiserver.exe: diiserver.obj
	$(LINK) $(LINKFLAGS) /out:diiserver.exe diiserver.obj \
        $(MICOLIBS) $(SYSLIBS)

siiclient.exe: siiclient.obj
	$(LINK) $(LINKFLAGS) /out:siiclient.exe siiclient.obj \
        $(MICOLIBS) $(SYSLIBS)

siiserver.exe: siiserver.obj
	$(LINK) $(LINKFLAGS) /out:siiserver.exe siiserver.obj \
        $(MICOLIBS) $(SYSLIBS)

clean:
	$(RM) /f *.exe *.obj *.pdb 2> nul