Initial import
[platform/core/appfw/notification-service.git] / Makefile.am
1 bin_PROGRAMS = notification-service
2
3 AM_CFLAGS = $(GCC_CFLAGS)
4 AM_CPPFLAGS = $(GCC_CFLAGS)
5
6 notification_service_SOURCES = \
7     main.c \
8     notification_service.c \
9     service_common.c
10 notification_service_CFLAGS = -I. $(TIZEN_CFLAGS)
11 notification_service_LDADD = $(TIZEN_LIBS)
12
13 SCRIPT_IN_FILES = \
14      notifications.service.in \
15      notifications.socket.in
16
17 install-data-hook:
18         $(mkinstalldirs) $(DESTDIR)/usr/lib/systemd/system/sockets.target.wants
19         install -m 0644 notifications.service $(DESTDIR)/usr/lib/systemd/system/notifications.service
20         install -m 0644 notifications.socket $(DESTDIR)/usr/lib/systemd/system/notifications.socket
21         ln -fs ../notifications.socket $(DESTDIR)/usr/lib/systemd/system/sockets.target.wants/notifications.socket
22