]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blobdiff - qnx/Makefile
Rename IPC_DEBUG_TRACE_LEVEL to IPC_DEBUG_SLOG_LEVEL
[ipc/ipcdev.git] / qnx / Makefile
index d22d50a69f96ac04d132867def7d28662df0eb52..4e808ce899987ce329b7141a19d968a8c5e837ca 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2013, Texas Instruments Incorporated
+# Copyright (c) 2013-2015, Texas Instruments Incorporated
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
 #
 
 ifeq ("$(PLATFORM)","OMAP54XX")
-    SYSLINK_PLATFORM=omap5430
+    IPC_PLATFORM=omap5430
 else ifeq ("$(PLATFORM)","DRA7XX")
-    SYSLINK_PLATFORM=vayu
+    IPC_PLATFORM=vayu
+else ifeq ("$(PLATFORM)","")
+    $(error Empty PLATFORM variable.  Did you forget to set in it products.mak?)
+else
+    $(error Unsupported platform: $(PLATFORM))
 endif
 
 all:  utils ipc3x_dev libs tests
 
 libs: ipc3x_dev
-       @cd src/api; make SYSLINK_PLATFORM=$(SYSLINK_PLATFORM)
+       @cd src/api; make IPC_PLATFORM=$(IPC_PLATFORM)
        @cd src/mm; make
 
 utils:
@@ -50,11 +54,11 @@ tests: libs
 
 ipc3x_dev: utils
        @cd src/ipc3x_dev; \
-            make SYSLINK_PLATFORM=$(SYSLINK_PLATFORM) SMP=1 VIRTIO=$(BUILD_FOR_VIRTIO)
+            make IPC_PLATFORM=$(IPC_PLATFORM) SMP=1 QNX_CFLAGS=$(QNX_CFLAGS)
 
 install:
-       @cd src/ipc3x_dev; make SYSLINK_PLATFORM=$(SYSLINK_PLATFORM) \
-               SMP=1 VIRTIO=$(BUILD_FOR_VIRTIO) USE_INSTALL_ROOT=1 \
+       @cd src/ipc3x_dev; make IPC_PLATFORM=$(IPC_PLATFORM) \
+               SMP=1 USE_INSTALL_ROOT=1 \
                INSTALL_ROOT_nto=$(DESTDIR) install
        @cd src/mm; make USE_INSTALL_ROOT=1 DESTDIR=$(DESTDIR) \
                INSTALL_ROOT_nto=$(DESTDIR) install
@@ -63,7 +67,7 @@ install:
        @cd src/utils; make USE_INSTALL_ROOT=1 DESTDIR=$(DESTDIR) \
                 INSTALL_ROOT_nto=$(DESTDIR) install
        @cd src/tests; make USE_INSTALL_ROOT=1 DESTDIR=$(DESTDIR) \
-               SYSLINK_PLATFORM=$(SYSLINK_PLATFORM) \
+               IPC_PLATFORM=$(IPC_PLATFORM) \
                INSTALL_ROOT_nto=$(DESTDIR) install
 
 
@@ -73,4 +77,4 @@ clean:
        @cd src/utils; make clean
        @cd src/tests; make clean
        @cd src/ipc3x_dev; \
-       make clean SYSLINK_PLATFORM=$(SYSLINK_PLATFORM) SMP=1 VIRTIO=$(BUILD_FOR_VIRTIO)
+       make clean IPC_PLATFORM=$(IPC_PLATFORM) SMP=1