-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (27 loc) · 750 Bytes
/
Copy pathMakefile
File metadata and controls
38 lines (27 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
include /usr/src/jetson_multimedia_api/samples/Rules.mk
APP := dual_record_mp4
ARGUS_UTILS_DIR := /usr/src/jetson_multimedia_api/argus/samples/utils
SRCS := \
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
LDFLAGS += \
-lavformat -lavcodec -lavutil -lswscale
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)