aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 093a25845929aff715f935067fbc475f05e330be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84

SHARED_CFLAGS = \
  -Wall \
  -Wextra -Wno-missing-field-initializers \
  -Werror \
  $(SERVICE_CFLAGS) \
  $(COVERAGE_CFLAGS) \
  -DTIMEZONE_FILE="\"/etc/timezone\"" \
  -DG_LOG_DOMAIN=\"Indicator-Datetime\"

###
###
###

noinst_LIBRARIES = libindicator-datetime-service.a

libindicator_datetime_service_a_CFLAGS = \
  $(SHARED_CFLAGS)

libindicator_datetime_service_a_SOURCES = \
  planner.c \
  planner.h \
  planner-eds.c \
  planner-eds.h \
  service.c \
  service.h \
  timezone.c \
  timezone.h \
  timezone-file.c \
  timezone-file.h \
  timezone-geoclue.c \
  timezone-geoclue.h \
  utils.c \
  utils.h \
  dbus-shared.h \
  settings-shared.h

###
###
###

libexec_PROGRAMS = indicator-datetime-service

indicator_datetime_service_SOURCES = \
  main.c

indicator_datetime_service_CFLAGS = \
  $(SHARED_CFLAGS)

indicator_datetime_service_LDADD = \
  libindicator-datetime-service.a \
  $(SERVICE_LIBS)

indicator_datetime_service_LDFLAGS = \
  $(COVERAGE_LDFLAGS)

###
###
###

if BUILD_CCPANEL
ccpaneldir = $(libdir)/control-center-1/panels/
ccpanel_LTLIBRARIES = libindicator-datetime.la

libindicator_datetime_la_SOURCES =\
	datetime-prefs.c \
	datetime-prefs-locations.c \
	datetime-prefs-locations.h \
	utils.c \
	utils.h \
	settings-shared.h
libindicator_datetime_la_CFLAGS = \
	-Wall \
	-Werror \
	$(PREF_CFLAGS) \
	$(COVERAGE_CFLAGS) \
	-DTIMEZONE_FILE="\"/etc/timezone\"" \
	-DPKGDATADIR="\"$(pkgdatadir)\""
libindicator_datetime_la_LIBADD = \
	$(PREF_LIBS)
libindicator_datetime_la_LDFLAGS = \
	$(COVERAGE_LDFLAGS) \
	-module -avoid-version
endif