2009-12-25 01:59:39 +01:00
|
|
|
# -*- mode: makefile; -*-
|
|
|
|
|
2012-03-04 05:13:59 +01:00
|
|
|
VERSION := 1.1.0
|
|
|
|
PACKAGE := MIXER
|
|
|
|
BIN_NAME := non-mixer
|
|
|
|
|
2009-12-25 01:59:39 +01:00
|
|
|
all: Mixer
|
|
|
|
|
2012-03-04 05:13:59 +01:00
|
|
|
SRCS := $(wildcard src/*.C src/*.fl src/Engine/*.C)
|
2009-12-25 01:59:39 +01:00
|
|
|
|
2012-03-04 05:13:59 +01:00
|
|
|
SRCS:=$(SRCS:.fl=.C)
|
|
|
|
SRCS:=$(sort $(SRCS))
|
|
|
|
OBJS:=$(SRCS:.C=.o)
|
2009-12-25 01:59:39 +01:00
|
|
|
|
2012-06-07 08:50:02 +02:00
|
|
|
LIBS += $(FLTK_LDFLAGS) $(JACK_LIBS) $(LRDF_LIBS) $(LIBLO_LIBS) $(XPM_LIBS)
|
2012-02-26 02:22:42 +01:00
|
|
|
|
2012-06-07 08:50:02 +02:00
|
|
|
CFLAGS += $(FLTK_CFLAGS) $(JACK_CFLAGS) $(LRDF_CFLAGS) $(LIBLO_CFLAGS) $(XPM_CFLAGS)
|
2009-12-25 01:59:39 +01:00
|
|
|
|
2012-03-07 05:01:37 +01:00
|
|
|
src/mixer: $(OBJS) FL/libfl_widgets.a nonlib/libnonlib.a $(FLTK_LIBS)
|
2009-12-25 01:59:39 +01:00
|
|
|
@ echo -n Linking mixer...
|
2012-04-24 18:44:56 +02:00
|
|
|
@ $(CXX) $(CXXFLAGS) $^ -o $@ $(LIBS) -LFL -lfl_widgets -Lnonlib -lnonlib -ldl && echo $(DONE)
|
2009-12-25 01:59:39 +01:00
|
|
|
|
2010-02-01 07:25:16 +01:00
|
|
|
Mixer: src/mixer
|
2009-12-25 01:59:39 +01:00
|
|
|
|
2012-03-04 05:13:59 +01:00
|
|
|
clean:
|
2012-03-06 04:06:13 +01:00
|
|
|
rm -f $(OBJS) src/mixer .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/mixer "$(DESTDIR)$(prefix)"/bin/non-mixer
|
2012-08-08 02:45:55 +02:00
|
|
|
@ ln -sf "$(DESTDIR)$(prefix)"/bin/non-mixer "$(DESTDIR)$(prefix)"/bin/non-mixer-noui
|
2012-03-31 02:24:22 +02:00
|
|
|
@ install -d "$(DESTDIR)$(SYSTEM_PATH)"/non-mixer
|
2012-03-04 05:13:59 +01:00
|
|
|
@ $(MAKE) -s -C doc install
|
|
|
|
@ install -d "$(DESTDIR)$(PIXMAP_PATH)/non-mixer"
|
2012-03-31 02:24:22 +02:00
|
|
|
@ install -Dm644 icons/hicolor/256x256/apps/non-mixer.png "$(DESTDIR)$(PIXMAP_PATH)"/non-mixer/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-mixer.desktop.in > "$(DESTDIR)$(DESKTOP_PATH)/non-mixer.desktop"
|
|
|
|
@ echo "$(DONE)"
|
|
|
|
ifneq ($(USE_DEBUG),yes)
|
|
|
|
@ echo -n "Stripping..."
|
2012-03-31 02:24:22 +02:00
|
|
|
@ strip "$(DESTDIR)$(prefix)"/bin/non-mixer
|
2012-03-04 05:13:59 +01:00
|
|
|
@ echo "$(DONE)"
|
|
|
|
endif
|