Commit 3d742462 authored by Ralph Giles's avatar Ralph Giles

Add conditional source and libraries for mingw build.

parent 79d17619
......@@ -44,6 +44,11 @@ ifeq ($(findstring -DOP_HAVE_LRINTF,${CFLAGS}),-DOP_HAVE_LRINTF)
LIBS := -lm $(LIBS)
endif
# Extras for the MS target
ifneq ($(findstring mingw,${CC}),)
LIBS += -lwsock32 -lws2_32 -lgdi32 -lcrypt32
endif
RANLIB ?= ranlib
#TODO: tests
......@@ -64,6 +69,10 @@ internal.c \
opusfile.c \
stream.c \
ifneq ($(findstring mingw,${CC}),)
LIBOPUSFILE_CSOURCES += wincerts.c
endif
LIBOPUSFILE_CHEADERS = \
internal.h \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment