| 1 |
# |
| 2 |
# PortAudio V19 Makefile.in |
| 3 |
# |
| 4 |
# Dominic Mazzoni |
| 5 |
# Modifications by Mikael Magnusson |
| 6 |
# |
| 7 |
|
| 8 |
top_srcdir = @top_srcdir@ |
| 9 |
srcdir = @srcdir@ |
| 10 |
VPATH = @srcdir@ |
| 11 |
top_builddir = . |
| 12 |
PREFIX = @prefix@ |
| 13 |
prefix = $(PREFIX) |
| 14 |
exec_prefix = @exec_prefix@ |
| 15 |
bindir = @bindir@ |
| 16 |
libdir = @libdir@ |
| 17 |
includedir = @includedir@ |
| 18 |
CC = @CC@ |
| 19 |
CFLAGS = @CFLAGS@ -I$(top_srcdir)/include -I$(top_srcdir)/src/common -I$(top_srcdir)/src/os/unix @DEFS@ |
| 20 |
LIBS = @LIBS@ |
| 21 |
AR = @AR@ |
| 22 |
RANLIB = @RANLIB@ |
| 23 |
LIBTOOL = @LIBTOOL@ |
| 24 |
INSTALL = @INSTALL@ |
| 25 |
INSTALL_DATA = @INSTALL_DATA@ |
| 26 |
SHARED_FLAGS = @SHARED_FLAGS@ |
| 27 |
LDFLAGS = @LDFLAGS@ |
| 28 |
DLL_LIBS = @DLL_LIBS@ |
| 29 |
CXXFLAGS = @CXXFLAGS@ |
| 30 |
NASM = @NASM@ |
| 31 |
NASMOPT = @NASMOPT@ |
| 32 |
LN_S = @LN_S@ |
| 33 |
LT_RELEASE=@LT_RELEASE@ |
| 34 |
LT_CURRENT=@LT_CURRENT@ |
| 35 |
LT_REVISION=@LT_REVISION@ |
| 36 |
LT_AGE=@LT_AGE@ |
| 37 |
|
| 38 |
OTHER_OBJS = @OTHER_OBJS@ |
| 39 |
|
| 40 |
PALIB = libportaudio.la |
| 41 |
PAINC = include/portaudio.h |
| 42 |
|
| 43 |
PA_LDFLAGS = $(LDFLAGS) $(SHARED_FLAGS) -rpath $(libdir) -no-undefined -export-symbols-regex "Pa_.*" -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) |
| 44 |
#MAKEFILE = Makefile |
| 45 |
|
| 46 |
COMMON_OBJS = \ |
| 47 |
src/common/pa_allocation.o \ |
| 48 |
src/common/pa_converters.o \ |
| 49 |
src/common/pa_cpuload.o \ |
| 50 |
src/common/pa_dither.o \ |
| 51 |
src/common/pa_front.o \ |
| 52 |
src/common/pa_process.o \ |
| 53 |
src/common/pa_skeleton.o \ |
| 54 |
src/common/pa_stream.o \ |
| 55 |
src/common/pa_trace.o |
| 56 |
|
| 57 |
TESTS = \ |
| 58 |
bin/paqa_devs \ |
| 59 |
bin/paqa_errs \ |
| 60 |
bin/patest1 \ |
| 61 |
bin/patest_buffer \ |
| 62 |
bin/patest_callbackstop \ |
| 63 |
bin/patest_clip \ |
| 64 |
bin/patest_dither \ |
| 65 |
bin/patest_hang \ |
| 66 |
bin/patest_in_overflow \ |
| 67 |
bin/patest_latency \ |
| 68 |
bin/patest_leftright \ |
| 69 |
bin/patest_longsine \ |
| 70 |
bin/patest_many \ |
| 71 |
bin/patest_maxsines \ |
| 72 |
bin/patest_multi_sine \ |
| 73 |
bin/patest_out_underflow \ |
| 74 |
bin/patest_pink \ |
| 75 |
bin/patest_prime \ |
| 76 |
bin/patest_read_record \ |
| 77 |
bin/patest_read_write_wire \ |
| 78 |
bin/patest_record \ |
| 79 |
bin/patest_ringmix \ |
| 80 |
bin/patest_saw \ |
| 81 |
bin/patest_sine8 \ |
| 82 |
bin/patest_sine \ |
| 83 |
bin/patest_sine_formats \ |
| 84 |
bin/patest_sine_time \ |
| 85 |
bin/patest_start_stop \ |
| 86 |
bin/patest_stop \ |
| 87 |
bin/patest_toomanysines \ |
| 88 |
bin/patest_underflow \ |
| 89 |
bin/patest_wire \ |
| 90 |
bin/patest_write_sine \ |
| 91 |
bin/pa_devs \ |
| 92 |
bin/pa_fuzz \ |
| 93 |
bin/pa_minlat |
| 94 |
|
| 95 |
# Most of these don't compile yet. Put them in TESTS, above, if |
| 96 |
# you want to try to compile them... |
| 97 |
ALL_TESTS = \ |
| 98 |
$(TESTS) \ |
| 99 |
bin/patest_sync \ |
| 100 |
bin/debug_convert \ |
| 101 |
bin/debug_dither_calc \ |
| 102 |
bin/debug_dual \ |
| 103 |
bin/debug_multi_in \ |
| 104 |
bin/debug_multi_out \ |
| 105 |
bin/debug_record \ |
| 106 |
bin/debug_record_reuse \ |
| 107 |
bin/debug_sine_amp \ |
| 108 |
bin/debug_sine \ |
| 109 |
bin/debug_sine_formats \ |
| 110 |
bin/debug_srate \ |
| 111 |
bin/debug_test1 |
| 112 |
|
| 113 |
OBJS = $(COMMON_OBJS) $(OTHER_OBJS) |
| 114 |
|
| 115 |
LTOBJS:= $(OBJS:.o=.lo) |
| 116 |
|
| 117 |
all: lib/$(PALIB) #tests |
| 118 |
|
| 119 |
tests: bin-stamp $(TESTS) |
| 120 |
|
| 121 |
|
| 122 |
lib/$(PALIB): lib-stamp $(LTOBJS) $(MAKEFILE) $(PAINC) |
| 123 |
$(LIBTOOL) --mode=link $(CC) $(PA_LDFLAGS) -o lib/$(PALIB) $(LTOBJS) $(DLL_LIBS) |
| 124 |
|
| 125 |
$(ALL_TESTS): bin/%: lib/$(PALIB) $(MAKEFILE) $(PAINC) test/%.c |
| 126 |
$(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(top_srcdir)/test/$*.c lib/$(PALIB) $(LIBS) |
| 127 |
|
| 128 |
|
| 129 |
install: lib/$(PALIB) portaudio-2.0.pc |
| 130 |
$(INSTALL) -d $(DESTDIR)$(libdir) |
| 131 |
$(LIBTOOL) --mode=install $(INSTALL) lib/$(PALIB) $(DESTDIR)$(libdir) |
| 132 |
$(INSTALL) -d $(DESTDIR)$(includedir) |
| 133 |
$(INSTALL_DATA) -m 644 $(top_srcdir)/$(PAINC) $(DESTDIR)$(includedir)/portaudio.h |
| 134 |
$(INSTALL) -d $(DESTDIR)$(libdir)/pkgconfig |
| 135 |
$(INSTALL) -m 644 portaudio-2.0.pc $(DESTDIR)$(libdir)/pkgconfig/portaudio-2.0.pc |
| 136 |
@echo "" |
| 137 |
@echo "------------------------------------------------------------" |
| 138 |
@echo "PortAudio was successfully installed." |
| 139 |
@echo "" |
| 140 |
@echo "On some systems (e.g. Linux) you should run 'ldconfig' now" |
| 141 |
@echo "to make the shared object available. You may also need to" |
| 142 |
@echo "modify your LD_LIBRARY_PATH environment variable to include" |
| 143 |
@echo "the directory $(libdir)" |
| 144 |
@echo "------------------------------------------------------------" |
| 145 |
@echo "" |
| 146 |
|
| 147 |
uninstall: |
| 148 |
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(PALIB) |
| 149 |
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(includedir)/portaudio.h |
| 150 |
|
| 151 |
clean: |
| 152 |
$(LIBTOOL) --mode=clean rm -f $(LTOBJS) $(ALL_TESTS) lib/$(PALIB) |
| 153 |
rm -f bin-stamp lib-stamp |
| 154 |
-rm -rf bin lib |
| 155 |
-rmdir src/os/win src/os/unix src/os/mac_osx src/common \ |
| 156 |
src/hostapi/oss src/hostapi/alsa src/hostapi/jack src/hostapi/wmme \ |
| 157 |
src/hostapi/wdmks src/hostapi/dsound src/hostapi/wasapi src/hostapi src/os src |
| 158 |
|
| 159 |
distclean: clean |
| 160 |
rm -f config.log config.status Makefile libtool portaudio-2.0.pc |
| 161 |
|
| 162 |
%.o: %.c $(MAKEFILE) $(PAINC) |
| 163 |
$(CC) -c $(CFLAGS) $< -o $@ |
| 164 |
|
| 165 |
%.lo: %.c $(MAKEFILE) $(PAINC) |
| 166 |
$(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) $< -o $@ |
| 167 |
|
| 168 |
%.o: %.cpp $(MAKEFILE) $(PAINC) |
| 169 |
$(CXX) -c $(CXXFLAGS) $< -o $@ |
| 170 |
|
| 171 |
%.o: %.asm |
| 172 |
$(NASM) $(NASMOPT) -o $@ $< |
| 173 |
|
| 174 |
bin-stamp: |
| 175 |
-mkdir bin |
| 176 |
touch $@ |
| 177 |
|
| 178 |
lib-stamp: |
| 179 |
-mkdir lib |
| 180 |
-mkdir -p src/os/win src/os/unix src/os/mac_osx src/common \ |
| 181 |
src/hostapi/oss src/hostapi/alsa src/hostapi/jack src/hostapi/wmme \ |
| 182 |
src/hostapi/wdmks src/hostapi/dsound src/hostapi/wasapi |
| 183 |
touch $@ |
| 184 |
|
| 185 |
Makefile: Makefile.in config.status |
| 186 |
$(SHELL) config.status |