summaryrefslogtreecommitdiff
path: root/tests/Makefile
blob: 2f69c73e40b7a6b1f60a2bed1e4c129749617114 (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
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

OS = $(shell uname)

RM = /bin/rm

ifeq ($(OS),Linux) # These are for Linux
	INSTR = info play_saw record_raw in_out play_raw twostreams call_saw call_inout call_twostreams
	CC = g++ -Wall -D__LINUX_OSS_# -g -pg -O3
	LIBRARY = -lpthread
#	CC = g++ -g -Wall -D__LINUX_ALSA_ # -g -pg -O3
#	LIBRARY = -lpthread -lasound
	INCLUDE = -I../
endif

ifeq ($(OS),IRIX) # These are for SGI
	INSTR = info play_saw record_raw in_out play_raw twostreams call_saw call_inout call_twostreams
	CC = CC -D__IRIX_AL_ # -g -fullwarn -D__SGI_CC__ -O2
	LIBRARY = -laudio -lpthread
	INCLUDE = -I../
endif

all: $(INSTR)

clean :
	rm $(INSTR) *~ *.raw core *.o 

cleanIns : 
	rm $(INSTR)

strip : 
	strip $(INSTR)

info: info.cpp ../RtAudio.cpp ../RtAudio.h
	$(CC) -o info info.cpp ../RtAudio.cpp $(LIBRARY) $(INCLUDE)

play_saw: play_saw.cpp ../RtAudio.cpp ../RtAudio.h
	$(CC) -o play_saw play_saw.cpp ../RtAudio.cpp $(LIBRARY) $(INCLUDE)

play_raw: play_raw.cpp ../RtAudio.cpp ../RtAudio.h
	$(CC) -o play_raw play_raw.cpp ../RtAudio.cpp $(LIBRARY) $(INCLUDE)

record_raw: record_raw.cpp ../RtAudio.cpp ../RtAudio.h
	$(CC) -o record_raw record_raw.cpp ../RtAudio.cpp $(LIBRARY) $(INCLUDE)

in_out: in_out.cpp ../RtAudio.cpp ../RtAudio.h
	$(CC) -o in_out in_out.cpp ../RtAudio.cpp $(LIBRARY) $(INCLUDE)

twostreams: twostreams.cpp ../RtAudio.cpp ../RtAudio.h
	$(CC) -o twostreams twostreams.cpp ../RtAudio.cpp $(LIBRARY) $(INCLUDE)

call_saw: call_saw.cpp ../RtAudio.cpp ../RtAudio.h
	$(CC) -o call_saw call_saw.cpp ../RtAudio.cpp $(LIBRARY) $(INCLUDE)

call_inout: call_inout.cpp ../RtAudio.cpp ../RtAudio.h
	$(CC) -o call_inout call_inout.cpp ../RtAudio.cpp $(LIBRARY) $(INCLUDE)

call_twostreams: call_twostreams.cpp ../RtAudio.cpp ../RtAudio.h
	$(CC) -o call_twostreams call_twostreams.cpp ../RtAudio.cpp $(LIBRARY) $(INCLUDE)