2008-05-05 02:56:07 +02:00
|
|
|
# -*- mode: makefile; -*-
|
2008-05-01 10:05:10 +02:00
|
|
|
|
2012-03-04 05:13:59 +01:00
|
|
|
VERSION := 1.1.0
|
|
|
|
PACKAGE := TIMELINE
|
|
|
|
BIN_NAME := non-daw
|
|
|
|
|
2009-12-25 01:57:34 +01:00
|
|
|
all: Timeline
|
|
|
|
|
2012-03-04 05:13:59 +01:00
|
|
|
SRCS := $(wildcard src/*.C src/*.fl src/Engine/*.C)
|
|
|
|
|
|
|
|
SRCS:=$(SRCS:.fl=.C)
|
|
|
|
SRCS:=$(sort $(SRCS))
|
|
|
|
OBJS:=$(SRCS:.C=.o)
|
|
|
|
|
2012-03-07 05:01:37 +01:00
|
|
|
LIBS += $(FLTK_LDFLAGS) $(JACK_LIBS) $(SNDFILE_LIBS) $(LIBLO_LIBS) $(SIGCPP_LIBS) $(XPM_LIBS)
|
2008-05-03 06:44:48 +02:00
|
|
|
|
2012-03-06 04:06:13 +01:00
|
|
|
CFLAGS += $(SNDFILE_CFLAGS) $(FLTK_CFLAGS) $(JACK_CFLAGS) $(SIGCPP_CFLAGS) $(XPM_CFLAGS)
|
2008-05-01 10:05:10 +02:00
|
|
|
|
2012-03-04 05:13:59 +01:00
|
|
|
ifeq ($(USE_UNOPTIMIZED_DRAWING),yes)
|
|
|
|
CFLAGS+=-DUSE_UNOPTIMIZED_DRAWING
|
|
|
|
endif
|
2008-05-01 10:05:10 +02:00
|
|
|
|
2012-03-04 05:13:59 +01:00
|
|
|
ifeq ($(USE_SINGLEBUFFERED_TIMELINE),yes)
|
|
|
|
CFLAGS+=-DUSE_SINGLEBUFFERED_TIMELINE
|
|
|
|
endif
|
2012-02-26 02:22:42 +01:00
|
|
|
|
2012-03-04 05:13:59 +01:00
|
|
|
ifeq ($(USE_WIDGET_FOR_TIMELINE),yes)
|
|
|
|
CFLAGS+=-DUSE_WIDGET_FOR_TIMELINE
|
|
|
|
endif
|
2008-05-01 10:05:10 +02:00
|
|
|
|
2012-03-06 04:06:13 +01:00
|
|
|
|
2012-03-07 05:01:37 +01:00
|
|
|
src/timeline: $(OBJS) FL/libfl_widgets.a nonlib/libnonlib.a $(FLTK_LIBS)
|
2008-05-16 22:52:10 +02:00
|
|
|
@ echo -n Linking timeline...
|
2012-04-24 18:44:56 +02:00
|
|
|
$(CXX) $(CXXFLAGS) $(INCLUDES) $^ -o $@ $(LIBS) -LFL -lfl_widgets -Lnonlib -lnonlib && echo $(DONE)
|
2008-05-01 10:05:10 +02:00
|
|
|
|
2010-02-01 07:25:16 +01:00
|
|
|
Timeline: src/timeline
|
2008-05-01 10:05:10 +02:00
|
|
|
|
2012-03-04 05:13:59 +01:00
|
|
|
clean:
|
2012-03-06 04:06:13 +01:00
|
|
|
rm -f $(OBJS) src/timeline .deps
|
2012-03-04 05:13:59 +01:00
|
|
|
|
|
|
|
install: all
|
|
|
|
@ echo -n "Installing..."
|
2012-03-31 02:24:22 +02:00
|
|
|
@ install -Dm755 src/timeline "$(DESTDIR)$(prefix)"/bin/non-daw
|
|
|
|
@ install -d "$(DESTDIR)$(SYSTEM_PATH)"/non-daw
|
2012-03-04 05:13:59 +01:00
|
|
|
@ $(MAKE) -s -C doc install
|
|
|
|
@ install -d "$(DESTDIR)$(PIXMAP_PATH)/non-daw"
|
2012-03-31 02:24:22 +02:00
|
|
|
@ install -Dm644 icons/hicolor/256x256/apps/non-daw.png "$(DESTDIR)$(PIXMAP_PATH)"/non-daw/icon-256x256.png
|
2012-03-04 05:13:59 +01:00
|
|
|
@ install -d "$(DESTDIR)$(ICON_PATH)/hicolor"
|
|
|
|
@ cp -au icons/hicolor/ "$(DESTDIR)$(ICON_PATH)"
|
|
|
|
@ install -d "$(DESTDIR)$(DESKTOP_PATH)"
|
|
|
|
@ sed 's:@BIN_PATH@:$(prefix)/bin:' non-daw.desktop.in > "$(DESTDIR)$(DESKTOP_PATH)/non-daw.desktop"
|
|
|
|
@ echo "$(DONE)"
|
|
|
|
ifneq ($(USE_DEBUG),yes)
|
|
|
|
@ echo -n "Stripping..."
|
2012-03-31 02:24:22 +02:00
|
|
|
@ strip "$(DESTDIR)$(prefix)"/bin/non-daw
|
2012-03-04 05:13:59 +01:00
|
|
|
@ echo "$(DONE)"
|
|
|
|
endif
|