Skip to content
Snippets Groups Projects
Commit 8bb3ac27 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

backport changes to portaudio and asio from Vanilla

parent c7ba3db0
No related branches found
No related tags found
No related merge requests found
# how Miller builds Pd on Windows: # makefile to compile for windows using the mingw suite.
# To use this makefile to cross-compile from linux, type for example:
# make -f makefile.mingw CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-c++ \
# WINDRES=i686-w64-mingw32-windres
# Miller's Windows build uses Microsoft Visual C and makefile.msvc:
# http://lists.puredata.info/pipermail/pd-dev/2004-10/002981.html # http://lists.puredata.info/pipermail/pd-dev/2004-10/002981.html
CC = gcc CC = gcc
CXX = g++ CXX = g++
WINDRES = windres
cvs_root_dir = ../.. cvs_root_dir = ../..
pd_src = $(cvs_root_dir)/pd pd_src = $(cvs_root_dir)/pd
...@@ -35,20 +41,27 @@ DLLWRAP= dllwrap ...@@ -35,20 +41,27 @@ DLLWRAP= dllwrap
MORECFLAGS = -O3 -funroll-loops -fomit-frame-pointer MORECFLAGS = -O3 -funroll-loops -fomit-frame-pointer
PADIR = $(pd_src)/portaudio PADIR = $(pd_src)/portaudio
ASIODIR = $(pd_src)/asio ASIODIR = $(pd_src)/lib/ASIOSDK2.3
INCPA = -I$(PADIR) -I$(ASIODIR) -I$(PADIR)/include -I$(PADIR)/src/common ASIOINC = -I$(ASIODIR)/common -I$(ASIODIR)/host -I$(ASIODIR)/host/pc
INCPA = -I$(PADIR)/include -I$(PADIR)/src/common -I$(PADIR)/src/os/win \
$(ASIOINC)
INCLUDE = -I$(pd_src)/src INCLUDE = -I$(pd_src)/src
GINCLUDE = -I/usr/local/include $(INCLUDE) GINCLUDE = -I/usr/local/include $(INCLUDE)
LDFLAGS = LDFLAGS =
LIBS = -lm -lpthreadGC2 -lwsock32 -lwinmm -lole32 -ltcl85 -ltk85 LIBS = -lm -lwsock32 -lwinmm -lole32 -lpthread
OPT_CFLAGS = OPT_CFLAGS =
WARN_CFLAGS = -Wall -W -Wstrict-prototypes -Wno-unused \ WARN_CFLAGS = -Wall -W -Wstrict-prototypes -Wno-unused \
-Wno-unused-parameter -Wno-parentheses -Wno-switch -Wno-unused-parameter -Wno-parentheses -Wno-switch
ARCH_CFLAGS = -DPD -DPD_INTERNAL -DMSW -DNT -DPA_NO_DS -DUSEAPI_MMIO -DPA_NO_WASAPI \ # Some old code in asio/ASIOSDK2/common/combase.h needs to be ignored,
-DUSEAPI_PORTAUDIO -DPA19 -DPA_LITTLE_ENDIAN -mms-bitfields # we do this by setting the WINVER macro to min Windows XP aka 5.1.
# Also, for SetDllDirectory() s_loader.c, we need a minium of Windows
# XP SP1. WINVER isnt' fine-grained enough for that, so we use the
# next minor version of Windows, 5.2.
ARCH_CFLAGS = -DPD -DPD_INTERNAL -DPA_USE_ASIO -DPA_USE_WMME -DWINVER=0x0502 \
-DUSEAPI_MMIO -DUSEAPI_PORTAUDIO -mms-bitfields -DWISHAPP='"wish85.exe"'
CFLAGS += $(ARCH_CFLAGS) $(WARN_CFLAGS) $(OPT_CFLAGS) $(MORECFLAGS) CFLAGS += $(ARCH_CFLAGS) $(WARN_CFLAGS) $(OPT_CFLAGS) $(MORECFLAGS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment