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

NAME = client

NO_FULL_PATH=1

OBJFILES = \
	$(OBJDIR)\client.$(OBJ_EXT)

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

LIBFILES = \
	Quoter_Idl_Lib$(LIB_DECORATOR).lib \
	TAO_CosNaming$(LIB_DECORATOR).lib \
	TAO_Svc_Utils$(LIB_DECORATOR).lib \
	TAO_Messaging$(LIB_DECORATOR).lib \
	TAO_IORTable$(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)" \
	-I"..\idl" \
	$(LIB_FLAGS) \
	$(DLL_FLAGS)

CPPDIR = .
CDIR   = .

INCDIR_NAME = TAO\docs\tutorials\Quoter\Naming_Service

#
# idl_files rules
#


#
# 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 Stock_Factory_i.h $(INSTALL_DIR)\include\$(INCDIR_NAME)\Stock_Factory_i.h 1> NUL
	-@if not exist $(INSTALL_DIR)\include\$(INCDIR_NAME)\. mkdir $(INSTALL_DIR)\include\$(INCDIR_NAME)\.
	-&copy /Y Stock_i.h $(INSTALL_DIR)\include\$(INCDIR_NAME)\Stock_i.h 1> NUL
