Add initial bits for Qt6 support
[carla.git] / source / modules / rtaudio / Makefile
blobf3387b050477e8c8d6afd9b6cec648c6deadd5d7
1 #!/usr/bin/make -f
2 # Makefile for rtaudio #
3 # -------------------- #
4 # Created by falkTX
7 CWD=../..
8 MODULENAME=rtaudio
9 include ../Makefile.mk
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
17 endif
19 # ---------------------------------------------------------------------------------------------------------------------
21 OBJS = $(OBJDIR)/RtAudio.cpp.o
23 # ---------------------------------------------------------------------------------------------------------------------
25 all: $(MODULEDIR)/$(MODULENAME).a
27 # ---------------------------------------------------------------------------------------------------------------------
29 clean:
30 rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a
32 debug:
33 $(MAKE) DEBUG=true
35 # ---------------------------------------------------------------------------------------------------------------------
37 $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
38 -@mkdir -p $(MODULEDIR)
39 @echo "Creating $(MODULENAME).a"
40 $(SILENT)rm -f $@
41 $(SILENT)$(AR) crs $@ $^
43 # ---------------------------------------------------------------------------------------------------------------------
45 $(OBJDIR)/%.cpp.o: %.cpp
46 -@mkdir -p $(OBJDIR)
47 @echo "Compiling $<"
48 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
50 -include $(OBJS:%.o=%.d)
52 # ---------------------------------------------------------------------------------------------------------------------