Files
argus_cam_libavencoder/19_argus_camera_sw_encode/Makefile
svcmobrel-release bc041f39c1 Updating prebuilts and/or headers
0237b5299525c072e55e721dcedbfd3d06e182ca - 19_argus_camera_sw_encode/FFMPEG-LICENSE.md
7b299759a546d9c7ed36d7ab0db92bcd15eb5892 - 19_argus_camera_sw_encode/argus_camera_sw_encode.h
7d8cfb5596b00c49ca01c4d59ee74c8b88059909 - 19_argus_camera_sw_encode/Makefile
de91caa771262821be9e97cfe54154efd19b3741 - 19_argus_camera_sw_encode/argus_camera_sw_encode_main.cpp

Change-Id: Ia47f1e44d818a2c65998176e44b3102f35cdeb73
2024-05-02 11:24:36 -07:00

52 lines
1.3 KiB
Makefile

# SPDX-FileCopyrightText: Copyright (c) 2022-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
include ../Rules.mk
APP := camera_sw_encode
ARGUS_UTILS_DIR := $(TOP_DIR)/argus/samples/utils
SRCS := \
argus_camera_sw_encode_main.cpp \
$(wildcard $(CLASS_DIR)/*.cpp) \
$(ARGUS_UTILS_DIR)/Thread.cpp \
$(ARGUS_UTILS_DIR)/NativeBuffer.cpp \
$(ARGUS_UTILS_DIR)/nvmmapi/NvNativeBuffer.cpp
OBJS := $(SRCS:.cpp=.o)
CPPFLAGS += \
-I"$(ARGUS_UTILS_DIR)"
LDFLAGS += \
-lnvargus_socketclient -lavcodec -lavutil
all: $(APP)
$(CLASS_DIR)/%.o: $(CLASS_DIR)/%.cpp
$(AT)$(MAKE) -C $(CLASS_DIR)
%.o: %.cpp
@echo "Compiling: $<"
$(CPP) $(CPPFLAGS) -c $< -o $@
$(APP): $(OBJS)
@echo "Linking: $@"
$(CPP) -o $@ $(OBJS) $(CPPFLAGS) $(LDFLAGS)
clean:
$(AT)rm -rf $(APP) $(OBJS)