Cleanup
[carla.git] / source / modules / zita-resampler / Makefile
blob345aa8cef4775c1bf91f185924a1d80b2ae2ea79
1 #!/usr/bin/make -f
2 # Makefile for zita-resampler #
3 # --------------------------- #
4 # Created by falkTX
7 CWD=../..
8 MODULENAME=zita-resampler
9 include ../Makefile.mk
11 # ---------------------------------------------------------------------------------------------------------------------
13 BUILD_CXX_FLAGS += -I.
15 # ---------------------------------------------------------------------------------------------------------------------
17 OBJS = \
18 $(OBJDIR)/cresampler.cc.o \
19 $(OBJDIR)/resampler-table.cc.o \
20 $(OBJDIR)/resampler.cc.o \
21 $(OBJDIR)/vresampler.cc.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)/%.cc.o: %.cc
46 -@mkdir -p $(OBJDIR)
47 @echo "Compiling $<"
48 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
50 -include $(OBJS:%.o=%.d)
52 # ---------------------------------------------------------------------------------------------------------------------