summaryrefslogtreecommitdiff
path: root/TAO/tests/Quoter/Makefile
blob: e13c3bb80b3c086945ce50b59166c1d35b854df8 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
#
# $Id$
#
# needed for the trading service stuff

ifndef TAO_ROOT
  TAO_ROOT = $(ACE_ROOT)/TAO
endif # TAO_ROOT

TAO_IDLFLAGS=-I$(TAO_ROOT)/orbsvcs/orbsvcs

ifdef trader

ifndef STL_ROOT
  STL_ROOT=/project/doc/irfan/ObjectSpace/SC4.0
endif # STL_ROOT

STD=$(STL_ROOT)/ospace/std
STL=$(STL_ROOT)/stl

include $(STL_ROOT)/config/local.cfg

CC_INCLUDES += -I$(STD)
CC_INCLUDES += -pta

CPPFLAGS += \
        -I$(TOOLKIT) \
        $(CC_INCLUDES) \
        $(CC_FLAGS) \
        $(CC_DEFINES) \
        $(CC_EH) \
        $(CC_MT)


ifndef exceptions
CPPFLAGS += -DOS_NO_EXCEPTION_SPECIFIER
else
CPPFLAGS += -DOS_STL_ASSERT
endif

LDFLAGS += -L$(STL_ROOT)/lib

endif # trader
# end of the trading service stuff

BIN = client server Factory_Finder Generic_Factory 

# The following lines tell the souce code that the trading
# service is available.

ifdef trader

CPPFLAGS += -DTRADER_AVAILABLE

endif # trader

BUILD = $(BIN)


IDL_SRC	= \
	QuoterC.cpp QuoterS.cpp

CLIENT_SRCS = \
	client.cpp 

SERVER_SRCS = \
	server.cpp Quoter_Impl.cpp

FACTORY_FINDER_SRCS = \
	Factory_Finder.cpp Factory_Finder_Impl.cpp

GENERIC_FACTORY_SRCS = \
	Generic_Factory.cpp Generic_Factory_Impl.cpp 


LSRC= \
	$(IDL_SRC) $(CLIENT_SRCS) $(SERVER_SRCS) \
	$(FACTORY_FINDER_SRCS) $(GENERIC_FACTORY_SRCS)

COMMON_OBJS = QuoterC.o QuoterS.o 
CLIENT_OBJS = $(COMMON_OBJS) client.o 
SERVER_OBJS = $(COMMON_OBJS) server.o Quoter_Impl.o 
FACTORY_FINDER_OBJS = $(COMMON_OBJS) Factory_Finder.o Factory_Finder_Impl.o 
GENERIC_FACTORY_OBJS = $(COMMON_OBJS) Generic_Factory.o Generic_Factory_Impl.o 

ifdef trader

LDLIBS = -lorbsvcs -lospace -lTAO

else

LDLIBS = -lorbsvcs -lTAO

endif

#----------------------------------------------------------------------------
#	Include macros and targets
#----------------------------------------------------------------------------

include	$(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
include	$(ACE_ROOT)/include/makeinclude/macros.GNU
include $(TAO_ROOT)/rules.tao.GNU
include	$(ACE_ROOT)/include/makeinclude/rules.common.GNU
include	$(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
include	$(ACE_ROOT)/include/makeinclude/rules.local.GNU

#### Local rules and variables...

TSS_ORB_FLAG = #-DTAO_HAS_TSS_ORBCORE
LDFLAGS += -L$(TAO_ROOT)/orbsvcs/orbsvcs -L$(TAO_ROOT)/tao
CPPFLAGS += -I$(TAO_ROOT)/orbsvcs -I$(TAO_ROOT)/orbsvcs/orbsvcs \
	-I$(TAO_ROOT) -I$(TAO_ROOT)/tao/compat $(TSS_ORB_FLAG)#-H

realclean: clean
	-/bin/rm -rf QuoterC.* QuoterS.*

$(IDL_SRC): Quoter.idl 
	$(TAO_ROOT)/TAO_IDL/tao_idl Quoter.idl -I$(TAO_ROOT)/orbsvcs/orbsvcs

.PRECIOUS: $(IDL_SRC)

client: $(addprefix $(VDIR),$(CLIENT_OBJS))
	$(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK)

server: $(addprefix $(VDIR),$(SERVER_OBJS))
	$(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK)

Factory_Finder: $(addprefix $(VDIR),$(FACTORY_FINDER_OBJS))
	$(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK)

Generic_Factory: $(addprefix $(VDIR),$(GENERIC_FACTORY_OBJS))
	$(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK)


#----------------------------------------------------------------------------
#	Dependencies
#----------------------------------------------------------------------------

# DO NOT DELETE THIS LINE -- g++dep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.



# IF YOU PUT ANYTHING HERE IT WILL GO AWAY