Run the notifications display deamon with a systemd service.
[platform/core/appfw/notification-service.git] / Makefile.am
1 bin_PROGRAMS = notification-service notification-display-service sample-display-client send-notification bluetooth_notification_client
2
3 AM_CFLAGS = $(GCC_CFLAGS)
4 AM_CPPFLAGS = $(GCC_CFLAGS)
5
6 if HAVE_WAYLAND
7 AM_CPPFLAGS += -DHAVE_WAYLAND
8 endif
9
10 notification_service_SOURCES = \
11     main.c \
12     notification_service.c \
13     service_common.c
14 notification_service_CFLAGS = -I. $(TIZEN_CFLAGS)
15 notification_service_LDADD = $(TIZEN_LIBS)
16
17 notification_display_service_SOURCES = notification_display_service.c
18 notification_display_service_CFLAGS = -I. $(TIZEN_CFLAGS)
19 notification_display_service_LDADD = $(TIZEN_LIBS)
20
21 send_notification_SOURCES = send_notification.c
22 send_notification_CFLAGS = -I. $(TIZEN_CFLAGS)
23 send_notification_LDADD = $(TIZEN_LIBS)
24
25 sample_display_client_SOURCES = sample_display_client.c
26 sample_display_client_CFLAGS = -I. $(TIZEN_CFLAGS)
27 sample_display_client_LDADD = $(TIZEN_LIBS)
28
29 bluetooth_notification_client_SOURCES = bluetooth_notification_client.c
30 bluetooth_notification_client_CFLAGS = -I. $(TIZEN_CFLAGS)
31 bluetooth_notification_client_LDADD = $(TIZEN_LIBS)
32
33 SCRIPT_IN_FILES = \
34      notifications.service.in \
35      notifications_display.service.in
36
37 install-data-hook:
38         $(mkinstalldirs) $(DESTDIR)/usr/lib/systemd/system/
39         install -m 0644 notifications.service $(DESTDIR)/usr/lib/systemd/system/notifications.service
40         install -m 0644 notifications_display.service $(DESTDIR)/usr/lib/systemd/system/notifications_display.service