1 # febootstrap Makefile.am
2 # (C) Copyright 2010 Red Hat Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 # Written by Richard W.M. Jones <rjones@redhat.com>
21 febootstrap-supermin-helper
23 febootstrap_supermin_helper_SOURCES = \
35 febootstrap_supermin_helper_CFLAGS = -Wall -I../lib
36 febootstrap_supermin_helper_LDADD = \
37 ext2init.o -lext2fs -lcom_err $(LTLIBINTL) -L../lib -lgnu
39 # init "script" used by ext2 initrd.
40 noinst_PROGRAMS = init
43 init_LDFLAGS = -all-static
45 # http://www.doof.me.uk/2010/05/07/cute-objcopy-hack/
46 ELF_DEFAULT_ARCH = $(shell $(srcdir)/elf-default-arch | gawk '{ print $$1 }')
47 DEFAULT_ARCH = $(shell $(srcdir)/elf-default-arch | gawk '{ print $$2 }')
50 @file $< | grep -isq static || \
51 (echo "*** error: init is not staticly linked"; exit 1)
52 objcopy -I binary -B $(DEFAULT_ARCH) -O $(ELF_DEFAULT_ARCH) $< $@
55 febootstrap-supermin-helper.8
59 febootstrap-supermin-helper.8: febootstrap-supermin-helper.pod
62 -c "Virtualization Support" \
63 --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
66 febootstrap-supermin-helper.txt: febootstrap-supermin-helper.pod
72 febootstrap-supermin-helper.8 febootstrap-supermin-helper.txt \
73 febootstrap-supermin-helper.pod \