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-06-17 04:46:29 +02:00
|
|
|
LIBS += $(LIBLO_LIBS)
|
|
|
|
CFLAGS += $(LIBLO_CFLAGS) $(XPM_CFLAGS) $(FLTK_CFLAGS) -D_GNU_SOURCE
|
2010-01-21 01:33:02 +01:00
|
|
|
|
|
|
|
src/nsmd: src/nsmd.o nonlib/libnonlib.a
|
|
|
|
@ echo -n Linking session handler.
|
2012-04-24 18:44:56 +02:00
|
|
|
@ $(CXX) $(CXXFLAGS) $^ -o $@ $(LIBS) -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-04-24 18:44:56 +02:00
|
|
|
@ $(CXX) $(CXXFLAGS) $^ -o $@ $(FLTK_LDFLAGS) $(XPM_LIBS) $(LIBS) -LFL -lfl_widgets -Lnonlib -lnonlib && echo $(DONE)
|
2010-01-21 01:33:02 +01:00
|
|
|
|
2012-04-09 05:49:07 +02:00
|
|
|
src/nsm-proxy: src/nsm-proxy.o nonlib/libnonlib.a
|
|
|
|
@ echo -n Linking NSM Proxy.
|
2012-06-17 04:46:29 +02:00
|
|
|
@ $(CXX) $(CXXFLAGS) $^ -o $@ $(LIBLO_LIBS) -Lnonlib -lnonlib && echo $(DONE)
|
2012-04-09 05:49:07 +02:00
|
|
|
|
|
|
|
# src/NSM_Proxy_UI.o:
|
|
|
|
# @ cd src && $(FLUID) -c NSM_Proxy_UI.fl
|
|
|
|
|
2012-06-17 04:46:29 +02:00
|
|
|
src/nsm-proxy-gui: src/NSM_Proxy_UI.o src/nsm-proxy-gui.o $(FLTK_LIBS)
|
|
|
|
@ echo -n Linking NSM Proxy...
|
2012-09-08 03:34:32 +02:00
|
|
|
@ $(CXX) $(CXXFLAGS) $^ -o $@ $(FLTK_LDFLAGS) $(XPM_LIBS) $(LIBLO_LIBS) $(FLTK_LIBS) -LFL -lfl_widgets && echo $(DONE)
|
2012-04-09 05:49:07 +02:00
|
|
|
|
2010-01-21 01:33:02 +01:00
|
|
|
src/send_osc: src/send_osc.o nonlib/libnonlib.a
|
2012-04-24 18:44:56 +02:00
|
|
|
@ $(CXX) $(CXXFLAGS) $^ -o $@ $(LIBS) -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-04-24 18:44:56 +02:00
|
|
|
@ $(CXX) $(CXXFLAGS) $^ -o $@ $(JACK_LIBS) $(LIBLO_LIBS) && echo $(DONE)
|
2012-02-29 08:02:10 +01:00
|
|
|
|
2012-03-04 05:13:59 +01:00
|
|
|
|
2012-04-09 05:49:07 +02:00
|
|
|
Session: src/send_osc src/nsmd src/session-manager src/jackpatch src/nsm-proxy src/nsm-proxy-gui
|
2012-03-04 05:13:59 +01:00
|
|
|
|
2012-04-09 05:49:07 +02:00
|
|
|
clean:
|
|
|
|
rm -f $(OBJS) src/nsmd src/session-manager src/jackpatch src/nsm-proxy src/nsm-proxy-gui .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/nsmd "$(DESTDIR)$(prefix)"/bin/nsmd
|
|
|
|
@ install -Dm755 src/session-manager "$(DESTDIR)$(prefix)"/bin/non-session-manager
|
2012-04-09 05:49:07 +02:00
|
|
|
@ install -Dm755 src/nsm-proxy "$(DESTDIR)$(prefix)"/bin/nsm-proxy
|
|
|
|
@ install -Dm755 src/nsm-proxy-gui "$(DESTDIR)$(prefix)"/bin/nsm-proxy-gui
|
2012-03-31 02:24:22 +02:00
|
|
|
@ install -Dm755 src/jackpatch "$(DESTDIR)$(prefix)"/bin/jackpatch
|
|
|
|
@ install -d "$(DESTDIR)$(SYSTEM_PATH)"/non-session-manager
|
2012-03-04 05:13:59 +01:00
|
|
|
@ $(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
|