Collection of tools useful for audio production
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.

65 lines
1.6KB

  1. #!/usr/bin/make -f
  2. # Makefile for xycontroller #
  3. # ------------------------------------ #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_CXX_FLAGS += -I../widgets
  9. BUILD_CXX_FLAGS += $(shell pkg-config --cflags QtCore QtGui jack)
  10. LINK_FLAGS += $(shell pkg-config --libs QtCore QtGui jack)
  11. ifeq ($(HAVE_JACKSESSION),true)
  12. BUILD_CXX_FLAGS += -DHAVE_JACKSESSION
  13. endif
  14. FILES = \
  15. xycontroller.moc \
  16. ui_xycontroller.h \
  17. qrc_resources-xycontroller.cpp \
  18. ../widgets/moc_pixmapkeyboard.cpp
  19. OBJS = xycontroller.o \
  20. qrc_resources-xycontroller.o \
  21. ../widgets/pixmapdial.o \
  22. ../widgets/pixmapkeyboard.o \
  23. ../widgets/moc_pixmapkeyboard.o
  24. # --------------------------------------------------------------
  25. all: cadence-xycontroller
  26. cadence-xycontroller: $(FILES) $(OBJS)
  27. $(CXX) $(OBJS) $(LINK_FLAGS) -o $@ && $(STRIP) $@
  28. cadence-xycontroller.exe: $(FILES) $(OBJS) icon.o
  29. $(CXX) $(OBJS) icon.o -static -mwindows $(LINK_FLAGS) -o $@ && $(STRIP) $@
  30. # --------------------------------------------------------------
  31. xycontroller.moc: xycontroller.cpp
  32. $(MOC) $< -o $@
  33. ui_xycontroller.h: ../../resources/ui/xycontroller.ui
  34. $(UIC) $< -o $@
  35. qrc_resources-xycontroller.cpp: ../../resources/resources-xycontroller.qrc
  36. $(RCC) -name resources-xycontroller $< -o $@
  37. icon.o: ../../resources/ico/cadence.rc
  38. $(WINDRES) -i $< -o $@ -O coff
  39. ../widgets/moc_pixmapkeyboard.cpp: ../widgets/pixmapkeyboard.hpp
  40. $(MOC) $< -o $@
  41. # --------------------------------------------------------------
  42. .cpp.o:
  43. $(CXX) -c $< $(BUILD_CXX_FLAGS) -o $@
  44. clean:
  45. rm -f $(FILES) $(OBJS) icon.o cadence-xycontroller*