summaryrefslogtreecommitdiff
path: root/TAO/examples/Quoter/Makefile
blob: f93b28904f7d592cb86bf61ea4421ff7b8f860e7 (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
# $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

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


IDL_SRC	= \
	QuoterC.cpp QuoterS.cpp

CLIENT_SRCS = \
	client.cpp

SERVER_SRCS = \
	server.cpp Quoter_i.cpp

FACTORY_FINDER_SRCS = \
	Factory_Finder.cpp Factory_Finder_i.cpp

GENERIC_FACTORY_SRCS = \
	Generic_Factory.cpp Generic_Factory_i.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_i.o
FACTORY_FINDER_OBJS = $(COMMON_OBJS) Factory_Finder.o Factory_Finder_i.o
GENERIC_FACTORY_OBJS = $(COMMON_OBJS) Generic_Factory.o Generic_Factory_i.o

ifdef trader

LDLIBS = -lorbsvcs -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) $(TSS_ORB_FLAG)

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

$(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