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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #!/usr/bin/make -f
  2. # Makefile for theme #
  3. # ------------------ #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_CXX_FLAGS += -fvisibility=hidden -I.
  9. ifeq ($(HAVE_QT5),true)
  10. BUILD_CXX_FLAGS += $(shell pkg-config --cflags Qt5Core Qt5Gui Qt5Widgets)
  11. LINK_FLAGS += $(shell pkg-config --libs Qt5Core Qt5Gui Qt5Widgets)
  12. else
  13. BUILD_CXX_FLAGS += $(shell pkg-config --cflags QtCore QtGui)
  14. LINK_FLAGS += $(shell pkg-config --libs QtCore QtGui)
  15. endif
  16. FILES = \
  17. moc_CarlaStyle.cpp \
  18. moc_CarlaStylePrivate.cpp \
  19. moc_CarlaStyleAnimations.cpp \
  20. resources.cpp
  21. OBJS = \
  22. moc_CarlaStyle.cpp.o \
  23. moc_CarlaStyleAnimations.cpp.o \
  24. moc_CarlaStylePrivate.cpp.o
  25. OBJS_shared = $(OBJS) \
  26. CarlaStyle.export.cpp.o
  27. OBJS_static = $(OBJS) \
  28. CarlaStyle.cpp.o
  29. SHARED = carlastyle.so
  30. STATIC = ../libs/theme.a
  31. # --------------------------------------------------------------
  32. all: $(STATIC)
  33. clean:
  34. rm -f $(FILES) $(OBJS_shared) $(OBJS_static) $(SHARED) $(STATIC)
  35. debug:
  36. $(MAKE) DEBUG=true
  37. install: $(SHARED)
  38. # FIXME - find a way to get a proper install path
  39. install -m 644 $(SHARED) /usr/lib/x86_64-linux-gnu/qt4/plugins/styles/
  40. # --------------------------------------------------------------
  41. $(SHARED): $(FILES) $(OBJS_shared)
  42. $(CXX) $(OBJS_shared) $(LINK_FLAGS) -shared -o $@ && $(STRIP) $@
  43. $(STATIC): $(FILES) $(OBJS_static)
  44. $(AR) rs $@ $(OBJS_static)
  45. # --------------------------------------------------------------
  46. %.cpp.o: %.cpp CarlaStyle.hpp moc_CarlaStyle.cpp
  47. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  48. %.export.cpp.o: %.cpp CarlaStyle.hpp moc_CarlaStyle.cpp
  49. $(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_EXPORT_STYLE -c -o $@
  50. moc_%.cpp: %.hpp
  51. $(MOC) $< -o $@
  52. resources.cpp: ../../resources/resources-theme.qrc
  53. $(RCC) $< -o $@