]> Repos - portaudio/commitdiff
Checked in by Phil for Bill Eldridge
authorphilburk <philburk@0f58301d-fd10-0410-b4af-bbb618454e57>
Tue, 30 Apr 2002 16:35:50 +0000 (16:35 +0000)
committerphilburk <philburk@0f58301d-fd10-0410-b4af-bbb618454e57>
Tue, 30 Apr 2002 16:35:50 +0000 (16:35 +0000)
Bills's mod: Made the libinstall and tests compile a bit cleaner

Makefile.linux

index 9f67ce6acc2ba80f6b870deaa9283b12514fca1f..4deee60ac4ffb6070ecf624a18761f633d49a4df 100644 (file)
@@ -1,6 +1,8 @@
 # Make PortAudio for Linux
 # Updated 2001/08/25 Bill Eldridge bill@rfa.org
 # Updated 2001/10/16, philburk@softsynth.com, s/unix_oss/unix_oss/
+# Updated 2002/04/30 Bill Eldridge bill@rfa.org
+#     Made the libinstall and tests compile a bit cleaner
 
 # A pretty bare makefile, that figures out all the test files
 # and compiles them against the library in the pa_unix_oss directory.
@@ -19,23 +21,34 @@ CFLAGS = -g
 LIBINST = /usr/local/lib
 
 TESTS:= $(wildcard pa_tests/pa*.c pa_tests/debug*.c)
+TESTO:= $(wildcard pa_tests/pa*.o pa_tests/debug*.o)
 
 LIBFILES:= ./pa_common/pa_lib.c ./pa_unix_oss/pa_unix_oss.c
 
+#all: sharedlib libinstall tests
+all: sharedlib libinstall testo testq
+
 .c.o:
        -gcc -c -I./pa_common $< -o $*.o
+
+.o:
        -gcc $*.o -o $* -Lpa_unix_oss $(LIBS) -lportaudio
 
-all: sharedlib tests
+#.c.o:
+#      -gcc -c -I./pa_common $< -o $*.o
+#      -gcc $*.o -o $* -Lpa_unix_oss $(LIBS) -lportaudio
+
 
 sharedlib:     $(LIBFILES:.c=.o)
        gcc -shared -o ./pa_unix_oss/libportaudio.so ./pa_common/pa_lib.o ./pa_unix_oss/pa_unix_oss.o
 
 libinstall:    ./pa_unix_oss/libportaudio.so
        @cp -f ./pa_unix_oss/libportaudio.so $(LIBINST)
-       @/sbin/ldconfig -v
+       @/sbin/ldconfig
+
+testo: $(TESTS:.c=.o)
 
-tests: $(TESTS:.c=.o)
+testq: $(TESTO:.o=)
 
 clean:
        -@rm -f $(TESTS:.c=.o)