diff options
| author | Mistivia <i@mistivia.com> | 2025-12-20 17:23:54 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-12-20 17:25:36 +0800 |
| commit | 05233a9bc6520190eb9550cb4a3cdf63d241ab71 (patch) | |
| tree | 416db5aa1e37e598dd9f79a4281af33bf0f015d1 /Makefile | |
| parent | 5e3d349b3fcf4a219ea7540059076ab7beed8ed2 (diff) | |
add windows support
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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') |
