QNX IPC: Build - Add Vayu Build to the QNX IPC
[ipc/ipcdev.git] / qnx / Makefile
index cca3e59874da6c1fb5f419354e369dee07b86ac6..dc8d6115a3d8b2d5efe637cfbfc0bff0ccf41b66 100644 (file)
 # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
 
+ifeq ("$(PLATFORM)","omap5432")
+    SYSLINK_PLATFORM=omap5430
+    TILER_PLATFORM=omap5430
+else ifeq ("$(PLATFORM)","vayu")
+    SYSLINK_PLATFORM=$(PLATFORM)
+    TILER_PLATFORM=$(PLATFORM)
+endif
+
 all:  utils ipc3x_dev libs tests
 
 libs: ipc3x_dev
@@ -45,11 +53,11 @@ tests: libs
 
 ipc3x_dev: utils
        @cd src/ipc3x_dev; \
-            make SYSLINK_PLATFORM=omap5430 TILER_PLATFORM=omap5430 SMP=1
+            make SYSLINK_PLATFORM=$(SYSLINK_PLATFORM) TILER_PLATFORM=$(TILER_PLATFORM) SMP=1 VIRTIO=$(BUILD_FOR_VIRTIO)
 
 install:
-       @cd src/ipc3x_dev; make SYSLINK_PLATFORM=omap5430 \
-               TILER_PLATFORM=omap5430 SMP=1 USE_INSTALL_ROOT=1 \
+       @cd src/ipc3x_dev; make SYSLINK_PLATFORM=$(SYSLINK_PLATFORM) \
+               TILER_PLATFORM=$(TILER_PLATFORM) SMP=1 VIRTIO=$(BUILD_FOR_VIRTIO) USE_INSTALL_ROOT=1 \
                INSTALL_ROOT_nto=$(DESTDIR) install
        @cd src/tests; make USE_INSTALL_ROOT=1 DESTDIR=$(DESTDIR) \
                INSTALL_ROOT_nto=$(DESTDIR) install
@@ -61,4 +69,4 @@ clean:
        @cd src/utils; make clean
        @cd src/tests; make clean
        @cd src/ipc3x_dev; \
-            make clean SYSLINK_PLATFORM=omap5430 TILER_PLATFORM=omap5430 SMP=1
+            make clean SYSLINK_PLATFORM=$(SYSLINK_PLATFORM) TILER_PLATFORM=$(TILER_PLATFORM) SMP=1 VIRTIO=$(BUILD_FOR_VIRTIO)