aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-09-13 11:46:38 +0800
committerMistivia <i@mistivia.com>2025-09-13 11:46:38 +0800
commit4864500034260f43261a1cc86b7d9bce0d541e07 (patch)
tree499a54bae8e90d8d80047bc26d0d34f1246a6dc0 /Makefile
parent603df4bdbeee6ae09e61f05eed0c05ed430eee1b (diff)
add transmuxer
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6f6d633..2f2ab2f 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@ CC := gcc
CXX := g++
CFLAGS := -g -Wall
CXXFLAGS := -g -Wall -std=c++14
+LDFLAGS := -lavformat -lavutil -lavcodec
C_SOURCES := $(shell find . -maxdepth 1 -name '*.c')
CPP_SOURCES := $(shell find . -maxdepth 1 -name '*.cpp')
@@ -14,7 +15,7 @@ TARGET := ezlive
all: $(TARGET)
$(TARGET): $(C_OBJS) $(CPP_OBJS)
- $(CXX) $(C_OBJS) $(CPP_OBJS) -o $@
+ $(CXX) $(C_OBJS) $(CPP_OBJS) -o $@ $(LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@