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

NAME = server

NO_FULL_PATH=1

OBJFILES = \
	$(OBJDIR)\QuoterC.$(OBJ_EXT) \
	$(OBJDIR)\QuoterS.$(OBJ_EXT) \
	$(OBJDIR)\Stock_Factory_Locator_i.$(OBJ_EXT) \
	$(OBJDIR)\Stock_Factory_i.$(OBJ_EXT) \
	$(OBJDIR)\Stock_i.$(OBJ_EXT) \
	$(OBJDIR)\server.$(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_Valuetype$(LIB_DECORATOR).lib \
	TAO_CosNaming$(LIB_DECORATOR).lib \
	TAO_PortableServer$(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"$(TAO_ROOT)\orbsvcs" \
	$(LIB_FLAGS) \
	$(DLL_FLAGS)

CPPDIR = .
CDIR   = .

INCDIR_NAME = TAO\docs\tutorials\Quoter\On_Demand_Activation

#
# 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) -I$(TAO_ROOT)/orbsvcs -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


#
# pkgconfig_files rules
#


#
# pidl_files rules
#


#
# Override defaults in outputdir.bor
#
STATIC_DIR=.
DEBUG_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 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 Stock_Factory_Locator_i.h $(INSTALL_DIR)\include\$(INCDIR_NAME)\Stock_Factory_Locator_i.h 1> NUL
	-@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
	-@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
