diff options
Diffstat (limited to 'common/Makefile')
| -rw-r--r-- | common/Makefile | 32 |
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) |
