# Makefile for building the client exe with Borland C++ Make

NAME = client

NO_FULL_PATH=1

OBJFILES = \
	$(OBJDIR)\Handler_i.$(OBJ_EXT) \
	$(OBJDIR)\QuoterC.$(OBJ_EXT) \
	$(OBJDIR)\QuoterS.$(OBJ_EXT) \
	$(OBJDIR)\client.$(OBJ_EXT)

LFLAGS = \
	-L"..\..\..\..\..\lib\$(CONFIG_SUBDIR)" \
	-j"..\..\..\..\..\lib\$(CONFIG_SUBDIR)"  \
	-L"..\..\..\..\..\lib\$(CONFIG_SUBDIR)" \
	-j"..\..\..\..\..\lib\$(CONFIG_SUBDIR)" 

LIBFILES = \
	TAO_Messaging$(LIB_DECORATOR).lib \
	TAO_PortableServer$(LIB_DECORATOR).lib \
	TAO_IORInterceptor$(LIB_DECORATOR).lib \
	TAO_ObjRefTemplate$(LIB_DECORATOR).lib \
	TAO_Valuetype$(LIB_DECORATOR).lib \
	TAO$(LIB_DECORATOR).lib \
	ACE$(LIB_DECORATOR).lib \
	$(DUMMY_VALUE_NOT_ENDING_IN_BACKSLASH)

!ifdef STATIC
LIB_FLAGS = \
        -DACE_AS_STATIC_LIBS \
        -DTAO_AS_STATIC_LIBS
!else
!endif

CFLAGS = \
	-I"..\..\..\..\.." \
	-I"$(TAO_ROOT)" \
	$(LIB_FLAGS) \
	$(DLL_FLAGS)

CPPDIR = .
CDIR   = .

INCDIR_NAME = TAO\docs\tutorials\Quoter\AMI

#
# idl_files rules
#


idl_files_1= QuoterC.inl QuoterS.inl QuoterS_T.inl QuoterC.h QuoterS.h QuoterS_T.h QuoterC.cpp QuoterS.cpp QuoterS_T.cpp
$(idl_files_1): Quoter.idl
	..\..\..\..\..\bin\tao_idl -Ge 1 -Wb,pre_include=ace\pre.h -Wb,post_include=ace\post.h -I$(TAO_ROOT) -GC Quoter.idl 

all: $(idl_files_1)

customclean_idl_files_1:
	@del $(idl_files_1) 2>nul

clean: customclean_idl_files_1

realclean: customclean_idl_files_1


#
# Override defaults in outputdir.bor
#
STATIC_DIR=.
DEBUG_DIR=.
PASCAL_DIR=.
UNICODE_DIR=.

INSTALL_DLLDIR=$(INSTALL_DIR)\lib
INCLUDES_INSTALL=1

BASE_BINDIR = .

!include <$(ACE_ROOT)\include\makeinclude\build_exe.bor>

includes_install: $(INCLUDES)
	-@if not exist $(INSTALL_DIR)\include\$(INCDIR_NAME)\. mkdir $(INSTALL_DIR)\include\$(INCDIR_NAME)\.
	-&copy /Y Handler_i.h $(INSTALL_DIR)\include\$(INCDIR_NAME)\Handler_i.h 1> NUL
	-@if not exist $(INSTALL_DIR)\include\$(INCDIR_NAME)\. mkdir $(INSTALL_DIR)\include\$(INCDIR_NAME)\.
	-&copy /Y QuoterC.h $(INSTALL_DIR)\include\$(INCDIR_NAME)\QuoterC.h 1> NUL
	-@if not exist $(INSTALL_DIR)\include\$(INCDIR_NAME)\. mkdir $(INSTALL_DIR)\include\$(INCDIR_NAME)\.
	-&copy /Y QuoterS.h $(INSTALL_DIR)\include\$(INCDIR_NAME)\QuoterS.h 1> NUL
	-@if not exist $(INSTALL_DIR)\include\$(INCDIR_NAME)\. mkdir $(INSTALL_DIR)\include\$(INCDIR_NAME)\.
	-&copy /Y QuoterS_T.h $(INSTALL_DIR)\include\$(INCDIR_NAME)\QuoterS_T.h 1> NUL
	-@if not exist $(INSTALL_DIR)\include\$(INCDIR_NAME)\. mkdir $(INSTALL_DIR)\include\$(INCDIR_NAME)\.
	-&copy /Y QuoterS_T.cpp $(INSTALL_DIR)\include\$(INCDIR_NAME)\QuoterS_T.cpp 1> NUL
	-@if not exist $(INSTALL_DIR)\include\$(INCDIR_NAME)\. mkdir $(INSTALL_DIR)\include\$(INCDIR_NAME)\.
	-&copy /Y QuoterC.inl $(INSTALL_DIR)\include\$(INCDIR_NAME)\QuoterC.inl 1> NUL
	-@if not exist $(INSTALL_DIR)\include\$(INCDIR_NAME)\. mkdir $(INSTALL_DIR)\include\$(INCDIR_NAME)\.
	-&copy /Y QuoterS.inl $(INSTALL_DIR)\include\$(INCDIR_NAME)\QuoterS.inl 1> NUL
	-@if not exist $(INSTALL_DIR)\include\$(INCDIR_NAME)\. mkdir $(INSTALL_DIR)\include\$(INCDIR_NAME)\.
	-&copy /Y QuoterS_T.inl $(INSTALL_DIR)\include\$(INCDIR_NAME)\QuoterS_T.inl 1> NUL
	-@if not exist $(INSTALL_DIR)\include\$(INCDIR_NAME)\. mkdir $(INSTALL_DIR)\include\$(INCDIR_NAME)\.
	-&copy /Y Quoter.idl $(INSTALL_DIR)\include\$(INCDIR_NAME)\Quoter.idl 1> NUL
