-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.am
39 lines (33 loc) · 1007 Bytes
/
Makefile.am
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
if ENABLE_DATABASE
SUBDIRS = external
AUTOMAKE_OPTIONS = subdir-objects
endif
CUSTOM_CXXFLAGS = $(WARN_CFLAGS) \
-I$(top_srcdir)/src \
$(LIBEGT_CFLAGS)
CUSTOM_LDADD = $(LIBEGT_LIBS)
if ENABLE_DATABASE
CUSTOM_CXXFLAGS += -isystem $(top_srcdir)/external/sqlite3 \
-isystem $(top_srcdir)/external/sqlite3pp/headeronly_src
CUSTOM_LDADD += $(top_builddir)/external/libsqlite3.la
endif
AM_CXXFLAGS = -DDATADIR=\"$(datadir)\"
bin_PROGRAMS = egt-thermostat
egt_thermostat_SOURCES = src/thermostat.cpp \
src/logic.h \
src/logic.cpp \
src/pages.h \
src/pages.cpp \
src/window.h \
src/window.cpp \
src/settings.h \
src/settings.cpp \
src/sensors.h \
src/sensors.cpp
egt_thermostat_CXXFLAGS = $(CUSTOM_CXXFLAGS) $(AM_CXXFLAGS)
egt_thermostat_LDADD = $(CUSTOM_LDADD) -ldl
egt_thermostatdir = $(prefix)/share/egt/thermostat
dist_egt_thermostat_DATA = $(wildcard $(top_srcdir)/images/*.png) \
$(wildcard $(top_srcdir)/*.png) \
$(wildcard $(top_srcdir)/egt-thermostat.xml)
egt_thermostat_LDFLAGS = $(AM_LDFLAGS)