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.

61 lines
1.9KB

  1. #!/usr/bin/make -f
  2. # Makefile for jackbridge #
  3. # ------------------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../../Makefile.mk
  7. # --------------------------------------------------------------
  8. WINECXX ?= wineg++
  9. BUILD_CXX_FLAGS += -DJACKBRIDGE_EXPORT
  10. BUILD_CXX_FLAGS += -I. -I../../includes -I../../utils
  11. ifeq ($(MACOS),true)
  12. LINK_FLAGS += -dynamiclib
  13. else
  14. LINK_FLAGS += -shared
  15. endif
  16. WIN_BUILD_FLAGS = $(BUILD_CXX_FLAGS) -DJACKBRIDGE_DUMMY -w
  17. WIN_32BIT_FLAGS = $(32BIT_FLAGS)
  18. WIN_64BIT_FLAGS = $(64BIT_FLAGS)
  19. WIN_LINK_FLAGS = $(LINK_FLAGS)
  20. WINE_BUILD_FLAGS = $(BUILD_CXX_FLAGS) -fPIC
  21. WINE_32BIT_FLAGS = $(32BIT_FLAGS) -L/usr/lib32/wine -L/usr/lib/i386-linux-gnu/wine
  22. WINE_64BIT_FLAGS = $(64BIT_FLAGS) -L/usr/lib64/wine -L/usr/lib/x86_64-linux-gnu/wine
  23. WINE_LINK_FLAGS = $(LINK_FLAGS) -ldl -lrt -lpthread
  24. OBJS = JackBridge.cpp
  25. # --------------------------------------------------------------
  26. all: test
  27. win32: ../jackbridge-win32.dll
  28. win64: ../jackbridge-win64.dll
  29. wine32: ../jackbridge-win32.dll.so
  30. wine64: ../jackbridge-win64.dll.so
  31. # --------------------------------------------------------------
  32. test: $(OBJS)
  33. $(CXX) $^ $(WINE_BUILD_FLAGS) $(WINE_LINK_FLAGS) -o $@
  34. ../jackbridge-win32.dll: $(OBJS)
  35. $(CXX) $^ $(WIN_BUILD_FLAGS) $(WIN_32BIT_FLAGS) $(WIN_LINK_FLAGS) -Wl,--output-def,$@.def,--out-implib,$@.a -o $@ && $(STRIP) $@
  36. ../jackbridge-win64.dll: $(OBJS)
  37. $(CXX) $^ $(WIN_BUILD_FLAGS) $(WIN_64BIT_FLAGS) $(WIN_LINK_FLAGS) -Wl,--output-def,$@.def,--out-implib,$@.a -o $@ && $(STRIP) $@
  38. ../jackbridge-win32.dll.so: $(OBJS) ../jackbridge-win32.dll.def
  39. $(WINECXX) $^ $(WINE_BUILD_FLAGS) $(WINE_32BIT_FLAGS) $(WINE_LINK_FLAGS) -mno-cygwin -o $@ && $(STRIP) $@
  40. ../jackbridge-win64.dll.so: $(OBJS) ../jackbridge-win64.dll.def
  41. $(WINECXX) $^ $(WINE_BUILD_FLAGS) $(WINE_64BIT_FLAGS) $(WINE_LINK_FLAGS) -mno-cygwin -o $@ && $(STRIP) $@
  42. # --------------------------------------------------------------