Audio plugin host https://kx.studio/carla
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.

Makefile 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #!/usr/bin/make -f
  2. # Makefile for audio_decoder #
  3. # -------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=../..
  7. MODULENAME=audio_decoder
  8. include ../Makefile.mk
  9. # ---------------------------------------------------------------------------------------------------------------------
  10. BUILD_C_FLAGS += -Werror=deprecated-declarations
  11. # ---------------------------------------------------------------------------------------------------------------------
  12. OBJS = \
  13. $(OBJDIR)/ad_dr_mp3.c.o \
  14. $(OBJDIR)/ad_ffmpeg.c.o \
  15. $(OBJDIR)/ad_minimp3.c.o \
  16. $(OBJDIR)/ad_plugin.c.o \
  17. $(OBJDIR)/ad_soundfile.c.o
  18. # ---------------------------------------------------------------------------------------------------------------------
  19. all: $(MODULEDIR)/$(MODULENAME).a
  20. # ---------------------------------------------------------------------------------------------------------------------
  21. clean:
  22. rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a
  23. debug:
  24. $(MAKE) DEBUG=true
  25. # ---------------------------------------------------------------------------------------------------------------------
  26. $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
  27. -@mkdir -p $(MODULEDIR)
  28. @echo "Creating $(MODULENAME).a"
  29. $(SILENT)rm -f $@
  30. $(SILENT)$(AR) crs $@ $^
  31. # ---------------------------------------------------------------------------------------------------------------------
  32. $(OBJDIR)/ad_ffmpeg.c.o: ad_ffmpeg.c
  33. -@mkdir -p $(OBJDIR)
  34. @echo "Compiling $<"
  35. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) $(FFMPEG_FLAGS) -c -o $@
  36. $(OBJDIR)/ad_soundfile.c.o: ad_soundfile.c
  37. -@mkdir -p $(OBJDIR)
  38. @echo "Compiling $<"
  39. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) $(SNDFILE_FLAGS) -c -o $@
  40. $(OBJDIR)/ad_%.c.o: ad_%.c
  41. -@mkdir -p $(OBJDIR)
  42. @echo "Compiling $<"
  43. $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -c -o $@
  44. -include $(OBJS:%.o=%.d)
  45. # ---------------------------------------------------------------------------------------------------------------------