X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=tests%2FMakefile.in;h=fbca16b8526f18b6ac9d08f81ff33357bfd45328;hb=refs%2Fheads%2Freleases;hp=bc17be58c4b02b205c486a9acf6a7a9b4c952d2a;hpb=6e71c81158706f7b9bbf8a6e8cbea41beed1aeae;p=rtaudio.git diff --git a/tests/Makefile.in b/tests/Makefile.in index bc17be5..fbca16b 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -1,51 +1,58 @@ ### Do not edit -- Generated by 'configure --with-whatever' from Makefile.in ### RtAudio tests Makefile - for various flavors of unix and MinGW -PROGRAMS = audioprobe playsaw playraw record duplex testall +PROGRAMS = audioprobe playsaw playraw record duplex testall teststops RM = /bin/rm -SRC_PATH = ../ -INCLUDE = ../ +SRC_PATH = .. +INCLUDE = .. OBJECT_PATH = @object_path@ vpath %.o $(OBJECT_PATH) -OBJECTS = RtAudio.o +OBJECTS = RtAudio.o @objects@ CC = @CXX@ -DEFS = @debug@ -DEFS += @audio_apis@ -CFLAGS = @cflags@ -CFLAGS += @warn@ -I$(INCLUDE) +DEFS = @CPPFLAGS@ +CFLAGS = @CXXFLAGS@ +CFLAGS += -I$(INCLUDE) -I../include LIBRARY = @LIBS@ -LIBRARY += @frameworks@ %.o : $(SRC_PATH)/%.cpp $(CC) $(CFLAGS) $(DEFS) -c $(<) -o $(OBJECT_PATH)/$@ +%.o : ../include/%.cpp + $(CC) $(CFLAGS) $(DEFS) -c $(<) -o $(OBJECT_PATH)/$@ + all : $(PROGRAMS) audioprobe : audioprobe.cpp $(OBJECTS) - $(CC) $(CFLAGS) $(DEFS) -o audioprobe audioprobe.cpp $(OBJECT_PATH)/RtAudio.o $(LIBRARY) + $(CC) $(CFLAGS) $(DEFS) -o audioprobe audioprobe.cpp $(OBJECT_PATH)/*.o $(LIBRARY) playsaw : playsaw.cpp $(OBJECTS) - $(CC) $(CFLAGS) $(DEFS) -o playsaw playsaw.cpp $(OBJECT_PATH)/RtAudio.o $(LIBRARY) + $(CC) $(CFLAGS) $(DEFS) -o playsaw playsaw.cpp $(OBJECT_PATH)/*.o $(LIBRARY) playraw : playraw.cpp $(OBJECTS) - $(CC) $(CFLAGS) $(DEFS) -o playraw playraw.cpp $(OBJECT_PATH)/RtAudio.o $(LIBRARY) + $(CC) $(CFLAGS) $(DEFS) -o playraw playraw.cpp $(OBJECT_PATH)/*.o $(LIBRARY) record : record.cpp $(OBJECTS) - $(CC) $(CFLAGS) $(DEFS) -o record record.cpp $(OBJECT_PATH)/RtAudio.o $(LIBRARY) + $(CC) $(CFLAGS) $(DEFS) -o record record.cpp $(OBJECT_PATH)/*.o $(LIBRARY) duplex : duplex.cpp $(OBJECTS) - $(CC) $(CFLAGS) $(DEFS) -o duplex duplex.cpp $(OBJECT_PATH)/RtAudio.o $(LIBRARY) + $(CC) $(CFLAGS) $(DEFS) -o duplex duplex.cpp $(OBJECT_PATH)/*.o $(LIBRARY) testall : testall.cpp $(OBJECTS) - $(CC) $(CFLAGS) $(DEFS) -o testall testall.cpp $(OBJECT_PATH)/RtAudio.o $(LIBRARY) + $(CC) $(CFLAGS) $(DEFS) -o testall testall.cpp $(OBJECT_PATH)/*.o $(LIBRARY) +teststops : teststops.cpp $(OBJECTS) + $(CC) $(CFLAGS) $(DEFS) -o teststops teststops.cpp $(OBJECT_PATH)/*.o $(LIBRARY) clean : - -rm $(OBJECT_PATH)/*.o - -rm $(PROGRAMS) - -rm -f *.raw *~ + $(RM) -f $(OBJECT_PATH)/*.o + $(RM) -f $(PROGRAMS) + $(RM) -f *.raw *~ *.exe + $(RM) -fR *.dSYM + +distclean: clean + $(RM) -f Makefile strip : strip $(PROGRAMS)