aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-12-20 17:23:54 +0800
committerMistivia <i@mistivia.com>2025-12-20 17:25:36 +0800
commit05233a9bc6520190eb9550cb4a3cdf63d241ab71 (patch)
tree416db5aa1e37e598dd9f79a4281af33bf0f015d1 /Makefile
parent5e3d349b3fcf4a219ea7540059076ab7beed8ed2 (diff)
add windows support
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c47dc4c..f812e50 100644
--- a/Makefile
+++ b/Makefile
@@ -2,10 +2,15 @@ CC := gcc
CXX := g++
CFLAGS := -g -Wall
CXXFLAGS := -g -Wall -std=c++14
+UNAME := $(shell uname -s)
LDFLAGS := -g -lsrt \
-lavformat -lavutil -lavcodec \
-laws-cpp-sdk-core -laws-cpp-sdk-s3
+ifeq ($(findstring MINGW,$(UNAME)),MINGW)
+ LDFLAGS += -lws2_32
+endif
+
C_SOURCES := $(shell find . -maxdepth 1 -name '*.c')
CPP_SOURCES := $(shell find . -maxdepth 1 -name '*.cpp')