summaryrefslogtreecommitdiff
path: root/TAO/examples/Quoter/Makefile
blob: 3376399c2688d470bb8a6dacdd20172133b6c18d (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
# $Id$
#
# needed for the trading service stuff

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

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

ifdef trader
  CPPFLAGS += -DTRADER_AVAILABLE
endif # trader

LDLIBS = -lTAO_CosLifeCycle -lTAO_CosNaming -lTAO_Svc_Utils -lTAO_IORTable -lTAO_PortableServer -lTAO

IDL_FILES = Quoter
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

BIN2 = client server Factory_Finder Generic_Factory

TAO_IDLFLAGS += -I$(TAO_ROOT)/orbsvcs/orbsvcs -Ge 1
#----------------------------------------------------------------------------
#       Include macros and targets
#----------------------------------------------------------------------------

include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU

ifeq ($(ACE_HAS_GNUG_PRE_2_8),1)

  # Since older g++ cannot handle nested classes properly, this test
  # will not build on g++ prior to 2.8.0.
  all clean realclean:
	@echo examples/Quoter is not built with older versions of g++

else # ! ACE_HAS_GNUG_PRE_2_8

include $(ACE_ROOT)/include/makeinclude/macros.GNU
include $(TAO_ROOT)/rules.tao.GNU

#### If the TAO orbsvcs library wasn't built with sufficient components,
#### don't try to build here.
TAO_ORBSVCS := $(shell sh $(ACE_ROOT)/bin/ace_components --orbsvcs)
ifeq (Naming,$(findstring Naming,$(TAO_ORBSVCS)))
  ifeq (LifeCycle,$(findstring LifeCycle,$(TAO_ORBSVCS)))
    ifeq ($(minimum_corba),0)
      BIN = $(BIN2)
    endif # minimum_corba
  endif # LifeCycle
endif # Naming

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...

LDFLAGS += -L$(TAO_ROOT)/orbsvcs/orbsvcs -L$(TAO_ROOT)/tao
CPPFLAGS += -I$(TAO_ROOT)/orbsvcs -I$(TAO_ROOT)/orbsvcs/orbsvcs \
        -I$(TAO_ROOT)
TAO_IDLFLAGS +=  -I$(TAO_ROOT)/orbsvcs/orbsvcs

realclean: clean
	-$(RM) *C.* *S.* *S_T.*

.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)

endif # ! ACE_HAS_GNUG_PRE_2_8

#----------------------------------------------------------------------------
#       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