summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Traut <manut@mecka.net>2012-06-02 17:21:54 +0200
committerManuel Traut <manut@mecka.net>2012-06-02 17:21:54 +0200
commit3fc5a341321c4c042bb464dbb1f62856fc2d31a4 (patch)
tree1727a81eab338c3c4773b43d417b4f94668beb60
parent844056b16ff8557c72138f920d57e4ce833b204a (diff)
Makefiles and skeletons for common and manager
- idl compiler is called - add skeletons for libdistrio_common - add skeletons for manager Signed-off-by: Manuel Traut <manut@mecka.net>
-rw-r--r--Makefile11
-rw-r--r--common/Makefile32
-rw-r--r--common/common.cpp32
-rw-r--r--manager/Makefile31
-rw-r--r--manager/manager.cpp102
5 files changed, 208 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..56a94fb
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+MAKE_DIRECTORIES = common manager
+
+.PHONY: all
+all: $(MAKE_DIRECTORIES)
+
+.PHONY: $(MAKE_DIRECTORIES)
+$(MAKE_DIRECTORIES):
+ @$(MAKE) --keep-going --directory=$@ $(MAKECMDGOALS)
+
+.PHONY: $(MAKECMDGOALS)
+$(MAKECMDGOALS): $(MAKE_DIRECTORIES)
diff --git a/common/Makefile b/common/Makefile
new file mode 100644
index 0000000..d4f0594
--- /dev/null
+++ b/common/Makefile
@@ -0,0 +1,32 @@
+CC := $(CROSS_COMPILE)gcc
+CXX := $(CROSS_COMPILE)g++
+LD := $(CROSS_COMPILE)g++
+
+TAO_IDL := tao_idl
+
+DESTDIR := /usr
+
+LIB = libdistrio_common.so
+OBJ = commonC.o common.o commonS.o
+
+IDL_CLEANFILES = commonC.cpp commonC.inl commonI.h commonS.h commonC.h \
+ commonS.cpp
+
+all: idl $(OBJ)
+ $(LD) -shared -o $(LIB) $(OBJ)
+
+idl:
+ $(TAO_IDL) -GI -I../interfaces ../interfaces/common.idl
+ rm -f commonI.cpp
+
+idl_clean:
+ rm -f $(IDL_CLEANFILES)
+
+clean: idl_clean
+ rm -f $(LIB)
+
+install: all
+ cp -a $(LIB) $(DESTDIR)/lib
+
+uninstall:
+ rm -f $(DESTDIR)/lib/$(LIB)
diff --git a/common/common.cpp b/common/common.cpp
new file mode 100644
index 0000000..cea3ed2
--- /dev/null
+++ b/common/common.cpp
@@ -0,0 +1,32 @@
+// -*- C++ -*-
+// $Id$
+
+/**
+ * Code generated by the The ACE ORB (TAO) IDL Compiler v2.1.2
+ * TAO and the TAO IDL Compiler have been developed by:
+ * Center for Distributed Object Computing
+ * Washington University
+ * St. Louis, MO
+ * USA
+ * http://www.cs.wustl.edu/~schmidt/doc-center.html
+ * and
+ * Distributed Object Computing Laboratory
+ * University of California at Irvine
+ * Irvine, CA
+ * USA
+ * and
+ * Institute for Software Integrated Systems
+ * Vanderbilt University
+ * Nashville, TN
+ * USA
+ * http://www.isis.vanderbilt.edu/
+ *
+ * Information about TAO is available at:
+ * http://www.cs.wustl.edu/~schmidt/TAO.html
+ **/
+
+// TAO_IDL - Generated from
+// be/be_codegen.cpp:1673
+
+#include "commonI.h"
+
diff --git a/manager/Makefile b/manager/Makefile
new file mode 100644
index 0000000..da7fd9b
--- /dev/null
+++ b/manager/Makefile
@@ -0,0 +1,31 @@
+CC := $(CROSS_COMPILE)gcc
+CXX := $(CROSS_COMPILE)g++
+LD := $(CROSS_COMPILE)g++
+
+TAO_IDL := tao_idl
+
+DESTDIR := /usr
+
+EXEC = distrio-manager
+OBJ = managerC.o managerS.o manager.o
+IDL_CLEANFILES = managerC.cpp managerC.h managerI.h managerS.cpp managerS.h \
+ managerC.inl
+
+all: idl $(OBJ)
+ $(LD) -o $(EXEC) $(OBJ)
+
+idl:
+ $(TAO_IDL) -GI -I../interfaces ../interfaces/manager.idl
+ rm -f managerI.cpp
+
+idl_clean:
+ rm -f $(IDL_CLEANFILES)
+
+clean: idl_clean
+ rm -f $(EXEC)
+
+install: all
+ cp -a $(EXEC) $(DESTDIR)/bin
+
+uninstall:
+ rm -f $(DESTDIR)/bin/$(EXEC)
diff --git a/manager/manager.cpp b/manager/manager.cpp
new file mode 100644
index 0000000..c6964e3
--- /dev/null
+++ b/manager/manager.cpp
@@ -0,0 +1,102 @@
+// -*- C++ -*-
+// $Id$
+
+/**
+ * Code generated by the The ACE ORB (TAO) IDL Compiler v2.1.2
+ * TAO and the TAO IDL Compiler have been developed by:
+ * Center for Distributed Object Computing
+ * Washington University
+ * St. Louis, MO
+ * USA
+ * http://www.cs.wustl.edu/~schmidt/doc-center.html
+ * and
+ * Distributed Object Computing Laboratory
+ * University of California at Irvine
+ * Irvine, CA
+ * USA
+ * and
+ * Institute for Software Integrated Systems
+ * Vanderbilt University
+ * Nashville, TN
+ * USA
+ * http://www.isis.vanderbilt.edu/
+ *
+ * Information about TAO is available at:
+ * http://www.cs.wustl.edu/~schmidt/TAO.html
+ **/
+
+// TAO_IDL - Generated from
+// be/be_codegen.cpp:1673
+
+#include "managerI.h"
+
+// Implementation skeleton constructor
+Distrio_Manager_i::Distrio_Manager_i (void)
+{
+}
+
+// Implementation skeleton destructor
+Distrio_Manager_i::~Distrio_Manager_i (void)
+{
+}
+
+::Distrio::Error * Distrio_Manager_i::digital (
+ ::Distrio::Digital_list_out io_list)
+{
+ // Add your implementation here
+}
+
+::Distrio::Error * Distrio_Manager_i::analog (
+ ::Distrio::Analog_list_out io_list)
+{
+ // Add your implementation here
+}
+
+::Distrio::Error * Distrio_Manager_i::device (
+ ::Distrio::Device_list_out dev_list)
+{
+ // Add your implementation here
+}
+
+::Distrio::Error * Distrio_Manager_i::register_io_digital (
+ ::Distrio::Analog_ptr io_ana)
+{
+ // Add your implementation here
+}
+
+::Distrio::Error * Distrio_Manager_i::register_io_analog (
+ ::Distrio::Digital_ptr io_dig)
+{
+ // Add your implementation here
+}
+
+::Distrio::Error * Distrio_Manager_i::register_io_device (
+ ::Distrio::Device_ptr io_dev)
+{
+ // Add your implementation here
+}
+
+::Distrio::Error * Distrio_Manager_i::unregister_io_digital (
+ ::Distrio::Digital_ptr io_dig)
+{
+ // Add your implementation here
+}
+
+::Distrio::Error * Distrio_Manager_i::unregister_io_analog (
+ ::Distrio::Analog_ptr io_ana)
+{
+ // Add your implementation here
+}
+
+::Distrio::Error * Distrio_Manager_i::unregister_io_device (
+ ::Distrio::Device_ptr io_dev)
+{
+ // Add your implementation here
+}
+
+void Distrio_Manager_i::log_error (
+ const ::Distrio::Error & error)
+{
+ // Add your implementation here
+}
+