Merge 4.0.9 into releases
[rtaudio.git] / Makefile.in
1 ### Do not edit -- Generated by 'configure --with-whatever' from Makefile.in
2 ### RtAudio library Makefile
3
4 RM = /bin/rm
5 LN = /bin/ln
6
7 OBJECTS = RtAudio.o @objects@
8
9 STATIC = librtaudio.a
10 SHARED = @sharedlib@
11 RELEASE = 4.0.7
12 LIBRARIES = $(STATIC) $(SHARED)
13
14 CC       = @CXX@
15 AR       = @AR@
16 RANLIB   = @RANLIB@
17
18 DEFS     = @CPPFLAGS@
19 CFLAGS   = @CXXFLAGS@ -Iinclude -fPIC
20
21 all : $(LIBRARIES)
22
23 tests:
24         cd tests && $(MAKE) all
25
26 $(LIBRARIES): $(OBJECTS)
27         $(AR) ruv $(STATIC) $(OBJECTS)
28         ranlib $(STATIC)
29         $(CC) -fPIC @libflags@ $(OBJECTS) @LIBS@
30         $(LN) -s @sharedname@ $(SHARED)
31
32 #       $(CC) -shared $(OBJECTS) -o $(SHARED) @LIBS@
33
34 %.o : %.cpp
35         $(CC) $(CFLAGS) $(DEFS) -c $(<) -o $@
36
37 %.o : include/%.cpp
38         $(CC) $(CFLAGS) $(DEFS) -c $(<) -o $@
39
40 clean : 
41         $(RM) -f $(LIBRARIES) @sharedname@ $(SHARED)*
42         $(RM) -f $(OBJECTS)
43         $(RM) -f *~
44         cd tests && $(MAKE) clean
45
46 distclean:
47         $(RM) -f $(LIBRARIES) @sharedname@ $(SHARED)*
48         $(RM) -f $(OBJECTS)
49         $(RM) -f *~
50         $(RM) -rf config.log config.status autom4te.cache Makefile rtaudio-config
51         cd tests && $(MAKE) distclean
52
53 strip : 
54         strip $(LIBRARIES)
55         ranlib $(LIBRARIES)
56         cd tests && $(MAKE) strip