aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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')