summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/Security/SecurityLevel1/Makefile
blob: 1fd9165f7f5d7b8855af1db96010ec91dc5cbda9 (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
#----------------------------------------------------------------------------
#
#       $Id$
#
#----------------------------------------------------------------------------

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

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

IDL_FILES += \
        SLevel1_Test

IDL_SRC = \
        $(addsuffix S.cpp, $(IDL_FILES)) \
        $(addsuffix C.cpp, $(IDL_FILES))

BIN_UNCHECKED = client server

SRC = $(addsuffix .cpp, $(BIN) $(IDLFILES) SLevel1_Test_i) $(IDL_SRC)

CLIENT_OBJS = client.o SLevel1_TestC.o SLevel1_TestS.o
SERVER_OBJS = server.o SLevel1_Test_i.o SLevel1_TestC.o SLevel1_TestS.o

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

#### If the TAO orbsvcs library wasn't built with sufficient components,
#### don't try to build here.

ifeq ($(ssl),1)
  BIN = $(BIN_UNCHECKED)
endif  # ssl == 1

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

# Depending on what the new library is called: that 
# should also be linked

ifeq ($(static_libs_only),1)
CLNT_LIBS += -lTAO_SSLIOP
SRVR_LIBS += -lTAO_SSLIOP
endif  # static_libs_only = 1

CLNT_LIBS += -lTAO_PortableServer $(TAO_CLNT_LIBS)
SRVR_LIBS += -lTAO_PortableServer $(TAO_SRVR_LIBS)

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

# Extra dependencies not caught by make depend.

.PRECIOUS: $(foreach file, $(IDL_FILES), $(foreach ext, $(IDL_EXT), $(file)$(ext))))

realclean: clean
	-$(RM) $(foreach file, $(IDL_FILES), $(foreach ext, $(IDL_EXT), $(file)$(ext)))

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

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


# 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