Permalink
Browse files

* misc/Makefile-dll: used this to build a portaudio dll on windows t…

…hat actually worked with the extension.
  • Loading branch information...
1 parent 585c6b3 commit 8b96ba609dddad38a1c89d7dbceae21cbaf6cbd7 _why committed Feb 21, 2009
Showing with 91 additions and 0 deletions.
  1. +91 −0 misc/Makefile-dll
View
@@ -0,0 +1,91 @@
+# Project: portaudio-dll
+# Makefile created by Dev-C++ 4.9.8.2
+# modified 2009-01-25 by Mateusz Czaplinski for MinGW and PortAudio V19.
+# http://www.musescore.org/en/handbook/compile-instructions-windows-mingw
+
+TMPOBJ = ./pa_asio.o ./iasiothiscallresolver.o ./pa_win_ds.o ./dsound_wrapper.o
+TMPLINKOBJ = ./pa_asio.o ./iasiothiscallresolver.o ./pa_win_ds.o ./dsound_wrapper.o
+
+CPP = g++.exe
+CC = gcc.exe
+WINDRES = windres.exe
+RES =
+OBJ = ./pa_skeleton.o ./pa_stream.o ./pa_trace.o ./pa_allocation.o ./pa_converters.o ./pa_cpuload.o ./pa_dither.o ./pa_front.o ./pa_process.o ./pa_win_util.o ./pa_win_hostapis.o ./pa_win_wmme.o ./pa_win_waveformat.o $(RES)
+LINKOBJ = ./pa_skeleton.o ./pa_stream.o ./pa_trace.o ./pa_allocation.o ./pa_converters.o ./pa_cpuload.o ./pa_dither.o ./pa_front.o ./pa_process.o ./pa_win_util.o ./pa_win_hostapis.o ./pa_win_wmme.o ./pa_win_waveformat.o $(RES)
+LIBS = -fmessage-length=0 -export-all-symbols --add-stdcall-alias -O3 -s -lwinmm
+INCS = -I"../../src/common" -I"../../include"
+CXXINCS = -I"../../src/common" -I"../../include"
+BIN = portaudio.dll
+CXXFLAGS = $(CXXINCS) -DBUILDING_DLL=1 -O3 -fmessage-length=0 -Wall -DPA_NO_DS -DPA_NO_ASIO
+CFLAGS = $(CXXFLAGS)
+
+.PHONY: all all-before all-after clean clean-custom
+
+all: all-before $(BIN) all-after
+
+
+clean: clean-custom
+ rm -f $(OBJ) $(BIN)
+
+DLLWRAP=dllwrap.exe
+DEFFILE=libportaudio.def
+STATICLIB=libportaudio.a
+
+$(BIN): $(LINKOBJ)
+ $(DLLWRAP) --output-def $(DEFFILE) --driver-name c++ --implib $(STATICLIB) $(LINKOBJ) $(LIBS) -o $(BIN)
+
+./pa_skeleton.o: ../../src/common/pa_skeleton.c
+ $(CPP) -c ../../src/common/pa_skeleton.c -o ./pa_skeleton.o $(CXXFLAGS)
+
+./pa_stream.o: ../../src/common/pa_stream.c
+ $(CPP) -c ../../src/common/pa_stream.c -o ./pa_stream.o $(CXXFLAGS)
+
+./pa_trace.o: ../../src/common/pa_trace.c
+ $(CPP) -c ../../src/common/pa_trace.c -o ./pa_trace.o $(CXXFLAGS)
+
+./pa_allocation.o: ../../src/common/pa_allocation.c
+ $(CPP) -c ../../src/common/pa_allocation.c -o ./pa_allocation.o $(CXXFLAGS)
+
+./pa_converters.o: ../../src/common/pa_converters.c
+ $(CPP) -c ../../src/common/pa_converters.c -o ./pa_converters.o $(CXXFLAGS)
+
+./pa_cpuload.o: ../../src/common/pa_cpuload.c
+ $(CPP) -c ../../src/common/pa_cpuload.c -o ./pa_cpuload.o $(CXXFLAGS)
+
+./pa_dither.o: ../../src/common/pa_dither.c
+ $(CPP) -c ../../src/common/pa_dither.c -o ./pa_dither.o $(CXXFLAGS)
+
+./pa_front.o: ../../src/common/pa_front.c
+ $(CPP) -c ../../src/common/pa_front.c -o ./pa_front.o $(CXXFLAGS)
+
+./pa_process.o: ../../src/common/pa_process.c
+ $(CPP) -c ../../src/common/pa_process.c -o ./pa_process.o $(CXXFLAGS)
+
+#./pa_asio.o: ../../pa_asio/pa_asio.cpp
+# $(CPP) -c ../../pa_asio/pa_asio.cpp -o ./pa_asio.o $(CXXFLAGS)
+
+./pa_win_util.o: ../../src/os/win/pa_win_util.c
+ $(CPP) -c ../../src/os/win/pa_win_util.c -o ./pa_win_util.o $(CXXFLAGS)
+
+./pa_win_hostapis.o: ../../src/os/win/pa_win_hostapis.c
+ $(CPP) -c ../../src/os/win/pa_win_hostapis.c -o ./pa_win_hostapis.o $(CXXFLAGS)
+
+#./pa_win_ds.o: ../../pa_win_ds/pa_win_ds.c
+# $(CPP) -c ../../pa_win_ds/pa_win_ds.c -o ./pa_win_ds.o $(CXXFLAGS)
+#./pa_win_ds.o: ../../src/hostapi/dsound/pa_win_ds.c
+# $(CPP) -c ../../src/hostapi/dsound/pa_win_ds.c -o ./pa_win_ds.o $(CXXFLAGS)
+
+#./dsound_wrapper.o: ../../pa_win_ds/dsound_wrapper.c
+# $(CPP) -c ../../pa_win_ds/dsound_wrapper.c -o ./dsound_wrapper.o $(CXXFLAGS)
+#./dsound_wrapper.o: ../../src/hostapi/dsound/pa_win_ds_dynlink.c
+# $(CPP) -c ../../src/hostapi/dsound/pa_win_ds_dynlink.c -o ./dsound_wrapper.o $(CXXFLAGS)
+
+./pa_win_wmme.o: ../../src/hostapi/wmme/pa_win_wmme.c
+ $(CPP) -c ../../src/hostapi/wmme/pa_win_wmme.c -o ./pa_win_wmme.o $(CXXFLAGS)
+
+#./iasiothiscallresolver.o: ../../pa_asio/iasiothiscallresolver.cpp
+# $(CPP) -c ../../pa_asio/iasiothiscallresolver.cpp -o ./iasiothiscallresolver.o $(CXXFLAGS)
+
+./pa_win_waveformat.o: ../../src/os/win/pa_win_waveformat.c
+ $(CPP) -c ../../src/os/win/pa_win_waveformat.c -o ./pa_win_waveformat.o $(CXXFLAGS)
+

0 comments on commit 8b96ba6

Please sign in to comment.