blob: f0bc07c061c4d26d0e151d128b42b41c33d4d0d5 [file] [log] [blame]
## Makefile.am -- Process this file with automake to produce Makefile.in
#
# 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
#
SUBDIRS = lib
EXTRA_DIST = \
COPYING \
INSTALL \
bootstrap \
configure.ac.in \
config.sub.patch \
$(addsuffix .in, $(composed_bin_scripts)) \
$(addsuffix .in, $(composed_sbin_scripts)) \
$(man_MANS) \
ps3-utils.spec
MAINTAINERCLEANFILES = Makefile.in
composed_bin_scripts =
composed_sbin_scripts = \
ps3-boot-game-os \
ps3-dump-bootloader \
ps3-rtc-init
bin_SCRIPTS = \
$(composed_bin_scripts)
sbin_SCRIPTS = \
$(composed_sbin_scripts)
sbin_PROGRAMS = \
ps3-flash-util
bin_PROGRAMS = \
ps3-video-mode
man_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
CLEANFILES = $(composed_bin_scripts)) $(composed_sbin_scripts)
AM_CPPFLAGS = \
$(USER_INCLUDES) \
-I$(srcdir)/lib
AM_CFLAGS = \
$(DEBUG_CFLAGS) \
-g \
-Wall \
-W \
-Wunused \
-Wstrict-prototypes \
-Wmissing-prototypes \
-Wmissing-declarations \
-Wredundant-decls \
-Winline
ps3_flash_util_SOURCES = ps3-flash-util.c
ps3_flash_util_LDFLAGS = -Llib
ps3_flash_util_LDADD = -lps3-utils
ps3_video_mode_SOURCES = ps3-video-mode.c
ps3_video_mode_LDFLAGS = -Llib
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 $@