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

NAME = client

NO_FULL_PATH=1

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

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

LIBFILES = \
	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\orbsvcs\examples\Security\Send_File

#
# idl_files rules
#


idl_files_1= testC.inl testS.inl testS_T.inl testC.h testS.h testS_T.h testC.cpp testS.cpp testS_T.cpp
$(idl_files_1): test.idl
	..\..\..\..\..\bin\tao_idl -Ge 1 -Wb,pre_include=ace\pre.h -Wb,post_include=ace\post.h -I$(TAO_ROOT) test.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 testC.h $(INSTALL_DIR)\include\$(INCDIR_NAME)\testC.h 1> NUL
	-@if not exist $(INSTALL_DIR)\include\$(INCDIR_NAME)\. mkdir $(INSTALL_DIR)\include\$(INCDIR_NAME)\.
	-&copy /Y testS.h $(INSTALL_DIR)\include\$(INCDIR_NAME)\testS.h 1> NUL
	-@if not exist $(INSTALL_DIR)\include\$(INCDIR_NAME)\. mkdir $(INSTALL_DIR)\include\$(INCDIR_NAME)\.
	-&copy /Y testS_T.h $(INSTALL_DIR)\include\$(INCDIR_NAME)\testS_T.h 1> NUL
	-@if not exist $(INSTALL_DIR)\include\$(INCDIR_NAME)\. mkdir $(INSTALL_DIR)\include\$(INCDIR_NAME)\.
	-&copy /Y testS_T.cpp $(INSTALL_DIR)\include\$(INCDIR_NAME)\testS_T.cpp 1> NUL
	-@if not exist $(INSTALL_DIR)\include\$(INCDIR_NAME)\. mkdir $(INSTALL_DIR)\include\$(INCDIR_NAME)\.
	-&copy /Y testC.inl $(INSTALL_DIR)\include\$(INCDIR_NAME)\testC.inl 1> NUL
	-@if not exist $(INSTALL_DIR)\include\$(INCDIR_NAME)\. mkdir $(INSTALL_DIR)\include\$(INCDIR_NAME)\.
	-&copy /Y testS.inl $(INSTALL_DIR)\include\$(INCDIR_NAME)\testS.inl 1> NUL
	-@if not exist $(INSTALL_DIR)\include\$(INCDIR_NAME)\. mkdir $(INSTALL_DIR)\include\$(INCDIR_NAME)\.
	-&copy /Y testS_T.inl $(INSTALL_DIR)\include\$(INCDIR_NAME)\testS_T.inl 1> NUL
	-@if not exist $(INSTALL_DIR)\include\$(INCDIR_NAME)\. mkdir $(INSTALL_DIR)\include\$(INCDIR_NAME)\.
	-&copy /Y test.idl $(INSTALL_DIR)\include\$(INCDIR_NAME)\test.idl 1> NUL
