You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.5KB

  1. #!/usr/bin/make -f
  2. # Makefile for static aubio #
  3. # ------------------------- #
  4. # Created by falkTX
  5. #
  6. # --------------------------------------------------------------
  7. # Import base definitions
  8. USE_NANOVG_FBO = true
  9. include ../../dpf/Makefile.base.mk
  10. # --------------------------------------------------------------
  11. BUILD_C_FLAGS += -DHAVE_CONFIG_H
  12. BUILD_C_FLAGS += -I.
  13. BUILD_C_FLAGS += -Isrc
  14. BUILD_C_FLAGS += $(shell pkg-config --cflags fftw3f)
  15. ifeq ($(CIBUILD),true)
  16. BUILD_C_FLAGS += -DSKIP_FFTW_MUTEX
  17. endif
  18. OBJS = \
  19. src/cvec.c.o \
  20. src/fvec.c.o \
  21. src/lvec.c.o \
  22. src/mathutils.c.o \
  23. src/pitch/pitch.c.o \
  24. src/pitch/pitchfcomb.c.o \
  25. src/pitch/pitchmcomb.c.o \
  26. src/pitch/pitchschmitt.c.o \
  27. src/pitch/pitchspecacf.c.o \
  28. src/pitch/pitchyin.c.o \
  29. src/pitch/pitchyinfast.c.o \
  30. src/pitch/pitchyinfft.c.o \
  31. src/spectral/fft.c.o \
  32. src/spectral/phasevoc.c.o \
  33. src/temporal/a_weighting.c.o \
  34. src/temporal/biquad.c.o \
  35. src/temporal/c_weighting.c.o \
  36. src/temporal/filter.c.o \
  37. src/temporal/resampler.c.o \
  38. src/utils/log.c.o \
  39. # --------------------------------------------------------------
  40. all: libaubio.a
  41. clean:
  42. rm -f *.a src/*.d src/*.o src/*/*.d src/*/*.o
  43. libaubio.a: $(OBJS)
  44. rm -f $@
  45. $(AR) crs $@ $^
  46. # --------------------------------------------------------------
  47. %.c.o: %.c
  48. $(CC) $< $(BUILD_C_FLAGS) -c -o $@
  49. # --------------------------------------------------------------
  50. -include $(OBJS:%.o=%.d)
  51. # --------------------------------------------------------------