Add initial bits for Qt6 support
[carla.git] / source / modules / sfzero / Makefile
blob67540e911806e2b6e456d2e92b0ca3c4439b5b30
1 #!/usr/bin/make -f
2 # Makefile for sfzero #
3 # ------------------- #
4 # Created by falkTX
7 CWD=../..
8 MODULENAME=sfzero
9 include ../Makefile.mk
11 # ---------------------------------------------------------------------------------------------------------------------
13 BUILD_CXX_FLAGS += -I$(CWD)/modules
15 ifneq ($(HAIKU),true)
16 ifneq ($(WASM),true)
17 BUILD_CXX_FLAGS += -pthread
18 endif
19 endif
21 # ---------------------------------------------------------------------------------------------------------------------
23 OBJS = $(OBJDIR)/SFZero.cpp.o
25 # ---------------------------------------------------------------------------------------------------------------------
27 all: $(MODULEDIR)/$(MODULENAME).a
29 # ---------------------------------------------------------------------------------------------------------------------
31 clean:
32 rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a
34 debug:
35 $(MAKE) DEBUG=true
37 # ---------------------------------------------------------------------------------------------------------------------
39 $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
40 -@mkdir -p $(MODULEDIR)
41 @echo "Creating $(MODULENAME).a"
42 $(SILENT)rm -f $@
43 $(SILENT)$(AR) crs $@ $^
45 # ---------------------------------------------------------------------------------------------------------------------
47 $(OBJDIR)/%.cpp.o: %.cpp
48 -@mkdir -p $(OBJDIR)
49 @echo "Compiling $<"
50 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
52 -include $(OBJS:%.o=%.d)
54 # ---------------------------------------------------------------------------------------------------------------------