summaryrefslogtreecommitdiff
path: root/cpp/demo
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2009-12-09 12:04:03 -0330
committerMatthew Newhook <matthew@zeroc.com>2009-12-09 12:04:03 -0330
commita2ee735db1a55ff3ca83139d858a0d0d3810cb94 (patch)
tree146a36892cb046692aa7e91ca9e3b55af2f44e24 /cpp/demo
parentAdded some includes to installer (diff)
downloadice-a2ee735db1a55ff3ca83139d858a0d0d3810cb94.tar.bz2
ice-a2ee735db1a55ff3ca83139d858a0d0d3810cb94.tar.xz
ice-a2ee735db1a55ff3ca83139d858a0d0d3810cb94.zip
http://bugzilla/bugzilla/show_bug.cgi?id=4384 - parallel build errors with src/Freeze.
Diffstat (limited to 'cpp/demo')
-rw-r--r--cpp/demo/Freeze/backup/Makefile5
-rw-r--r--cpp/demo/Freeze/bench/Makefile5
-rw-r--r--cpp/demo/Freeze/customEvictor/Makefile5
-rw-r--r--cpp/demo/Freeze/library/Makefile5
-rw-r--r--cpp/demo/Freeze/phonebook/Makefile5
-rw-r--r--cpp/demo/Freeze/transform/Makefile8
6 files changed, 26 insertions, 7 deletions
diff --git a/cpp/demo/Freeze/backup/Makefile b/cpp/demo/Freeze/backup/Makefile
index 70cd610cc6d..e9e86c97a62 100644
--- a/cpp/demo/Freeze/backup/Makefile
+++ b/cpp/demo/Freeze/backup/Makefile
@@ -27,7 +27,10 @@ $(CLIENT): $(OBJS) $(COBJS)
rm -f $@
$(CXX) $(LDFLAGS) -o $@ $(OBJS) $(COBJS) $(DB_RPATH_LINK) -lFreeze $(LIBS)
-IntLongMap.h IntLongMap.cpp: $(SLICE2FREEZE) $(SLICEPARSERLIB)
+# The slice2freeze rules are structured like this to avoid issues with
+# parallel make.
+IntLongMap.h: IntLongMap.cpp
+IntLongMap.cpp: $(SLICE2FREEZE) $(SLICEPARSERLIB)
rm -f IntLongMap.h IntLongMap.cpp
$(SLICE2FREEZE) -I$(slicedir) --dict IntLongMap,int,long IntLongMap
diff --git a/cpp/demo/Freeze/bench/Makefile b/cpp/demo/Freeze/bench/Makefile
index a8ed969a123..3ee48516a98 100644
--- a/cpp/demo/Freeze/bench/Makefile
+++ b/cpp/demo/Freeze/bench/Makefile
@@ -27,7 +27,10 @@ $(CLIENT): $(OBJS) $(COBJS)
rm -f $@
$(CXX) $(LDFLAGS) -o $@ $(OBJS) $(COBJS) $(DB_RPATH_LINK) -lFreeze $(LIBS)
-BenchTypes.h BenchTypes.cpp: Test.ice $(SLICE2FREEZE) $(SLICEPARSERLIB)
+# The slice2freeze rules are structured like this to avoid issues with
+# parallel make.
+BenchTypes.h: BenchTypes.cpp
+BenchTypes.cpp: Test.ice $(SLICE2FREEZE) $(SLICEPARSERLIB)
rm -f BenchTypes.h BenchTypes.cpp
$(SLICE2FREEZE) -I$(slicedir) --dict Demo::IntIntMap,int,int --dict Demo::Struct1Struct2Map,Demo::Struct1,Demo::Struct2 \
--dict Demo::Struct1Class1Map,Demo::Struct1,Demo::Class1 \
diff --git a/cpp/demo/Freeze/customEvictor/Makefile b/cpp/demo/Freeze/customEvictor/Makefile
index 5d7e7caa33c..51225ecec3d 100644
--- a/cpp/demo/Freeze/customEvictor/Makefile
+++ b/cpp/demo/Freeze/customEvictor/Makefile
@@ -45,7 +45,10 @@ $(SERVER): $(OBJS) $(SOBJS)
rm -f $@
$(CXX) $(LDFLAGS) -o $@ $(OBJS) $(SOBJS) $(DB_RPATH_LINK) -lFreeze $(LIBS)
-Database.h Database.cpp: ItemInfo.ice $(SLICE2FREEZE) $(SLICEPARSERLIB)
+# The slice2freeze rules are structured like this to avoid issues with
+# parallel make.
+Database.h: Database.cpp
+Database.cpp: ItemInfo.ice $(SLICE2FREEZE) $(SLICEPARSERLIB)
rm -f Database.h Database.cpp
$(SLICE2FREEZE) -I$(slicedir) --dict Database,string,Warehouse::ItemInfo Database ItemInfo.ice
diff --git a/cpp/demo/Freeze/library/Makefile b/cpp/demo/Freeze/library/Makefile
index 2e7fc5deb22..20b0e9789fe 100644
--- a/cpp/demo/Freeze/library/Makefile
+++ b/cpp/demo/Freeze/library/Makefile
@@ -61,7 +61,10 @@ $(COLLOCATED): $(OBJS) $(COLOBJS)
rm -f $@
$(CXX) $(LDFLAGS) -o $@ $(OBJS) $(COLOBJS) $(DB_RPATH_LINK) -lFreeze $(LIBS) $(READLINE_LIBS)
-LibraryTypes.h LibraryTypes.cpp: Library.ice $(SLICE2FREEZE) $(SLICEPARSERLIB)
+# The slice2freeze rules are structured like this to avoid issues with
+# parallel make.
+LibraryTypes.h: LibraryTypes.cpp
+LibraryTypes.cpp: Library.ice $(SLICE2FREEZE) $(SLICEPARSERLIB)
rm -f LibraryTypes.h LibraryTypes.cpp
$(SLICE2FREEZE) --ice -I$(slicedir) --dict StringIsbnSeqDict,string,Ice::StringSeq LibraryTypes $(slicedir)/Ice/BuiltinSequences.ice Library.ice
diff --git a/cpp/demo/Freeze/phonebook/Makefile b/cpp/demo/Freeze/phonebook/Makefile
index 89993a02c82..248bb49bcb4 100644
--- a/cpp/demo/Freeze/phonebook/Makefile
+++ b/cpp/demo/Freeze/phonebook/Makefile
@@ -61,7 +61,10 @@ $(COLLOCATED): $(OBJS) $(COLOBJS)
rm -f $@
$(CXX) $(LDFLAGS) -o $@ $(OBJS) $(COLOBJS) $(DB_RPATH_LINK) -lFreeze $(LIBS) $(READLINE_LIBS)
-NameIndex.h NameIndex.cpp: PhoneBook.ice $(SLICE2FREEZE) $(SLICEPARSERLIB)
+# The slice2freeze rules are structured like this to avoid issues with
+# parallel make.
+NameIndex.h: NameIndex.cpp
+NameIndex.cpp: PhoneBook.ice $(SLICE2FREEZE) $(SLICEPARSERLIB)
rm -f NameIndex.h NameIndex.cpp
$(SLICE2FREEZE) $(ICECPPFLAGS) --index NameIndex,Demo::Contact,name,case-insensitive NameIndex PhoneBook.ice
diff --git a/cpp/demo/Freeze/transform/Makefile b/cpp/demo/Freeze/transform/Makefile
index 9178a16a2f0..053c13fb4a1 100644
--- a/cpp/demo/Freeze/transform/Makefile
+++ b/cpp/demo/Freeze/transform/Makefile
@@ -48,12 +48,16 @@ $(RECREATE): $(RECREATE_OBJS)
$(CXX) $(LDFLAGS) -o $@ $(RECREATE_OBJS) $(DB_RPATH_LINK) -lFreeze $(LIBS)
-Contacts.h Contacts.cpp: ContactData.ice $(SLICE2FREEZE) $(SLICEPARSERLIB)
+# The slice2freeze rules are structured like this to avoid issues with
+# parallel make.
+Contacts.h: Contacts.cpp
+Contacts.cpp: ContactData.ice $(SLICE2FREEZE) $(SLICEPARSERLIB)
rm -f Contacts.h Contacts.cpp
$(SLICE2FREEZE) -I$(slicedir) --dict Demo::Contacts,string,Demo::ContactData,sort \
--dict-index Demo::Contacts,phoneNumber,sort Contacts ContactData.ice
-NewContacts.h NewContacts.cpp: NewContactData.ice $(SLICE2FREEZE) $(SLICEPARSERLIB)
+NewContacts.h: NewContacts.cpp
+NewContacts.cpp: NewContactData.ice $(SLICE2FREEZE) $(SLICEPARSERLIB)
rm -f NewContacts.h NewContacts.cpp
$(SLICE2FREEZE) -I$(slicedir) --dict Demo::NewContacts,string,Demo::ContactData,sort \
--dict-index Demo::NewContacts,phoneNumber,sort NewContacts NewContactData.ice