~ubuntu-branches/debian/stretch/uswsusp/stretch

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Christian Perrier
  • Date: 2008-08-20 09:09:13 UTC
  • mfrom: (0.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080820090913-0eahue1zo8egcxls
Tags: 0.8-1.1
* Non-maintainer upload to fix pending l10n issues.
* Remove extra and useless debian/po/ff/ directory
* Debconf translation updates:
  - Japanese. Closes: #489939
  - German. Closes: #493747
  - French. Closes: #493771
  - Romanian. Closes: #493772
  - Galician. Closes: #494050
  - Finnish. Closes: #494087
  - Italian. Closes: #494096
  - Basque. Closes: #494277
  - Basque. Closes: #494277
  - Czech. Closes: #494410
  - Swedish. Closes: #494412
  - Russian. Closes: #495412
  - Portuguese. Closes: #495451
  - Spanish. Closes: #495499
  - Slovak. Closes: #495516

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Makefile.am
 
3
#
 
4
# Copyright (C) 2007 Alon Bar-Lev <alon.barlev@gmail.com>
 
5
#
 
6
# This file is released under the GPLv2.
 
7
#
 
8
AUTOMAKE_OPTIONS=foreign dist-bzip2
 
9
 
 
10
SUBDIRS=\
 
11
        doc \
 
12
        scripts
 
13
 
 
14
sysconf_DATA=#required in order to create dir
 
15
if ENABLE_CREATE_DEVICE
 
16
dev_DATA=
 
17
endif
 
18
 
 
19
noinst_PROGRAMS=
 
20
if ENABLE_DEBUG
 
21
if ENABLE_FBSPLASH
 
22
noinst_PROGRAMS+=fbsplash-test
 
23
endif
 
24
endif
 
25
noinst_LIBRARIES=\
 
26
        libsuspend-common.a
 
27
sbin_PROGRAMS=\
 
28
        s2disk \
 
29
        swap-offset
 
30
dist_noinst_DATA= \
 
31
        conf/suspend.conf
 
32
 
 
33
if !ENABLE_MINIMAL
 
34
sbin_PROGRAMS+=\
 
35
        s2ram \
 
36
        s2both
 
37
if ENABLE_ENCRYPT
 
38
sbin_PROGRAMS+=\
 
39
        suspend-keygen
 
40
endif
 
41
initramfs_PROGRAMS=\
 
42
        resume
 
43
dist_doc_DATA=\
 
44
        TODO \
 
45
        README* \
 
46
        HOWTO \
 
47
        COPYING*
 
48
endif
 
49
 
 
50
install-data-hook:
 
51
        if [ -f $(DESTDIR)$(sysconfdir)/suspend.conf ]; then \
 
52
                $(INSTALL_DATA) $(srcdir)/conf/suspend.conf $(DESTDIR)$(sysconfdir)/suspend.conf.new; \
 
53
        else \
 
54
                $(INSTALL_DATA) $(srcdir)/conf/suspend.conf $(DESTDIR)$(sysconfdir)/suspend.conf; \
 
55
        fi
 
56
if ENABLE_CREATE_DEVICE
 
57
        $(MKNOD) $(DESTDIR)$(devdir)/snapshot c 10 231
 
58
endif
 
59
 
 
60
AM_CFLAGS=\
 
61
        -DS2RAM \
 
62
        $(LZO_CFLAGS) \
 
63
        $(LIBGCRYPT_CFLAGS)
 
64
 
 
65
common_s2disk_libs=\
 
66
        $(LZO_LIBS) \
 
67
        $(LIBGCRYPT_LIBS)
 
68
common_s2ram_libs=
 
69
 
 
70
if ENABLE_SPLASHY
 
71
AM_CFLAGS+=\
 
72
        ${SPLASHY_CFLAGS}
 
73
common_s2disk_libs+=\
 
74
        ${SPLASHY_LIBS}
 
75
endif
 
76
if ENABLE_FBSPLASH
 
77
AM_CFLAGS+=\
 
78
        ${FBSPLASH_CFLAGS}
 
79
common_s2disk_libs+=\
 
80
        ${FBSPLASH_LIBS}
 
81
endif
 
82
 
 
83
libsuspend_common_a_SOURCES=\
 
84
        swsusp.h \
 
85
        vt.h vt.c \
 
86
        config_parser.h config_parser.c \
 
87
        md5.h md5.c \
 
88
        encrypt.h encrypt.c \
 
89
        loglevel.h loglevel.c \
 
90
        splash.h splash.c \
 
91
        splashy_funcs.h splashy_funcs.c \
 
92
        fbsplash_funcs.h fbsplash_funcs.c \
 
93
        bootsplash.h bootsplash.c \
 
94
        whitelist.h whitelist.c \
 
95
        s2ram.h s2ram.c
 
96
 
 
97
if ARCH_X86
 
98
libsuspend_common_a_SOURCES+=\
 
99
        s2ram-x86.h s2ram-x86.c \
 
100
        dmidecode.c \
 
101
        radeontool.c \
 
102
        vbetool/vbetool.h vbetool/vbetool.c
 
103
AM_CFLAGS+=\
 
104
        $(LIBX86_CFLAGS) \
 
105
        $(LIBPCI_CFLAGS)
 
106
common_s2ram_libs+=\
 
107
        $(LIBX86_LIBS) \
 
108
        $(LIBPCI_LIBS)
 
109
endif
 
110
if ARCH_PPC
 
111
libsuspend_common_a_SOURCES+=\
 
112
        s2ram-ppc.h s2ram-ppc.c
 
113
endif
 
114
 
 
115
resume_CFLAGS=\
 
116
        $(AM_CFLAGS) \
 
117
        -D_GNU_SOURCE
 
118
resume_SOURCES=\
 
119
        resume.c
 
120
resume_LDADD=\
 
121
        libsuspend-common.a \
 
122
        $(common_s2disk_libs)
 
123
if ENABLE_RESUME_STATIC
 
124
resume_LDFLAGS=\
 
125
        $(AM_LDFLAGS) \
 
126
        -all-static
 
127
endif
 
128
 
 
129
s2disk_SOURCES=\
 
130
        suspend.c
 
131
s2disk_LDADD=\
 
132
        libsuspend-common.a \
 
133
        $(common_s2disk_libs)
 
134
 
 
135
s2both_SOURCES=\
 
136
        suspend.c
 
137
s2both_CFLAGS=\
 
138
        $(AM_CFLAGS) \
 
139
        -DCONFIG_BOTH
 
140
s2both_LDADD=\
 
141
        libsuspend-common.a \
 
142
        $(common_s2ram_libs) \
 
143
        $(common_s2disk_libs)
 
144
 
 
145
s2ram_SOURCES=\
 
146
        s2ram-main.c
 
147
s2ram_LDADD=\
 
148
        libsuspend-common.a \
 
149
        $(common_s2ram_libs)
 
150
 
 
151
swap_offset_SOURCES=\
 
152
        swap-offset.c
 
153
 
 
154
suspend_keygen_SOURCES=\
 
155
        keygen.c
 
156
suspend_keygen_LDADD=\
 
157
        libsuspend-common.a \
 
158
        $(LIBGCRYPT_LIBS)
 
159
 
 
160
fbsplash_test_SOURCES=\
 
161
        fbsplash_funcs.c \
 
162
        fbsplash-test.c
 
163
fbsplash_test_LDADD=\
 
164
        $(FBSPLASH_LIBS)
 
165
 
 
166
#
 
167
# Misc functions
 
168
#
 
169
install-resume-new-initrd:      resume
 
170
        @if test -z "$(RESUME_DEVICE)"; then \
 
171
                echo "Please specify --with-resume-device"; \
 
172
                false; \
 
173
        else \
 
174
                BOOT_DIR=$(DESTDIR)$(bootdir) ./scripts/create-resume-initrd.sh $(RESUME_DEVICE); \
 
175
        fi
 
176
 
 
177
install-resume-on-initrd:       resume
 
178
        BOOT_DIR=$(DESTDIR)$(bootdir) ./scripts/install-resume.sh