summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/ImplRepo/Makefile
blob: 5155124559d2d185e262d2dc0413ffb2a84e33d3 (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
#----------------------------------------------------------------------------
#
# $Id$
#
#----------------------------------------------------------------------------

#----------------------------------------------------------------------------
#       Local macros
#----------------------------------------------------------------------------

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

LDLIBS = -lTAO_IORTable -lTAO_PortableServer -lTAO
CPPFLAGS += -I$(TAO_ROOT)

IDL_FILES = Airplane Nestea
IDL_SRC = AirplaneS.cpp AirplaneC.cpp NesteaS.cpp NesteaC.cpp
PROG_SRCS = \
            airplane_client.cpp \
            airplane_server.cpp \
            airplane_client_i.cpp \
            airplane_server_i.cpp \
            airplane_i.cpp \
            nestea_client.cpp \
            nestea_server.cpp \
            nestea_client_i.cpp \
            nestea_server_i.cpp \
            nestea_i.cpp

SRC=$(IDL_SRC) $(PROG_SRCS)

AIRPLANE_CLIENT_OBJS =  AirplaneC.o \
                        AirplaneS.o \
                        airplane_client.o \
                        airplane_client_i.o

AIRPLANE_SERVER_OBJS =  AirplaneC.o \
                        AirplaneS.o \
                        airplane_server.o \
                        airplane_server_i.o \
                        airplane_i.o

NESTEA_CLIENT_OBJS =  NesteaC.o \
                      NesteaS.o \
                      nestea_client.o \
                      nestea_client_i.o

NESTEA_SERVER_OBJS =  NesteaC.o \
                      NesteaS.o \
                      nestea_server.o \
                      nestea_server_i.o \
                      nestea_i.o

BIN_UNCHECKED = \
      airplane_server \
      airplane_client \
      nestea_server \
      nestea_client

TAO_IDLFLAGS += -Ge 1

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

ifeq ($(minimum_corba),0)
  BIN = $(BIN_UNCHECKED)
endif # minimum_corba

include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
include $(TAO_ROOT)/taoconfig.mk

#----------------------------------------------------------------------------
#       Local targets
#----------------------------------------------------------------------------

IDL_EXT=C.h C.i C.cpp S.h S.i S.cpp S_T.h S_T.i S_T.cpp

.PRECIOUS: $(foreach ext, $(IDL_EXT), Airplane$(ext))

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

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

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

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

realclean: clean
	-$(RM) $(foreach ext, $(IDL_EXT), Airplane$(ext)) \
               $(foreach ext, $(IDL_EXT), Nestea$(ext))

# 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