blob: 08465b55e3e22afec74f259f8bb691f88925aed2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#----------------------------------------------------------------------------
# $Id$
#
# Makefile for the TPCLS library in the C++NPv2, Chapter 7 example.
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
# 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
|