2 # Makefile for rtmidi #
3 # ------------------- #
11 # ---------------------------------------------------------------------------------------------------------------------
13 BUILD_CXX_FLAGS
+= $(RTMIDI_FLAGS
) -w
15 # ---------------------------------------------------------------------------------------------------------------------
17 OBJS
= $(OBJDIR
)/RtMidi.
cpp.o
19 # ---------------------------------------------------------------------------------------------------------------------
21 all: $(MODULEDIR
)/$(MODULENAME
).a
23 # ---------------------------------------------------------------------------------------------------------------------
26 rm -f
$(OBJDIR
)/*.o
$(MODULEDIR
)/$(MODULENAME
)*.a
31 # ---------------------------------------------------------------------------------------------------------------------
33 $(MODULEDIR
)/$(MODULENAME
).a
: $(OBJS
)
34 -@mkdir
-p
$(MODULEDIR
)
35 @echo
"Creating $(MODULENAME).a"
37 $(SILENT
)$(AR
) crs
$@
$^
39 # ---------------------------------------------------------------------------------------------------------------------
41 $(OBJDIR
)/%.
cpp.o
: %.
cpp
44 $(SILENT
)$(CXX
) $< $(BUILD_CXX_FLAGS
) -c
-o
$@
46 -include $(OBJS
:%.o
=%.d
)
48 # ---------------------------------------------------------------------------------------------------------------------