diff options
| author | Manuel Traut <manut@mecka.net> | 2012-06-03 15:41:47 +0200 |
|---|---|---|
| committer | Manuel Traut <manut@mecka.net> | 2012-06-03 15:41:47 +0200 |
| commit | da8eeabec353e94a067de5cb0200bb6680da53de (patch) | |
| tree | 448fa741264ccb845550e3445d03e282cb3ffefc /manager/lib | |
| parent | 99eaad1f40d12993321327667862699b9f63927b (diff) | |
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 <manut@mecka.net>
Diffstat (limited to 'manager/lib')
| -rw-r--r-- | manager/lib/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
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) |
