2 # Makefile for zita-resampler #
3 # --------------------------- #
8 MODULENAME
=zita-resampler
11 # ---------------------------------------------------------------------------------------------------------------------
13 BUILD_CXX_FLAGS
+= -I.
15 # ---------------------------------------------------------------------------------------------------------------------
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 # ---------------------------------------------------------------------------------------------------------------------
30 rm -f
$(OBJDIR
)/*.o
$(MODULEDIR
)/$(MODULENAME
)*.a
35 # ---------------------------------------------------------------------------------------------------------------------
37 $(MODULEDIR
)/$(MODULENAME
).a
: $(OBJS
)
38 -@mkdir
-p
$(MODULEDIR
)
39 @echo
"Creating $(MODULENAME).a"
41 $(SILENT
)$(AR
) crs
$@
$^
43 # ---------------------------------------------------------------------------------------------------------------------
45 $(OBJDIR
)/%.
cc.o
: %.
cc
48 $(SILENT
)$(CXX
) $< $(BUILD_CXX_FLAGS
) -c
-o
$@
50 -include $(OBJS
:%.o
=%.d
)
52 # ---------------------------------------------------------------------------------------------------------------------