Assists music production by grouping standalone programs into sessions. Community version of "Non Session Manager".
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.

58 lines
1.6KB

  1. # -*- mode: makefile; -*-
  2. VERSION := 1.1.0
  3. PACKAGE := TIMELINE
  4. BIN_NAME := non-daw
  5. all: Timeline
  6. SRCS := $(wildcard src/*.C src/*.fl src/Engine/*.C)
  7. SRCS:=$(SRCS:.fl=.C)
  8. SRCS:=$(sort $(SRCS))
  9. OBJS:=$(SRCS:.C=.o)
  10. LIBS += $(FLTK_LDFLAGS) $(JACK_LIBS) $(SNDFILE_LIBS) $(LIBLO_LIBS) $(SIGCPP_LIBS) $(XPM_LIBS)
  11. CFLAGS += $(SNDFILE_CFLAGS) $(FLTK_CFLAGS) $(JACK_CFLAGS) $(SIGCPP_CFLAGS) $(XPM_CFLAGS)
  12. ifeq ($(USE_UNOPTIMIZED_DRAWING),yes)
  13. CFLAGS+=-DUSE_UNOPTIMIZED_DRAWING
  14. endif
  15. ifeq ($(USE_SINGLEBUFFERED_TIMELINE),yes)
  16. CFLAGS+=-DUSE_SINGLEBUFFERED_TIMELINE
  17. endif
  18. ifeq ($(USE_WIDGET_FOR_TIMELINE),yes)
  19. CFLAGS+=-DUSE_WIDGET_FOR_TIMELINE
  20. endif
  21. src/timeline: $(OBJS) FL/libfl_widgets.a nonlib/libnonlib.a $(FLTK_LIBS)
  22. @ echo -n Linking timeline...
  23. @ $(CXX) $(CXXFLAGS) $(INCLUDES) $(LIBS) $^ -o $@ -LFL -lfl_widgets -Lnonlib -lnonlib && echo $(DONE)
  24. Timeline: src/timeline
  25. clean:
  26. rm -f $(OBJS) src/timeline .deps
  27. install: all
  28. @ echo -n "Installing..."
  29. @ install -Dm755 src/timeline "$(DESTDIR)$(prefix)"/bin/non-daw
  30. @ install -d "$(DESTDIR)$(SYSTEM_PATH)"/non-daw
  31. @ $(MAKE) -s -C doc install
  32. @ install -d "$(DESTDIR)$(PIXMAP_PATH)/non-daw"
  33. @ install -Dm644 icons/hicolor/256x256/apps/non-daw.png "$(DESTDIR)$(PIXMAP_PATH)"/non-daw/icon-256x256.png
  34. @ install -d "$(DESTDIR)$(ICON_PATH)/hicolor"
  35. @ cp -au icons/hicolor/ "$(DESTDIR)$(ICON_PATH)"
  36. @ install -d "$(DESTDIR)$(DESKTOP_PATH)"
  37. @ sed 's:@BIN_PATH@:$(prefix)/bin:' non-daw.desktop.in > "$(DESTDIR)$(DESKTOP_PATH)/non-daw.desktop"
  38. @ echo "$(DONE)"
  39. ifneq ($(USE_DEBUG),yes)
  40. @ echo -n "Stripping..."
  41. @ strip "$(DESTDIR)$(prefix)"/bin/non-daw
  42. @ echo "$(DONE)"
  43. endif