Add initial bits for Qt6 support
[carla.git] / source / modules / rtmidi / Makefile
blob2e881e3c9ce5c7a2f6ee7615c218646302914cc6
1 #!/usr/bin/make -f
2 # Makefile for rtmidi #
3 # ------------------- #
4 # Created by falkTX
7 CWD=../..
8 MODULENAME=rtmidi
9 include ../Makefile.mk
11 # ---------------------------------------------------------------------------------------------------------------------
13 BUILD_CXX_FLAGS += $(RTMIDI_FLAGS) -w
15 # ---------------------------------------------------------------------------------------------------------------------
17 OBJS = $(OBJDIR)/RtMidi.cpp.o
19 # ---------------------------------------------------------------------------------------------------------------------
21 all: $(MODULEDIR)/$(MODULENAME).a
23 # ---------------------------------------------------------------------------------------------------------------------
25 clean:
26 rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a
28 debug:
29 $(MAKE) DEBUG=true
31 # ---------------------------------------------------------------------------------------------------------------------
33 $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
34 -@mkdir -p $(MODULEDIR)
35 @echo "Creating $(MODULENAME).a"
36 $(SILENT)rm -f $@
37 $(SILENT)$(AR) crs $@ $^
39 # ---------------------------------------------------------------------------------------------------------------------
41 $(OBJDIR)/%.cpp.o: %.cpp
42 -@mkdir -p $(OBJDIR)
43 @echo "Compiling $<"
44 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
46 -include $(OBJS:%.o=%.d)
48 # ---------------------------------------------------------------------------------------------------------------------