Files
nvethernetrm/osi/dma/Makefile.sdk
Rakesh Goayl 836037631f osi: compile OSI core and dma for QNX
Bug 200671160

Change-Id: I0c635914471cbd99d49b3e9d4b09dd70cd7d3159
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
2021-06-21 07:07:10 +05:30

39 lines
1.2 KiB
Makefile

# Copyright (c) 2020 NVIDIA CORPORATION. All Rights Reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and related documentation without an express
# license agreement from NVIDIA CORPORATION is strictly prohibited.
include $(PDK_TOP)/drive-t186ref-qnx/make/nvdefs.mk
TARGETS = libnvethernetcl.so
CFLAGS += -g -Wall $(NV_PLATFORM_OPT) $(NV_PLATFORM_CFLAGS)
CPPFLAGS = $(NV_PLATFORM_SDK_INC) $(NV_PLATFORM_CPPFLAGS) -I../../../include -I../core -I../common/include
CPPFLAGS += -DNV_IS_SAFETY=$(NV_PLATFORM_SAFETY)
LDFLAGS := \
$(NV_PLATFORM_SDK_LIB) \
$(NV_PLATFORM_LDFLAGS)
LDFLAGS += -shared
OBJS := eqos_dma.o
OBJS += osi_dma.o
OBJS += osi_dma_txrx.o
OBJS += mgbe_dma.o
OBJS += eqos_desc.o
OBJS += mgbe_desc.o
OBJS += ./../common/osi_common.o
OBJS += ./../common/eqos_common.o
OBJS += ./../common/mgbe_common.o
CFLAGS += -D_FILE_OFFSET_BITS=64
$(TARGETS): $(OBJS)
$(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS)
$(STRIP) --strip-unneeded -R .comment -R .GCC.command.line $@
clean clobber:
rm -rf $(OBJS) $(TARGETS)