#!/usr/bin/make -f # Makefile for zita-resampler # # --------------------------- # # Created by falkTX # CWD=../.. MODULENAME=zita-resampler include ../Makefile.mk # --------------------------------------------------------------------------------------------------------------------- BUILD_CXX_FLAGS += -I. # --------------------------------------------------------------------------------------------------------------------- OBJS = \ $(OBJDIR)/cresampler.cc.o \ $(OBJDIR)/resampler-table.cc.o \ $(OBJDIR)/resampler.cc.o \ $(OBJDIR)/vresampler.cc.o # --------------------------------------------------------------------------------------------------------------------- all: $(MODULEDIR)/$(MODULENAME).a # --------------------------------------------------------------------------------------------------------------------- clean: rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a debug: $(MAKE) DEBUG=true # --------------------------------------------------------------------------------------------------------------------- $(MODULEDIR)/$(MODULENAME).a: $(OBJS) -@mkdir -p $(MODULEDIR) @echo "Creating $(MODULENAME).a" @rm -f $@ @$(AR) crs $@ $^ # --------------------------------------------------------------------------------------------------------------------- $(OBJDIR)/%.cc.o: %.cc -@mkdir -p $(OBJDIR) @echo "Compiling $<" @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ -include $(OBJS:%.o=%.d) # ---------------------------------------------------------------------------------------------------------------------