]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/commitdiff
QNX IPC: Export MmRpc Libs and Headers
authorChris Ring <cring@ti.com>
Thu, 20 Jun 2013 23:22:44 +0000 (16:22 -0700)
committerChris Ring <cring@ti.com>
Thu, 20 Jun 2013 23:22:44 +0000 (16:22 -0700)
Export the MmRpc generated libraries to usr/lib and
export the header file to user/include/ti/ipc/mm.

This is so that apps can easily include the header and
link with the library.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
qnx/Makefile
qnx/src/mm/common.mk

index d48704b8a11c6f42ace10b07fd19b5c16ac022a9..b60c6daf637bf3d70a318c163e959b9391888d78 100644 (file)
@@ -56,6 +56,8 @@ install:
        @cd src/ipc3x_dev; make SYSLINK_PLATFORM=$(SYSLINK_PLATFORM) \
                SMP=1 VIRTIO=$(BUILD_FOR_VIRTIO) USE_INSTALL_ROOT=1 \
                INSTALL_ROOT_nto=$(DESTDIR) install
+       @cd src/mm; make USE_INSTALL_ROOT=1 DESTDIR=$(DESTDIR) \
+               INSTALL_ROOT_nto=$(DESTDIR) install
        @cd src/tests; make USE_INSTALL_ROOT=1 DESTDIR=$(DESTDIR) \
                INSTALL_ROOT_nto=$(DESTDIR) install
 
index ec82bb77a642a32f4cb1eb94d535b234563e632a..1674aaa45a4bc99f56ebd2ca789260c4637dd2e7 100644 (file)
@@ -40,8 +40,7 @@ define PINFO
 PINFO DESCRIPTION=MmRpc User Library
 endef
 
-# don't install the binaries, they are copied in base makefile
-INSTALLDIR = /dev/null
+INSTALLDIR = /usr/lib
 
 CCOPTS += -DSYSLINK_BUILDOS_QNX
 
@@ -58,3 +57,7 @@ EXTRA_INCVPATH += \
 
 include $(MKFILES_ROOT)/qtargets.mk
 OPTIMIZE__gcc=$(OPTIMIZE_NONE_gcc)
+
+# install the header
+POST_INSTALL += \
+       $(CP_HOST) -Rv $(IPC_REPO)/packages/ti/ipc/mm/MmRpc.h $(INSTALL_ROOT_nto)/usr/include/ti/ipc/mm/MmRpc.h