Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Correct values for MinGW Makefile.

  • Loading branch information...
commit 63195d791da74df3c703e3514b038516561ecfa0 1 parent 30e6cac
@residuum authored
Showing with 5 additions and 1 deletion.
  1. +2 −0  .gitignore
  2. +3 −1 Makefile
View
2  .gitignore
@@ -1,5 +1,7 @@
*.o
*.pd_*
+*.deb
+*.dll
libpurest_json.so
libpurest_json.dylib
libpurest_json.dll
View
4 Makefile
@@ -36,6 +36,8 @@ ALL_CFLAGS = -I"$(PD_INCLUDE)" -std=c99
ALL_LDFLAGS =
SHARED_LDFLAGS =
ALL_LIBS = -lcurl -ljson
+LIBS_windows = -lpthread
+CFLAGS_windows = -mthreads
#------------------------------------------------------------------------------#
@@ -217,7 +219,7 @@ ifeq (MINGW,$(findstring MINGW,$(UNAME)))
# MinGW doesn't seem to include cc so force gcc
CC=gcc
OPT_CFLAGS = -O3 -funroll-loops -fomit-frame-pointer
- ALL_CFLAGS += -mms-bitfields
+ ALL_CFLAGS += -mms-bitfields $(CFLAGS_windows)
ALL_LDFLAGS += -s -shared -Wl,--enable-auto-import -L"$(PD_PATH)/src" -L"$(PD_PATH)/bin" -L"$(PD_PATH)/obj"
SHARED_LDFLAGS += -shared
ALL_LIBS += -lpd -lwsock32 -lkernel32 -luser32 -lgdi32 $(LIBS_windows)
Please sign in to comment.
Something went wrong with that request. Please try again.