Spaces:
Runtime error
Runtime error
File size: 2,924 Bytes
83418c6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
#
# Makefile template for PortAudioCpp
# Ludwig Schwardt
# 01/10/2003
#
# Not much to edit here - rather check configure.ac
#
PREFIX = @prefix@
CC = @CC@
CXX = @CXX@
CFLAGS = @CFLAGS@ @DEFS@
CXXFLAGS = @CXXFLAGS@
SHARED_FLAGS = @SHARED_FLAGS@
LIBS = @LIBS@
DLL_LIBS = @DLL_LIBS@
AR = @AR@
RANLIB = @RANLIB@
INSTALL = @INSTALL@
PACPP_ROOT = @PACPP_ROOT@
PORTAUDIO = @PORTAUDIO@
PADLL = @PADLL@
PACPP_DLL = @PACPP_DLL@
PALIB = libportaudio.a
PACPP_LIB = libportaudiocpp.a
PACPP_DLLV = $(PACPP_DLL).0.0.12
SRCDIR = $(PACPP_ROOT)/source/portaudiocpp
BINDIR = $(PACPP_ROOT)/example
LIBDIR = $(PACPP_ROOT)/lib
DOCDIR = $(PACPP_ROOT)/doc
OBJS = \
$(SRCDIR)/BlockingStream.o \
$(SRCDIR)/CallbackInterface.o \
$(SRCDIR)/CallbackStream.o \
$(SRCDIR)/CFunCallbackStream.o \
$(SRCDIR)/CppFunCallbackStream.o \
$(SRCDIR)/Device.o \
$(SRCDIR)/DirectionSpecificStreamParameters.o \
$(SRCDIR)/Exception.o \
$(SRCDIR)/HostApi.o \
$(SRCDIR)/InterfaceCallbackStream.o \
$(SRCDIR)/MemFunCallbackStream.o \
$(SRCDIR)/Stream.o \
$(SRCDIR)/StreamParameters.o \
$(SRCDIR)/System.o \
$(SRCDIR)/SystemDeviceIterator.o \
$(SRCDIR)/SystemHostApiIterator.o
# Not supported yet
# $(SRCDIR)/AsioDeviceAdapter.o
EXAMPLES = \
$(BINDIR)/devs \
$(BINDIR)/sine
.PHONY: all clean docs
all: $(EXAMPLES) $(LIBDIR)/$(PACPP_LIB) $(LIBDIR)/$(PACPP_DLL)
clean:
rm -rf $(SRCDIR)/*.o $(BINDIR)/*.o $(EXAMPLES) $(LIBDIR) $(DOCDIR)/api_reference
rm -rf autom4te.cache config.status config.log
docs:
cd $(DOCDIR); doxygen config.doxy.linux
%.o: %.c
$(CC) -c $(CFLAGS) $< -o $@
%.o: %.cxx
$(CXX) -c $(CXXFLAGS) $< -o $@
$(EXAMPLES): $(BINDIR)/%: $(BINDIR)/%.o $(OBJS)
$(CXX) $^ -o $@ $(LIBS)
$(LIBDIR)/$(PACPP_LIB): $(LIBDIR) $(OBJS)
$(AR) ruv $(LIBDIR)/$(PACPP_LIB) $(OBJS)
$(RANLIB) $(LIBDIR)/$(PACPP_LIB)
$(LIBDIR)/$(PACPP_DLLV): $(LIBDIR) $(OBJS)
$(CXX) $(SHARED_FLAGS) -o $(LIBDIR)/$(PACPP_DLLV) $(OBJS) $(DLL_LIBS)
$(LIBDIR)/$(PACPP_DLL): $(LIBDIR) $(OBJS)
$(CXX) $(SHARED_FLAGS) -o $(LIBDIR)/$(PACPP_DLL) $(OBJS) $(DLL_LIBS)
#install: $(LIBDIR)/$(PACPP_LIB) $(LIBDIR)/$(PACPP_DLLV)
# $(INSTALL) -m 644 $(LIBDIR)/$(PACPP_DLLV) $(PREFIX)/lib/$(PACPP_DLLV)
# $(INSTALL) -m 644 $(LIBDIR)/$(PACPP_LIB) $(PREFIX)/lib/$(PACPP_LIB)
# cd $(PREFIX)/lib && rm -f $(PACPP_DLL) && ln -s $(PACPP_DLLV) $(PACPP_DLL)
# @echo ""
# @echo "------------------------------------------------------------"
# @echo "PortAudioCpp was successfully installed."
# @echo ""
# @echo "On some systems (e.g. Linux) you should run 'ldconfig' now"
# @echo "to make the shared object available. You may also need to"
# @echo "modify your LD_LIBRARY_PATH environment variable to include"
# @echo "the directory $(PREFIX)/lib"
# @echo "------------------------------------------------------------"
# @echo ""
$(LIBDIR):
mkdir $(LIBDIR)
|