File: Makefile

package info (click to toggle)
psychtoolbox-3 3.0.9%2Bsvn2579.dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 63,408 kB
  • sloc: ansic: 73,310; cpp: 11,139; objc: 3,129; sh: 1,669; python: 382; php: 272; makefile: 172; java: 113
file content (34 lines) | stat: -rw-r--r-- 1,273 bytes parent folder | download | duplicates (2)
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
# PIC should be enabled to allow mixin while building resultant .mex
CFLAGS+=-fPIC

all: patch-stamp build

configure-stamp:
	cd portaudio; mkdir -p lib; \
	CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --disable-shared --without-jack --without-asiodir
	$(MAKE) -C portaudio clean || :
	touch $@

build: configure-stamp
	make -C portaudio || :
	: #  It is "ok" to fail for full build -- we just need a static library
	: # So it is important that file is present -- if not -- fail
	cp -p portaudio/lib/.libs/libportaudio.a .

patch-stamp: portaudio-stamp
	# Propagate patched files into the tree
	# cp -p pa_unix_util.c portaudio/src/os/unix/pa_unix_util.c
	# cp -p pa_process.c 	 portaudio/src/common/pa_process.c
	# cp -p pa_front_linux.c 	 portaudio/src/common/pa_front.c
	#: Use patches without relying on quilt patch-queue manager
	cat patches/series | while read pname; do patch -p1 < patches/$$pname; done
	touch $@

portaudio-stamp:
	#unzip portaudio_unpatched_except4OSX.zip \
	#		'portaudio/*' -x 'portaudio/bin/*' -x 'portaudio/lib/*' -x '*.o'
	tar -xzvf pa_stable_v19_061121.tar.gz
	touch $@

clean:
	rm -rf portaudio *-stamp libportaudio.a