2 # **********************************************************************
4 # Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
6 # This copy of Ice is licensed to you under the terms described in the
7 # ICE_LICENSE file included in this distribution.
9 # **********************************************************************
15 COLLOCATED
= collocated
17 TARGETS
= $(CLIENT
) $(SERVER
) $(COLLOCATED
)
27 SOBJS
= PhoneBookI.o \
41 SRCS
= $(OBJS
:.o
=.
cpp) \
46 SLICE_SRCS
= PhoneBook.ice
48 include $(top_srcdir
)/config
/Make.rules
50 CPPFLAGS
:= -I.
$(CPPFLAGS
) $(READLINE_FLAGS
)
52 $(CLIENT
): $(OBJS
) $(COBJS
)
54 $(CXX
) $(LDFLAGS
) -o
$@
$(OBJS
) $(COBJS
) $(LIBS
) $(READLINE_LIBS
)
56 $(SERVER
): $(OBJS
) $(SOBJS
)
58 $(CXX
) $(LDFLAGS
) -o
$@
$(OBJS
) $(SOBJS
) $(DB_RPATH_LINK
) -lFreeze
$(LIBS
)
60 $(COLLOCATED
): $(OBJS
) $(COLOBJS
)
62 $(CXX
) $(LDFLAGS
) -o
$@
$(OBJS
) $(COLOBJS
) $(DB_RPATH_LINK
) -lFreeze
$(LIBS
) $(READLINE_LIBS
)
64 # The slice2freeze rules are structured like this to avoid issues with
66 NameIndex.h
: NameIndex.
cpp
67 NameIndex.
cpp: PhoneBook.ice
$(SLICE2FREEZE
) $(SLICEPARSERLIB
)
68 rm -f NameIndex.h NameIndex.
cpp
69 $(SLICE2FREEZE
) $(ICECPPFLAGS
) --index NameIndex
,Demo
::Contact
,name
,case-insensitive NameIndex PhoneBook.ice
72 -rm -f NameIndex.h NameIndex.
cpp