aboutsummaryrefslogtreecommitdiffstats
path: root/autoarchive/Makefile.am
blob: 7bd48d54a01fcbc1b63e1a7600eaea4617401fa5 (plain) (blame)
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
# vim: set sw=8 ts=8 sts=8 noet:

NULL =

noinst_PROGRAMS =

EXTRA_DIST = \
    autoar-enum-types.h.template \
    autoar-enum-types.c.template \
    $(NULL)

noinst_LTLIBRARIES = libautoarchive.la

libautoarchive_h_sources = \
    autoar-extract.h    \
    autoar-pref.h       \
    $(NULL)
libautoarchive_c_sources = \
    autoar-extract.c    \
    autoar-pref.c       \
    $(NULL)
libautoarchive_generated_sources = \
    autoar-enum-types.h \
    autoar-enum-types.c \
    $(NULL)

libautoarchive_la_SOURCES = \
    $(libautoarchive_generated_sources) \
    $(libautoarchive_h_sources)     \
    $(libautoarchive_c_sources)     \
    $(NULL)
libautoarchive_la_CPPFLAGS = \
    $(AM_CPPFLAGS)  \
    $(NULL)
libautoarchive_la_CFLAGS = \
    $(DEPENDENCIES_CFLAGS)  \
    $(AM_CFLAGS)        \
    $(NULL)

autoar-enum-types.h: autoar-enum-types.h.template $(libautoarchive_h_sources) $(GLIB_MKENUMS)
    $(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template autoar-enum-types.h.template $(libautoarchive_h_sources)) > $@
autoar-enum-types.c: autoar-enum-types.c.template $(libautoarchive_h_sources) $(GLIB_MKENUMS)
    $(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template autoar-enum-types.c.template $(libautoarchive_h_sources)) > $@

noinst_PROGRAMS += test-extract
EXTRA_DIST += test-extract.c
test_extract_SOURCES = \
    test-extract.c      \
    $(NULL)
test_extract_CFLAGS = \
    $(DEPENDENCIES_CFLAGS)  \
    $(AM_CFLAGS)        \
    $(NULL)
test_extract_LDADD = \
    $(DEPENDENCIES_LIBS)    \
    libautoarchive.la   \
    $(NULL)

BUILT_SOURCES = \
    $(libautoarchive_generated_sources) \
    $(NULL)

CLEANFILES = $(BUILT_SOURCES)
DISTCLEANFILES = $(BUILT_SOURCES)
MAINTAINERCLEANFILES = $(BUILT_SOURCES)