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.2KB

12 years ago
12 years ago
12 years ago
11 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
11 years ago
12 years ago
11 years ago
12 years ago
12 years ago
12 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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=1 -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 = JackBridge1.cpp JackBridge2.cpp
  25. OBJSw32 = JackBridge1.w32.o JackBridge2.w32.o
  26. OBJSw64 = JackBridge1.w64.o JackBridge2.w64.o
  27. # --------------------------------------------------------------
  28. all:
  29. win32: ../jackbridge-win32.dll
  30. win64: ../jackbridge-win64.dll
  31. wine32: ../jackbridge-win32.dll.so
  32. wine64: ../jackbridge-win64.dll.so
  33. # --------------------------------------------------------------
  34. JackBridge%.w32.o: JackBridge%.cpp
  35. $(CXX) $^ $(WINE_BUILD_FLAGS) $(WINE_32BIT_FLAGS) -c -o $@
  36. JackBridge%.w64.o: JackBridge%.cpp
  37. $(CXX) $^ $(WINE_BUILD_FLAGS) $(WINE_64BIT_FLAGS) -c -o $@
  38. # --------------------------------------------------------------
  39. ../jackbridge-win32.dll: $(OBJS)
  40. $(CXX) $^ $(WIN_BUILD_FLAGS) $(WIN_32BIT_FLAGS) $(WIN_LINK_FLAGS) -Wl,--output-def,$@.def,--out-implib,$@.a -o $@ $(CMD_STRIP) $@
  41. ../jackbridge-win64.dll: $(OBJS)
  42. $(CXX) $^ $(WIN_BUILD_FLAGS) $(WIN_64BIT_FLAGS) $(WIN_LINK_FLAGS) -Wl,--output-def,$@.def,--out-implib,$@.a -o $@ $(CMD_STRIP) $@
  43. ../jackbridge-win32.dll.so: $(OBJSw32) ../jackbridge-win32.dll.def
  44. $(WINECXX) $^ $(WINE_32BIT_FLAGS) $(WINE_LINK_FLAGS) -o $@ $(CMD_STRIP) $@
  45. ../jackbridge-win64.dll.so: $(OBJS) ../jackbridge-win64.dll.def
  46. $(WINECXX) $^ $(WINE_64BIT_FLAGS) $(WINE_LINK_FLAGS) -o $@ $(CMD_STRIP) $@
  47. # --------------------------------------------------------------
  48. clean:
  49. rm -f *.o ../jackbridge-*.*