2010-01-21 01:33:02 +01:00
|
|
|
# -*- mode: makefile; -*-
|
|
|
|
|
2012-03-04 05:13:59 +01:00
|
|
|
VERSION := 1.0.0
|
|
|
|
PACKAGE := SESSION_MANAGER
|
|
|
|
BIN_NAME := non-session-manager
|
|
|
|
|
2010-01-21 01:33:02 +01:00
|
|
|
all: Session
|
|
|
|
|
2012-03-04 05:13:59 +01:00
|
|
|
SRCS := $(wildcard src/*.C src/*.fl)
|
|
|
|
# SRCS += util/debug.C util/Thread.C util/file.C
|
2010-01-21 01:33:02 +01:00
|
|
|
|
2012-03-04 05:13:59 +01:00
|
|
|
SRCS:=$(SRCS:.fl=.C)
|
|
|
|
SRCS:=$(sort $(SRCS))
|
|
|
|
OBJS:=$(SRCS:.C=.o)
|
2010-01-21 01:33:02 +01:00
|
|
|
|
2012-03-06 04:06:13 +01:00
|
|
|
LIBS += $(LIBLO_LIBS) $(SIGCPP_LIBS)
|
|
|
|
CFLAGS += $(LIBLO_CFLAGS) $(SIGCPP_CFLAGS) $(XPM_CFLAGS) $(FLTK_CFLAGS)
|
2010-01-21 01:33:02 +01:00
|
|
|
|
|
|
|
src/nsmd: src/nsmd.o nonlib/libnonlib.a
|
|
|
|
@ echo -n Linking session handler.
|
2012-03-06 04:06:13 +01:00
|
|
|
@ $(CXX) $(CXXFLAGS) $(LIBS) $^ -o $@ -Lnonlib -lnonlib && echo $(DONE)
|
2010-01-21 01:33:02 +01:00
|
|
|
|
2012-03-07 05:01:37 +01:00
|
|
|
src/session-manager: src/session-manager.o nonlib/libnonlib.a $(FLTK_LIBS)
|
2010-01-21 01:33:02 +01:00
|
|
|
@ echo -n Linking session handler.
|
2012-03-07 05:01:37 +01:00
|
|
|
@ $(CXX) $(CXXFLAGS) $(FLTK_LDFLAGS) $(XPM_LIBS) $(LIBS) $^ -o $@ -LFL -lfl_widgets -Lnonlib -lnonlib && echo $(DONE)
|
2010-01-21 01:33:02 +01:00
|
|
|
|
|
|
|
src/send_osc: src/send_osc.o nonlib/libnonlib.a
|
2012-03-06 04:06:13 +01:00
|
|
|
@ $(CXX) $(CXXFLAGS) $(LIBS) $^ -o $@ -Lnonlib -lnonlib && echo $(DONE)
|
2010-01-21 01:33:02 +01:00
|
|
|
|
2012-02-29 08:02:10 +01:00
|
|
|
src/jackpatch: src/jackpatch.o
|
2012-03-06 04:06:13 +01:00
|
|
|
@ $(CXX) $(CXXFLAGS) $(JACK_LIBS) $(LIBLO_LIBS) $^ -o $@ && echo $(DONE)
|
2012-02-29 08:02:10 +01:00
|
|
|
|
|
|
|
Session: src/send_osc src/nsmd src/session-manager src/jackpatch
|
2010-01-21 01:33:02 +01:00
|
|
|
|
2012-03-04 05:13:59 +01:00
|
|
|
clean:
|
2012-03-06 04:06:13 +01:00
|
|
|
rm -f $(OBJS) src/nsmd src/session-manager src/jackpatch .deps
|
2012-03-04 05:13:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install: all
|
|
|
|
@ echo -n "Installing..."
|
|
|
|
@ install src/nsmd "$(DESTDIR)$(prefix)"/bin/nsmd
|
|
|
|
@ install src/session-manager "$(DESTDIR)$(prefix)"/bin/non-session-manager
|
|
|
|
@ install src/jackpatch "$(DESTDIR)$(prefix)"/bin/jackpatch
|
|
|
|
@ mkdir -p "$(DESTDIR)$(SYSTEM_PATH)"/non-session-manager
|
|
|
|
@ $(MAKE) -s -C doc install
|
|
|
|
@ install -d "$(DESTDIR)$(PIXMAP_PATH)/non-session-manager"
|
|
|
|
@ install -m 644 icons/hicolor/256x256/apps/non-session-manager.png "$(DESTDIR)$(PIXMAP_PATH)"/non-session-manager/icon-256x256.png
|
|
|
|
@ 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-session-manager.desktop.in > "$(DESTDIR)$(DESKTOP_PATH)/non-session-manager.desktop"
|
|
|
|
@ echo "$(DONE)"
|
|
|
|
ifneq ($(USE_DEBUG),yes)
|
|
|
|
@ echo -n "Stripping..."
|
|
|
|
@ strip "$(DESTDIR)$(prefix)"/bin/jackpatch
|
|
|
|
@ strip "$(DESTDIR)$(prefix)"/bin/nsmd
|
|
|
|
@ strip "$(DESTDIR)$(prefix)"/bin/non-session-manager
|
|
|
|
@ echo "$(DONE)"
|
|
|
|
endif
|