# -*- Makefile -*- #---------------------------------------------------------------------------- # Makefile.TPCLS,v 1.4 2003/12/24 17:17:14 dhinton Exp # # Makefile for the TPCLS library in the C++NPv2, Chapter 7 example. #---------------------------------------------------------------------------- MAKEFILE = Makefile.TPCLS #---------------------------------------------------------------------------- # Local macros #---------------------------------------------------------------------------- # This example uses SSL. ifeq ($(ssl),) default: @echo 'This example requires SSL; build with make ssl=1' endif #ssl SHLIB = libTPCLS.$(SOEXT) FILES = TPC_Logging_Server \ Logging_Handler LSRC = $(addsuffix .cpp,$(FILES)) LIBS += $(ACELIB) BUILD = $(VSHLIB) #---------------------------------------------------------------------------- # Include macros and targets #---------------------------------------------------------------------------- include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU include $(ACE_ROOT)/include/makeinclude/macros.GNU include $(ACE_ROOT)/include/makeinclude/rules.common.GNU include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU include $(ACE_ROOT)/include/makeinclude/rules.local.GNU #---------------------------------------------------------------------------- # Local targets #---------------------------------------------------------------------------- # To remake the DLL_Test source with xlC on AIX, it works # best to wipe out any previously-created tempinc directory. # The compiler/linker isn't too smart about instantiating templates... ifdef TEMPINCDIR COMPILE.cc := $(RM) -rf tempinc; $(COMPILE.cc) endif ifneq ($(ssl),) CPPFLAGS += $(PLATFORM_SSL_CPPFLAGS) LIBS += $(PLATFORM_SSL_LIBS) LDFLAGS += $(PLATFORM_SSL_LDFLAGS) endif # ssl ifeq ($(shared_libs),1) ifneq ($(SHLIB),) CPPFLAGS += -DTPCLS_BUILD_DLL endif endif