aboutsummaryrefslogtreecommitdiff
path: root/pd/portaudio_v18/pa_unix_oss/Makefile
blob: 3603816afffedcd85447e65b805f367793491b3f (plain)
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
# Make PortAudio for Linux
#
# by Phil Burk
#
# To compile a test program, make a target with a .app suffix.
# For example to compile "../pa_tests/pa_devs.c", enter:
#    gmake pa_devs.app
#
# To compile and execute a test program, make a target with a .run suffix.
# For example to build and run "../pa_tests/pa_devs.c", enter:
#    gmake pa_devs.run

VPATH  = ../pa_common ../pa_tests
CFLAGS = -g -Wall -I../pa_common
CC     = gcc

PAOBJS = pa_lib.o pa_unix_oss.o pa_unix.o
PAINC  = portaudio.h pa_unix.h
PALIBS =  -lm -lpthread

all: patest_sine.run

%.app: %.o $(PAOBJS) $(PAINC) Makefile
	gcc $(CFLAGS) $*.o $(PAOBJS) $(PALIBS) -o $@

%.run: %.app
	./$*.app

clean:
	-rm *.app
	-rm *.o