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.

62 lines
1.8KB

  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 +=
  11. # ---------------------------------------------------------------------------------------------------------------------
  12. OBJS = \
  13. $(OBJDIR)/ad_ffmpeg.c.o \
  14. $(OBJDIR)/ad_plugin.c.o \
  15. $(OBJDIR)/ad_soundfile.c.o
  16. # ---------------------------------------------------------------------------------------------------------------------
  17. all: $(MODULEDIR)/$(MODULENAME).a
  18. # ---------------------------------------------------------------------------------------------------------------------
  19. clean:
  20. rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a
  21. debug:
  22. $(MAKE) DEBUG=true
  23. # ---------------------------------------------------------------------------------------------------------------------
  24. $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
  25. -@mkdir -p $(MODULEDIR)
  26. @echo "Creating $(MODULENAME).a"
  27. @rm -f $@
  28. @$(AR) crs $@ $^
  29. # ---------------------------------------------------------------------------------------------------------------------
  30. $(OBJDIR)/ad_ffmpeg.c.o: ad_ffmpeg.c
  31. -@mkdir -p $(OBJDIR)
  32. @echo "Compiling $<"
  33. @$(CC) $< $(BUILD_C_FLAGS) $(FFMPEG_FLAGS) -c -o $@
  34. $(OBJDIR)/ad_plugin.c.o: ad_plugin.c
  35. -@mkdir -p $(OBJDIR)
  36. @echo "Compiling $<"
  37. @$(CC) $< $(BUILD_C_FLAGS) -c -o $@
  38. $(OBJDIR)/ad_soundfile.c.o: ad_soundfile.c
  39. -@mkdir -p $(OBJDIR)
  40. @echo "Compiling $<"
  41. @$(CC) $< $(BUILD_C_FLAGS) $(SNDFILE_FLAGS) -c -o $@
  42. -include $(OBJS:%.o=%.d)
  43. # ---------------------------------------------------------------------------------------------------------------------