2 # Makefile for rtaudio #
3 # -------------------- #
11 # ---------------------------------------------------------------------------------------------------------------------
13 BUILD_CXX_FLAGS
+= $(RTAUDIO_FLAGS
) -I
$(CWD
) -Iinclude
15 ifeq ($(WINDOWS
),true
)
16 BUILD_CXX_FLAGS
+= -Wno-unused-function
-Wno-unused-but-set-variable
19 # ---------------------------------------------------------------------------------------------------------------------
21 OBJS
= $(OBJDIR
)/RtAudio.
cpp.o
23 # ---------------------------------------------------------------------------------------------------------------------
25 all: $(MODULEDIR
)/$(MODULENAME
).a
27 # ---------------------------------------------------------------------------------------------------------------------
30 rm -f
$(OBJDIR
)/*.o
$(MODULEDIR
)/$(MODULENAME
)*.a
35 # ---------------------------------------------------------------------------------------------------------------------
37 $(MODULEDIR
)/$(MODULENAME
).a
: $(OBJS
)
38 -@mkdir
-p
$(MODULEDIR
)
39 @echo
"Creating $(MODULENAME).a"
41 $(SILENT
)$(AR
) crs
$@
$^
43 # ---------------------------------------------------------------------------------------------------------------------
45 $(OBJDIR
)/%.
cpp.o
: %.
cpp
48 $(SILENT
)$(CXX
) $< $(BUILD_CXX_FLAGS
) -c
-o
$@
50 -include $(OBJS
:%.o
=%.d
)
52 # ---------------------------------------------------------------------------------------------------------------------