Index: trunk/SophyaExt/JThreadsC++/Examples/Makefile.mgr
===================================================================
--- trunk/SophyaExt/JThreadsC++/Examples/Makefile.mgr	(revision 2735)
+++ trunk/SophyaExt/JThreadsC++/Examples/Makefile.mgr	(revision 2735)
@@ -0,0 +1,52 @@
+#  Makefile for building JTC JThreads/C++ 
+#  Source code from Object Oriented Concepts  www.ooc.com
+#  R. Ansari      LAL-IN2P3/CNRS    05/2000
+
+CXX := g++
+ifdef SOPHYACXX
+  CXX := $(SOPHYACXX)
+endif
+
+SYSNOM = $(shell echo `uname`)
+SYSNOMD = $(shell echo `uname | sed 's/-//'`) 
+SYSCOMPNOM = $(SYSNOM)-$(CXX)
+
+INC = $(JTCBASEREP)/Include
+LIB = $(JTCBASEREP)/$(SYSCOMPNOM)/Libs
+SLB = $(JTCBASEREP)/$(SYSCOMPNOM)/ShLibs
+
+SYSLIBS = -lpthread 
+CPPFLAGS   := -I$(INC)  -D$(SYSNOMD)
+ifeq ($(CXX),cxx)
+  CPPFLAGS   :=  $(CPPFLAGS) -pthread 
+endif
+
+PROGS = hello clock diner conprod
+
+all : $(PROGS)
+	echo 'hello clock diner conprod built'
+
+clean :
+	rm -f *.o
+	rm -f $(PROGS)
+
+hello : hello.o
+	$(CXX) -o hello hello.o -L$(SLB) -lJTC $(SYSLIBS)
+hello.o : hello.cc
+	$(CXX) $(CPPFLAGS) -c -o hello.o hello.cc $(SYSLIBS) 
+
+diner : diner.o
+	$(CXX) -o diner diner.o -L$(SLB) -lJTC $(SYSLIBS) 
+diner.o : diner.cc
+	$(CXX) $(CPPFLAGS) -c -o diner.o diner.cc
+
+clock : clock.o
+	$(CXX) -o clock clock.o -L$(SLB) -lJTC $(SYSLIBS)
+clock.o : clock.cc
+	$(CXX) $(CPPFLAGS) -c -o clock.o clock.cc
+
+conprod : conprod.o
+	$(CXX) -o conprod conprod.o -L$(SLB) -lJTC $(SYSLIBS) 
+conprod.o : conprod.cc
+	$(CXX) $(CPPFLAGS) -c -o conprod.o conprod.cc
+
Index: trunk/SophyaExt/JThreadsC++/JTCSrc/Makefile.mgr
===================================================================
--- trunk/SophyaExt/JThreadsC++/JTCSrc/Makefile.mgr	(revision 2735)
+++ trunk/SophyaExt/JThreadsC++/JTCSrc/Makefile.mgr	(revision 2735)
@@ -0,0 +1,94 @@
+#  Makefile for building JTC JThreads/C++ 
+#  Source code from Object Oriented Concepts  www.ooc.com
+#  R. Ansari      LAL-IN2P3/CNRS    
+
+CXX := g++
+ifdef SOPHYACXX
+  CXX := $(SOPHYACXX)
+endif
+
+SYSNOM = $(shell echo `uname`)
+SYSNOMD = $(shell echo `uname | sed 's/-//'`) 
+SYSCOMPNOM = $(SYSNOM)-$(CXX)
+
+$(OBJ)%.o:%.cc
+	$(COMPILE.cc) -o $@ $<
+
+$(OBJ)%.o:%.cpp
+	$(COMPILE.cc) -o $@ $<
+
+CPPFLAGS   :=  -I. -D$(SYSNOMD)
+#  Flag pour compilo DEC-cxx (Compaq)
+ifeq ($(CXX),cxx)
+  CPPFLAGS   :=  $(CPPFLAGS) -pthread -nopt -distinguish_nested_enums 
+endif
+
+AR = ar
+ARFLAGS = -rcs
+
+LIB = Objs/
+OBJ = Objs/
+
+OBJLIST =  $(OBJ)Cond.o $(OBJ)Event.o $(OBJ)License.o $(OBJ)Monitor.o $(OBJ)Mutex.o $(OBJ)TSS.o $(OBJ)TSSManager.o $(OBJ)Thread.o $(OBJ)ThreadGroup.o $(OBJ)Version.o
+
+#  Fabrication de shared lib
+CMDSLB := $(CXX) -shared
+SYSLIBS := -lpthread 
+ifeq ($(CXX),KCC)
+  CMDSLB := $(CXX)
+endif
+
+# ---------------- Building Library
+all: rep $(LIB)libJTC.a $(LIB)libJTC.so 
+
+rep :
+	if (test ! -d Objs) then mkdir Objs ; fi
+
+$(LIB)libJTC.a : $(OBJLIST)
+	$(AR) $(ARFLAGS) $(LIB)libJTC.a $(OBJLIST) 
+ifeq ($(CXX),cxx)
+	$(CXX) $? $(CPPFLAGS) $(CXXFLAGS) -o $(OBJ)xx.x -Hf
+endif 
+
+$(LIB)libJTC.so : $(LIB)libJTC.a
+	$(CMDSLB) -o $(LIB)libJTC.so $(OBJLIST) $(SYSLIBS)
+
+# ---------------- Cleaning 
+clean:
+	rm -rf Objs
+
+# --------------- Installing 
+install:
+	if (test ! -d $(JTCBASEREP)/Include) then mkdir $(JTCBASEREP)/Include ; fi
+	if (test ! -d $(JTCBASEREP)/Include/JTC) then mkdir $(JTCBASEREP)/Include/JTC ; fi
+	cp JTC/*.h $(JTCBASEREP)/Include/JTC
+	chmod a+r $(JTCBASEREP)/Include/JTC/*
+	if (test ! -d $(JTCBASEREP)/$(SYSCOMPNOM)) then mkdir $(JTCBASEREP)/$(SYSCOMPNOM) ; fi
+	if (test ! -d $(JTCBASEREP)/$(SYSCOMPNOM)/Libs)  then mkdir $(JTCBASEREP)/$(SYSCOMPNOM)/Libs ; fi
+	if (test ! -d $(JTCBASEREP)/$(SYSCOMPNOM)/ShLibs)  then mkdir $(JTCBASEREP)/$(SYSCOMPNOM)/ShLibs ; fi
+	cp Objs/libJTC.a $(JTCBASEREP)/$(SYSCOMPNOM)/Libs
+	cp Objs/libJTC.so $(JTCBASEREP)/$(SYSCOMPNOM)/ShLibs
+	chmod a+r $(JTCBASEREP)/$(SYSCOMPNOM)/Libs/libJTC.a
+	chmod a+r $(JTCBASEREP)/$(SYSCOMPNOM)/ShLibs/libJTC.so
+
+$(OBJ)Cond.o : Cond.cpp
+	$(CXX) $(CPPFLAGS) -c -o $@ $< 
+$(OBJ)Event.o : Event.cpp
+	$(CXX) $(CPPFLAGS) -c -o $@ $< 
+$(OBJ)License.o : License.cpp
+	$(CXX) $(CPPFLAGS) -c -o $@ $< 
+$(OBJ)Monitor.o : Monitor.cpp
+	$(CXX) $(CPPFLAGS) -c -o $@ $< 
+$(OBJ)Mutex.o : Mutex.cpp
+	$(CXX) $(CPPFLAGS) -c -o $@ $< 
+$(OBJ)TSS.o : TSS.cpp
+	$(CXX) $(CPPFLAGS) -c -o $@ $< 
+$(OBJ)TSSManager.o : TSSManager.cpp
+	$(CXX) $(CPPFLAGS) -c -o $@ $< 
+$(OBJ)Thread.o : Thread.cpp
+	$(CXX) $(CPPFLAGS) -c -o $@ $< 
+$(OBJ)ThreadGroup.o : ThreadGroup.cpp
+	$(CXX) $(CPPFLAGS) -c -o $@ $< 
+$(OBJ)Version.o : Version.cpp
+	$(CXX) $(CPPFLAGS) -c -o $@ $< 
+
