File: Makefile.am

package info (click to toggle)
ps3-utils 2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 252 kB
  • ctags: 211
  • sloc: ansic: 1,790; sh: 245; makefile: 175
file content (143 lines) | stat: -rw-r--r-- 3,583 bytes parent folder | download
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#
#  Copyright 2007 Sony Corp.
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; version 2 of the License.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#

if COND_DEBUG
 extra_cppflags = -DDEBUG
else
 extra_cppflags = -DNDEBUG
endif

SUBDIRS = lib

composed_bin_scripts =

bin_SCRIPTS = $(composed_bin_scripts)

composed_sbin_scripts = \
	ps3-boot-game-os \
	ps3-dump-bootloader \
	ps3-rtc-init

sbin_SCRIPTS = $(composed_sbin_scripts)

composed_mans = \
	ps3-boot-game-os.8 \
	ps3-dump-bootloader.8 \
	ps3-flash-util.8 \
	ps3-rtc-init.8 \
	ps3-utils.8 \
	ps3-video-mode.8

man_MANS = $(composed_mans)

AM_CPPFLAGS = -I$(srcdir)/lib

AM_CFLAGS = $(extra_cppflags) \
	-g \
	-Wall \
	-W \
	-Wunused \
	-Wstrict-prototypes \
	-Wmissing-prototypes \
	-Wmissing-declarations \
	-Wredundant-decls \
	-Winline

AM_LDFLAGS = -Llib

bin_PROGRAMS = ps3-video-mode
sbin_PROGRAMS = ps3-flash-util

ps3_flash_util_DEPENDENCIES = Makefile
ps3_flash_util_SOURCES = ps3-flash-util.c
ps3_flash_util_LDADD = -lps3-utils

ps3_video_mode_DEPENDENCIES = Makefile
ps3_video_mode_SOURCES = ps3-video-mode.c
ps3_video_mode_LDADD = -lps3-utils

edit = sed \
	-e 's|@PACKAGE_NAME\@|$(PACKAGE_NAME)|g' \
	-e 's|@PACKAGE_VERSION\@|$(PACKAGE_VERSION)|g' \
	-e 's|@PACKAGE_BUGREPORT\@|$(PACKAGE_BUGREPORT)|g' \
	-e 's|@libexecdir\@|$(libexecdir)|g' \
	-e 's|@datadir\@|$(pkgdatadir)|g' \
	-e 's|@prefix\@|$(prefix)|g'

ps3-boot-game-os: Makefile $(srcdir)/ps3-boot-game-os.in
	rm -f $@ $@.tmp
	$(edit) $(srcdir)/$@.in >$@.tmp
	chmod +x $@.tmp
	mv $@.tmp $@

ps3-dump-bootloader: Makefile $(srcdir)/ps3-dump-bootloader.in
	rm -f $@ $@.tmp
	$(edit) $(srcdir)/$@.in >$@.tmp
	chmod +x $@.tmp
	mv $@.tmp $@

ps3-rtc-init: Makefile $(srcdir)/ps3-rtc-init.in
	rm -f $@ $@.tmp
	$(edit) $(srcdir)/$@.in >$@.tmp
	chmod +x $@.tmp
	mv $@.tmp $@

ps3-boot-game-os.8: Makefile $(srcdir)/ps3-boot-game-os.8.in
	rm -f $@ $@.tmp
	$(edit) $(srcdir)/$@.in >$@.tmp
	groff -Cz -man $@.tmp
	mv $@.tmp $@

ps3-dump-bootloader.8: Makefile $(srcdir)/ps3-dump-bootloader.8.in
	rm -f $@ $@.tmp
	$(edit) $(srcdir)/$@.in >$@.tmp
	groff -Cz -man $@.tmp
	mv $@.tmp $@

ps3-flash-util.8: Makefile $(srcdir)/ps3-flash-util.8.in
	rm -f $@ $@.tmp
	$(edit) $(srcdir)/$@.in >$@.tmp
	groff -Cz -man $@.tmp
	mv $@.tmp $@

ps3-rtc-init.8: Makefile $(srcdir)/ps3-rtc-init.8.in
	rm -f $@ $@.tmp
	$(edit) $(srcdir)/$@.in >$@.tmp
	groff -Cz -man $@.tmp
	mv $@.tmp $@

ps3-utils.8: Makefile $(srcdir)/ps3-utils.8.in
	rm -f $@ $@.tmp
	$(edit) $(srcdir)/$@.in >$@.tmp
	groff -Cz -man $@.tmp
	mv $@.tmp $@

ps3-video-mode.8: Makefile $(srcdir)/ps3-video-mode.8.in
	rm -f $@ $@.tmp
	$(edit) $(srcdir)/$@.in >$@.tmp
	groff -Cz -man $@.tmp
	mv $@.tmp $@

composed_files = $(composed_mans) $(composed_bin_scripts) \
	$(composed_sbin_scripts)

EXTRA_DIST = bootstrap configure.ac.in $(addsuffix .in, $(composed_files))

MAINTAINERCLEANFILES = aclocal.m4 config.* configure configure.ac depcomp \
	install-sh ltmain.sh Makefile.in missing $(PACKAGE)-*.gz

CLEANFILES = $(composed_files) $(addsuffix .tmp, $(composed_files))