-rw-r--r-- | src/Makefile.am | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..1fdae31 --- a/dev/null +++ b/src/Makefile.am | |||
@@ -0,0 +1,32 @@ | |||
1 | bin_PROGRAMS = napkin | ||
2 | |||
3 | AM_CXXFLAGS = ${MODULES_CFLAGS} -I${top_srcdir}/include/ -I${srcdir} | ||
4 | LIBS = ${MODULES_LIBS} \ | ||
5 | ${top_builddir}/lib/libnapkin.la | ||
6 | |||
7 | noinst_HEADERS = sqlite.h db.h \ | ||
8 | sleep_timeline.h \ | ||
9 | widgets.h dialogs.h \ | ||
10 | sleep_history.h | ||
11 | |||
12 | napkin_SOURCES = napkin.cc \ | ||
13 | db.cc \ | ||
14 | sleep_timeline.cc \ | ||
15 | widgets.cc dialogs.cc \ | ||
16 | sleep_history.cc \ | ||
17 | schema.cc COPYING.cc | ||
18 | napkin_DEPENDENCIES = \ | ||
19 | ${top_builddir}/lib/libnapkin.la | ||
20 | |||
21 | EXTRA_DIST = schema.sql | ||
22 | |||
23 | schema.cc: schema.sql | ||
24 | (\ | ||
25 | echo 'namespace napkin{const char *sql_bootstrap=' &&\ | ||
26 | sed -e 's/^\s\+//' -e 's/\s*--.*$$//' -e 's/^/"/' -e 's/$$/"/' $< &&\ | ||
27 | echo ';}'\ | ||
28 | ) >$@ | ||
29 | COPYING.cc: ${top_srcdir}/COPYING | ||
30 | echo "const char * COPYING =" >$@ || (rm $@;exit 1) | ||
31 | sed 's/"/\\"/g' $< | sed 's/^/\"/' | sed 's/$$/\\n\"/' >>$@ || (rm $@;exit 1) | ||
32 | echo ";" >>$@ || (rm $@;exit 1) | ||