From da8eeabec353e94a067de5cb0200bb6680da53de Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Sun, 3 Jun 2012 15:41:47 +0200 Subject: manager: split into bin and lib - bin is distrio_manager application - lib is for components using the distrio_manager interface Signed-off-by: Manuel Traut --- manager/lib/Makefile | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 manager/lib/Makefile (limited to 'manager/lib/Makefile') diff --git a/manager/lib/Makefile b/manager/lib/Makefile new file mode 100644 index 0000000..fa5d771 --- /dev/null +++ b/manager/lib/Makefile @@ -0,0 +1,43 @@ +CC := $(CROSS_COMPILE)gcc +CXX := $(CROSS_COMPILE)g++ +LD := $(CROSS_COMPILE)g++ + +DISTRIO_COMMON := ../../common +DISTRIO_IO := ../../io + +CFLAGS += -fPIC -I$(DISTRIO_COMMON) -I$(DISTRIO_IO) +CXXFLAGS += $(CFLAGS) + +TAO_IDL := tao_idl + +DESTDIR := /usr + +COMPONENT = distrio_manager +LIB = lib$(COMPONENT).so +OBJ = $(COMPONENT)C.o $(COMPONENT)S.o + +IDL_CLEANFILES = $(COMPONENT)C.cpp $(COMPONENT)C.inl $(COMPONENT)I.h \ + $(COMPONENT)S.h $(COMPONENT)C.h $(COMPONENT)S.cpp + +all: $(OBJ) + $(LD) -shared -o $(LIB) $(OBJ) + +.PHONY: idl +idl: + $(TAO_IDL) -GI -I../../interfaces ../../interfaces/$(COMPONENT).idl + rm -f $(COMPONENT)I.cpp + +.PHONY: idl_clean +idl_clean: + rm -f $(IDL_CLEANFILES) + +.PHONY: clean +clean: idl_clean + rm -f *.o + rm -f $(LIB) + +install: all + cp -a $(LIB) $(DESTDIR)/lib + +uninstall: + rm -f $(DESTDIR)/lib/$(LIB) -- cgit v1.2.3