diff options
| author | Gary Scavone <gary@music.mcgill.ca> | 2007-12-06 01:40:05 +0000 |
|---|---|---|
| committer | Stephen Sinclair <sinclair@music.mcgill.ca> | 2013-10-10 01:08:11 +0200 |
| commit | 72ee1e6be2d918af467fef76932231be731795e9 (patch) | |
| tree | cdfed5b0b96a65ebfa407691218ea2ac8d1a64be /tests/Makefile | |
Version 2.0
Diffstat (limited to 'tests/Makefile')
| -rw-r--r-- | tests/Makefile | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile new file mode 100644 index 0000000..2f69c73 --- /dev/null +++ b/tests/Makefile @@ -0,0 +1,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)
\ No newline at end of file |
