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 2.1KB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #!/usr/bin/make -f
  2. # Makefile for audio_decoder #
  3. # -------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_C_FLAGS += $(AUDIO_DECODER_FLAGS) -I..
  9. LINK_FLAGS += $(AUDIO_DECODER_LIBS)
  10. OBJS = ad_ffmpeg.c.o ad_plugin.c.o ad_soundfile.c.o
  11. OBJS_posix32 = ad_ffmpeg.c.posix32.o ad_plugin.c.posix32.o ad_soundfile.c.posix32.o
  12. OBJS_posix64 = ad_ffmpeg.c.posix64.o ad_plugin.c.posix64.o ad_soundfile.c.posix64.o
  13. OBJS_win32 = ad_ffmpeg.c.win32.o ad_plugin.c.win32.o ad_soundfile.c.win32.o
  14. OBJS_win64 = ad_ffmpeg.c.win64.o ad_plugin.c.win64.o ad_soundfile.c.win64.o
  15. # --------------------------------------------------------------
  16. all: ../audio_decoder.a
  17. posix32: ../audio_decoder.posix32.a
  18. posix64: ../audio_decoder.posix64.a
  19. win32: ../audio_decoder.win32.a
  20. win64: ../audio_decoder.win64.a
  21. # --------------------------------------------------------------
  22. ../audio_decoder.a: $(OBJS)
  23. $(RM) $@
  24. $(AR) crs $@ $^
  25. ../audio_decoder.posix32.a: $(OBJS_posix32)
  26. $(RM) $@
  27. $(AR) crs $@ $^
  28. ../audio_decoder.posix64.a: $(OBJS_posix64)
  29. $(RM) $@
  30. $(AR) crs $@ $^
  31. ../audio_decoder.win32.a: $(OBJS_win32)
  32. $(RM) $@
  33. $(AR) crs $@ $^
  34. ../audio_decoder.win64.a: $(OBJS_win64)
  35. $(RM) $@
  36. $(AR) crs $@ $^
  37. ../libaudio_decoder.dll: $(OBJS)
  38. $(CC) $^ -shared $(LINK_FLAGS) -o $@
  39. ../libaudio_decoder.dylib: $(OBJS)
  40. $(CC) $^ -dynamiclib $(LINK_FLAGS) -o $@
  41. ../libaudio_decoder.so: $(OBJS)
  42. $(CC) $^ -shared $(LINK_FLAGS) -o $@
  43. # --------------------------------------------------------------
  44. %.c.o: %.c
  45. $(CC) $< $(BUILD_C_FLAGS) -c -o $@
  46. %.c.posix32.o: %.c
  47. $(CC) $< $(BUILD_C_FLAGS) $(32BIT_FLAGS) -c -o $@
  48. %.c.posix64.o: %.c
  49. $(CC) $< $(BUILD_C_FLAGS) $(64BIT_FLAGS) -c -o $@
  50. %.c.win32.o: %.c
  51. $(CC) $< $(BUILD_C_FLAGS) $(32BIT_FLAGS) -c -o $@
  52. %.c.win64.o: %.c
  53. $(CC) $< $(BUILD_C_FLAGS) $(64BIT_FLAGS) -c -o $@
  54. # --------------------------------------------------------------
  55. clean:
  56. $(RM) *.o ../audio_decoder*.a ../libaudio_decoder.*
  57. debug:
  58. $(MAKE) DEBUG=true
  59. # --------------------------------------------------------------