summaryrefslogtreecommitdiff
path: root/Makefile.in
blob: 5429b773186b05e072030ebe4c06006ad5a39188 (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
### Do not edit -- Generated by 'configure --with-whatever' from Makefile.in
### RtAudio library Makefile

RM = /bin/rm

OBJECTS	= RtAudio.o @objects@

STATIC = librtaudio.a
SHARED = librtaudio.so
LIBRARIES = $(STATIC) $(SHARED)

CC       = @CXX@
AR       = @AR@
RANLIB   = @RANLIB@

DEFS     = @CPPFLAGS@
CFLAGS   = @CXXFLAGS@ -Iinclude -fPIC

all : $(LIBRARIES)

tests:
	cd tests && $(MAKE) all

$(LIBRARIES): $(OBJECTS)
	$(AR) ruv $(STATIC) $(OBJECTS)
	ranlib $(STATIC)
	$(CC) -shared $(OBJECTS) -o $(SHARED) @LIBS@

%.o : %.cpp
	$(CC) $(CFLAGS) $(DEFS) -c $(<) -o $@

%.o : include/%.cpp
	$(CC) $(CFLAGS) $(DEFS) -c $(<) -o $@

clean : 
	$(RM) -f $(LIBRARIES)
	$(RM) -f $(OBJECTS)
	$(RM) -f *~
	cd tests && $(MAKE) clean

distclean: clean
	$(RM) -rf config.log config.status autom4te.cache Makefile rtaudio-config
	cd tests && $(MAKE) distclean

strip : 
	strip $(LIBRARIES)
	ranlib $(LIBRARIES)
	cd tests && $(MAKE) strip