-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.am
57 lines (45 loc) · 1.34 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
EXTRA_DIST = \
README.md \
LICENSE \
data/style.css \
data/app.gresource.xml
AM_CFLAGS = -fstack-protector -Wall -Wno-pedantic \
-Wstrict-prototypes -Wundef -fno-common \
-Werror-implicit-function-declaration \
-Wformat -Wformat-security -Werror=format-security \
-Wno-conversion -Wunreachable-code -std=c11
AM_CPPFLAGS = \
-I $(top_srcdir) \
-I $(top_srcdir)/src
app_resources = $(shell glib-compile-resources --sourcedir=$(top_srcdir)/data --generate-dependencies $(top_srcdir)/data/app.gresource.xml)
BUILT_SOURCES = \
app-resources.h \
app-resources.c
CLEANFILES = \
$(BUILT_SOURCES)
# resources
app-resources.h: $(top_srcdir)/data/app.gresource.xml $(app_resources)
glib-compile-resources --target=$@ --sourcedir=$(top_srcdir)/data --generate-header --c-name app $<
app-resources.c: $(top_srcdir)/data/app.gresource.xml $(app_resources)
glib-compile-resources --target=$@ --sourcedir=$(top_srcdir)/data --generate-source --c-name app $<
bin_PROGRAMS = columbiad
columbiad_SOURCES = \
src/main.c \
src/window.h \
src/window.c \
src/carousel.h \
src/carousel.c \
src/image.h \
src/image.c \
src/settings.h \
src/settings.c \
src/common.h \
app-resources.h \
app-resources.c
columbiad_CFLAGS = \
$(GOBJECT_CFLAGS) \
$(GTK3_CFLAGS) \
$(AM_CFLAGS)
columbiad_LDADD = \
$(GOBJECT_LIBS) \
$(GTK3_LIBS)