QNX IPC: Client Lib - Change Lib Name to ipc_client
[ipc/ipcdev.git] / qnx / src / ipc3x_dev / ti / syslink / build / Qnx / lib / common.mk
1 ifndef QCONFIG
2 QCONFIG=qconfig.mk
3 endif
4 include $(QCONFIG)
6 INSTALLDIR=/usr/lib
8 define PINFO
9 PINFO DESCRIPTION=IPC QNX Usr Libs
10 endef
11 NAME=ipc_client
13 # ---------------------------------------------------------------------------- #
14 # Defines                                                                      #
15 # ---------------------------------------------------------------------------- #
16 # Override definitions in base Makefile if required
18 #To Over ride the usage of syslink memory manager
19 SYSLINK_USE_SYSMGR := 0
20 #To Over ride the build optimization flag
21 SYSLINK_BUILD_OPTIMIZE := 0
22 #To override the debug build flag
23 SYSLINK_BUILD_DEBUG := 0
24 #To override the TRACE flag
25 SYSLINK_TRACE_ENABLE := 0
27 ifeq ("$(SYSLINK_PLATFORM)", "")
28 #default value
29 SYSLINK_PLATFORM=omap4430
30 endif # ifeq ("$(SYSLINK_PLATFORM)", "")
32 ifeq ("$(SYSLINK_PLATFORM)", "omap4430")
33 CCOPTS += -DSYSLINK_PLATFORM_OMAP4430
34 endif # ifeq ("$(SYSLINK_PLATFORM)", "omap4430")
35 ifeq ("$(SYSLINK_PLATFORM)", "omap5430")
36 CCOPTS += -DSYSLINK_PLATFORM_OMAP5430
37 endif # ifeq ("$(SYSLINK_PLATFORM)", "omap5430")
39 #default SYSLINK Product root path and can be overridden from commandline
40 SYSLINK_ROOT = $(PROJECT_ROOT)/../../../../..
41 SYSLINK_BUILDOS = Qnx
43 #For SOURCE and include paths
44 #-include $(SYSLINK_ROOT)/ti/syslink/buildutils/hlos/usr/Makefile.inc
46 #Add Resource Manager include path
47 #EXTRA_INCVPATH+=$(SYSLINK_ROOT)/ti/syslink/utils/hlos/knl/Qnx/resMgr
49 #Add extra include path
50 EXTRA_INCVPATH+=$(SYSLINK_ROOT) \
51                                 $(SYSLINK_ROOT)/ti/syslink/inc  \
52                                 $(SYSLINK_ROOT)/ti/syslink/inc/usr/$(SYSLINK_BUILDOS)   \
53                                 $(SYSLINK_ROOT)/ti/syslink/inc/usr      \
54                                 $(SYSLINK_ROOT)/ti/syslink/inc/$(SYSLINK_BUILDOS) \
55                                 $(IPC_REPO)/packages \
56                                 $(IPC_REPO)/qnx/include
57 #SRCS:=$(CSRCS)
59 #SRCDIRS=$(sort $(foreach i,$(CSRCS),$(shell dirname $i)))
60 #EXTRA_SRCVPATH+=$(SRCDIRS)
61 EXTRA_SRCVPATH+=$(SYSLINK_ROOT)/ti/syslink/ipc/hlos/usr \
62                                 $(SYSLINK_ROOT)/ti/syslink/ipc/hlos/usr/$(SYSLINK_BUILDOS)      \
63                                 $(SYSLINK_ROOT)/ti/syslink/utils/hlos   \
64                                 $(SYSLINK_ROOT)/ti/syslink/utils/hlos/usr       \
65                                 $(SYSLINK_ROOT)/ti/syslink/utils/hlos/usr/$(SYSLINK_BUILDOS)    \
66                                 $(SYSLINK_ROOT)/ti/syslink/utils/hlos/usr/osal/$(SYSLINK_BUILDOS)
68 #Using the default build rules TODO: to selective pick and choose the compiler/linker/archiver & build rules
69 include $(MKFILES_ROOT)/qtargets.mk
70 CCOPTS += -DSYSLINK_BUILDOS_QNX -DSYSLINK_BUILD_DEBUG
71 ifeq ("$(SYSLINK_DEBUG)", "1")
72 #enable debug build
73 CCOPTS += -g -O0
74 endif # ifeq ("$(SYSLINK_DEBUG)", "")
75 CCFLAGS += $(COMPILE_FLAGS)
76 CCFLAGS += -fPIC