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.

52 lines
1.7KB

  1. #!/usr/bin/make -f
  2. # Makefile for jackbridge #
  3. # ------------------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../../Makefile.mk
  7. # --------------------------------------------------------------
  8. WINECC ?= winegcc
  9. BUILD_C_FLAGS += -DJACKBRIDGE_EXPORT -I.
  10. LINK_FLAGS += -shared
  11. WIN_BUILD_FLAGS = $(BUILD_C_FLAGS) -DJACKBRIDGE_DUMMY -w
  12. WIN_32BIT_FLAGS = $(32BIT_FLAGS)
  13. WIN_64BIT_FLAGS = $(64BIT_FLAGS)
  14. WIN_LINK_FLAGS = $(LINK_FLAGS)
  15. WINE_BUILD_FLAGS = $(BUILD_C_FLAGS) -fPIC
  16. WINE_32BIT_FLAGS = $(32BIT_FLAGS) -L/usr/lib32/wine -L/usr/lib/i386-linux-gnu/wine
  17. WINE_64BIT_FLAGS = $(64BIT_FLAGS) -L/usr/lib64/wine -L/usr/lib/x86_64-linux-gnu/wine
  18. WINE_LINK_FLAGS = $(LINK_FLAGS) $(shell pkg-config --libs jack) -ldl
  19. OBJS = jackbridge.c
  20. # --------------------------------------------------------------
  21. all:
  22. win32: ../jackbridge-win32.dll
  23. win64: ../jackbridge-win64.dll
  24. wine32: ../jackbridge-win32.dll.so
  25. wine64: ../jackbridge-win64.dll.so
  26. # --------------------------------------------------------------
  27. ../jackbridge-win32.dll: $(OBJS)
  28. $(CC) $^ $(WIN_BUILD_FLAGS) $(WIN_32BIT_FLAGS) $(WIN_LINK_FLAGS) -Wl,--output-def,$@.def,--out-implib,$@.a -o $@ && $(STRIP) $@
  29. ../jackbridge-win64.dll: $(OBJS)
  30. $(CC) $^ $(WIN_BUILD_FLAGS) $(WIN_64BIT_FLAGS) $(WIN_LINK_FLAGS) -Wl,--output-def,$@.def,--out-implib,$@.a -o $@ && $(STRIP) $@
  31. ../jackbridge-win32.dll.so: $(OBJS) ../jackbridge-win32.dll.def
  32. $(WINECC) $^ $(WINE_BUILD_FLAGS) $(WINE_32BIT_FLAGS) $(WINE_LINK_FLAGS) -mno-cygwin -o $@ && $(STRIP) $@
  33. ../jackbridge-win64.dll.so: $(OBJS) ../jackbridge-win64.dll.def
  34. $(WINECC) $^ $(WINE_BUILD_FLAGS) $(WINE_64BIT_FLAGS) $(WINE_LINK_FLAGS) -mno-cygwin -o $@ && $(STRIP) $@
  35. # --------------------------------------------------------------