summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/Cubit/COOL/MT_Cubit/Makefile
blob: d605120ca984f26ee96bd0082323300b336034f9 (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
#----------------------------------------------------------------------------
# $Id$
#
#	Makefile for the CHORUS COOL Cubit tests
#----------------------------------------------------------------------------

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

IDL_SRC = cubit.cpp cubit.H sk_cubit.C sk_cubit.H

SRC = $(IDL_SRC) \
	cubit_impl.cpp \
	server.cpp \
	client.cpp \
	Task_Client.cpp \
	Util_Thread.cpp

SVR_OBJS = cubit_impl.o \
	server.o \
	cubit.o

CLT_OBJS = Task_Client.o \
	client.o \
	cubit.o \
	Util_Thread.o

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

include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
include $(ACE_ROOT)/include/makeinclude/macros.GNU
include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU
include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU
include $(ACE_ROOT)/include/makeinclude/rules.local.GNU

#----------------------------------------------------------------------------
#	CHORUS related macros and target settings.
#----------------------------------------------------------------------------

CHORUS_BINDIR = $(CHORUS_ROOT)/bin
CHORUS_LIBDIR = $(CHORUS_ROOT)/lib
CHORUS_INCDIR = $(CHORUS_ROOT)/include

CPPFLAGS += -I$(CHORUS_INCDIR) -I$(CHORUS_ROOT)
LDFLAGS  += -L$(CHORUS_LIBDIR) -R$(CHORUS_LIBDIR) -L$(ACE)/ace
IDLFLAGS = --stub-header --stub-impl --skeleton-header --skeleton-impl --no-local --no-any --binding Cubit Cubit_Impl

# pccTimer will eventually get integrated into ACE.  It is specific for
# ClassiX on VME
ifdef CHORUS
  SRC += pccTimer.cpp
  CLT_OBJS += pccTimer.o
  LDLIBS += -lOrb
else
  LDLIBS += -lOrb-mt
endif

VLDLIBS := $(LDLIBS:%=%$(VAR)) $(ACELIB) $(LIBS)

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

all: $(IDL_SRC) server client

$(IDL_SRC): cubit.idl
	$(CHORUS_BINDIR)/chic $(IDLFLAGS) cubit.idl
	-/bin/mv cubit.C cubit.cpp

server: $(addprefix $(VDIR),$(SVR_OBJS))
	$(LINK.cc) -o server $(addprefix $(VDIR),$(SVR_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITSRV) $(VLDLIBS) $(POSTLINK)

client: $(addprefix $(VDIR),$(CLT_OBJS))
	$(LINK.cc) -o client $(addprefix $(VDIR),$(CLT_OBJS)) $(LDFLAGS) $(ITIIOP) $(ITCLT) $(VLDLIBS) $(POSTLINK)

realclean: clean
	-/bin/rm -rf cubit.cpp cubit.H sk_cubit.C sk_cubit.H server client

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