summaryrefslogtreecommitdiff
path: root/common/Makefile
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 /common/Makefile
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>
Diffstat (limited to 'common/Makefile')
-rw-r--r--common/Makefile32
1 files changed, 32 insertions, 0 deletions
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)