1 #
2 # Copyright (c) 2015, Texas Instruments Incorporated
3 # All rights reserved.
4 #
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions
7 # are met:
8 #
9 # * Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer.
11 #
12 # * Redistributions in binary form must reproduce the above copyright
13 # notice, this list of conditions and the following disclaimer in the
14 # documentation and/or other materials provided with the distribution.
15 #
16 # * Neither the name of Texas Instruments Incorporated nor the names of
17 # its contributors may be used to endorse or promote products derived
18 # from this software without specific prior written permission.
19 #
20 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22 # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24 # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27 # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30 # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 #
32 ifndef QCONFIG
33 QCONFIG=qconfig.mk
34 endif
35 include $(QCONFIG)
37 INSTALLDIR=/usr/lib
39 define PINFO
40 PINFO DESCRIPTION=IPC QNX Usr Libs
41 endef
42 NAME=ipc_client
44 # ---------------------------------------------------------------------------- #
45 # Defines #
46 # ---------------------------------------------------------------------------- #
47 # Override definitions in base Makefile if required
49 #To Over ride the usage of ipc memory manager
50 IPC_USE_SYSMGR := 0
51 #To Over ride the build optimization flag
52 IPC_BUILD_OPTIMIZE := 0
53 #To override the debug build flag
54 IPC_BUILD_DEBUG := 0
55 #To override the TRACE flag
56 IPC_TRACE_ENABLE := 0
58 ifeq ("$(IPC_PLATFORM)", "omap5430")
59 CCOPTS += -DIPC_PLATFORM_OMAP5430
60 endif # ifeq ("$(IPC_PLATFORM)", "omap5430")
62 #default IPC Product root path and can be overridden from commandline
63 IPC_ROOT = $(PROJECT_ROOT)/../../../../..
64 IPC_BUILDOS = Qnx
66 #For SOURCE and include paths
67 #-include $(IPC_ROOT)/ti/syslink/buildutils/hlos/usr/Makefile.inc
69 #Add Resource Manager include path
70 #EXTRA_INCVPATH+=$(IPC_ROOT)/ti/syslink/utils/hlos/knl/Qnx/resMgr
72 #Add extra include path
73 EXTRA_INCVPATH+=$(IPC_ROOT) \
74 $(IPC_ROOT)/ti/syslink/inc \
75 $(IPC_ROOT)/ti/syslink/inc/usr/$(IPC_BUILDOS) \
76 $(IPC_ROOT)/ti/syslink/inc/usr \
77 $(IPC_ROOT)/ti/syslink/inc/$(IPC_BUILDOS) \
78 $(IPC_REPO)/packages \
79 $(IPC_REPO)/qnx/include \
80 $(IPC_REPO)/hlos_common/include
81 #SRCS:=$(CSRCS)
83 #SRCDIRS=$(sort $(foreach i,$(CSRCS),$(shell dirname $i)))
84 #EXTRA_SRCVPATH+=$(SRCDIRS)
85 EXTRA_SRCVPATH+=$(IPC_ROOT)/ti/syslink/ipc/hlos/usr \
86 $(IPC_ROOT)/ti/syslink/ipc/hlos/usr/$(IPC_BUILDOS) \
87 $(IPC_ROOT)/ti/syslink/utils/hlos \
88 $(IPC_ROOT)/ti/syslink/utils/hlos/usr \
89 $(IPC_ROOT)/ti/syslink/utils/hlos/usr/$(IPC_BUILDOS) \
90 $(IPC_ROOT)/ti/syslink/utils/hlos/usr/osal/$(IPC_BUILDOS)
92 #Using the default build rules TODO: to selective pick and choose the compiler/linker/archiver & build rules
93 include $(MKFILES_ROOT)/qtargets.mk
94 CCOPTS += -DIPC_BUILDOS_QNX -DIPC_BUILD_DEBUG $(QNX_CFLAGS)
95 ifeq ("$(IPC_DEBUG)", "1")
96 #enable debug build
97 CCOPTS += -g -O0
98 endif # ifeq ("$(IPC_DEBUG)", "")
99 CCFLAGS += $(COMPILE_FLAGS)
100 CCFLAGS += -fPIC
102 # Quiet the build output
103 include $(IPC_REPO)/qnx/quiet.mk