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

9 years ago
9 years ago
9 years ago
9 years ago
11 years ago
11 years ago
11 years ago
9 years ago
11 years ago
9 years ago
11 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
11 years ago
9 years ago
9 years ago
9 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #!/usr/bin/make -f
  2. # Makefile for carla-widgets #
  3. # -------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=..
  7. include $(CWD)/Makefile.mk
  8. # ---------------------------------------------------------------------------------------------------------------------
  9. BINDIR := $(CWD)/../bin
  10. ifeq ($(DEBUG),true)
  11. OBJDIR := $(CWD)/../build/widgets/Debug
  12. MODULEDIR := $(CWD)/../build/modules/Debug
  13. else
  14. OBJDIR := $(CWD)/../build/widgets/Release
  15. MODULEDIR := $(CWD)/../build/modules/Release
  16. endif
  17. # ---------------------------------------------------------------------------------------------------------------------
  18. BUILD_CXX_FLAGS += -I. -I$(CWD)/includes -I$(CWD)/modules -I$(CWD)/utils
  19. ifeq ($(HAVE_QT4),true)
  20. BUILD_CXX_FLAGS += $(shell pkg-config --cflags QtCore QtGui)
  21. LINK_FLAGS += $(shell pkg-config --libs QtCore QtGui)
  22. else
  23. BUILD_CXX_FLAGS += $(shell pkg-config --cflags Qt5Core Qt5Gui Qt5Widgets)
  24. LINK_FLAGS += $(shell pkg-config --libs Qt5Core Qt5Gui Qt5Widgets)
  25. endif
  26. # ---------------------------------------------------------------------------------------------------------------------
  27. # FILES = \
  28. # moc_paramspinbox.cpp \
  29. # moc_pixmapkeyboard.cpp
  30. OBJS = \
  31. $(OBJDIR)/digitalpeakmeter.cpp.o
  32. # ledbutton.cpp.o \
  33. # paramspinbox.cpp.o \
  34. # pixmapdial.cpp.o \
  35. # pixmapkeyboard.cpp.o
  36. # OBJS += \
  37. # moc_paramspinbox.cpp.o \
  38. # moc_pixmapkeyboard.cpp.o
  39. TARGET = $(MODULEDIR)/widgets.a
  40. # ---------------------------------------------------------------------------------------------------------------------
  41. all: $(TARGET)
  42. # ---------------------------------------------------------------------------------------------------------------------
  43. clean:
  44. rm -f $(OBJDIR)/*.o $(TARGET)
  45. debug:
  46. $(MAKE) DEBUG=true
  47. # ---------------------------------------------------------------------------------------------------------------------
  48. $(MODULEDIR)/widgets.a: $(FILES) $(OBJS)
  49. $(RM) $@
  50. $(AR) crs $@ $(OBJS)
  51. # ---------------------------------------------------------------------------------------------------------------------
  52. $(OBJDIR)/%.cpp.o: %.cpp
  53. -@mkdir -p $(OBJDIR)
  54. @echo "Compiling $<"
  55. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  56. -include $(OBJS:%.o=%.d)
  57. # moc_%.cpp.o: %.cpp
  58. # $(CXX) moc_$< $(BUILD_CXX_FLAGS) -c -o $@
  59. #
  60. # moc_%.cpp: %.hpp
  61. # $(MOC) $< -o $@
  62. # ---------------------------------------------------------------------------------------------------------------------