X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=helper%2FMakefile.am;h=f60e80e0f352685d4b4e2cfdce24616088313229;hb=df569d49aa10af5995f771362ddc1400f16486e8;hp=01a6af186789057c20324245e1366316d460f7b1;hpb=57b3004bde579b986523c43e3a0e6693fd49dd21;p=febootstrap.git diff --git a/helper/Makefile.am b/helper/Makefile.am index 01a6af1..f60e80e 100644 --- a/helper/Makefile.am +++ b/helper/Makefile.am @@ -45,11 +45,17 @@ init_LDFLAGS = -static # http://www.doof.me.uk/2010/05/07/cute-objcopy-hack/ ELF_DEFAULT_ARCH = $(shell $(srcdir)/elf-default-arch | gawk '{ print $$1 }') DEFAULT_ARCH = $(shell $(srcdir)/elf-default-arch | gawk '{ print $$2 }') -ext2init.o: init + +CLEANFILES = ext2init.S + +ext2init.o: ext2init.S + $(CC) -o $@ -c $< + +ext2init.S: init strip --strip-all $< @file $< | grep -isq static || \ (echo "*** error: init is not staticly linked"; exit 1) - objcopy -I binary -B $(DEFAULT_ARCH) -O $(ELF_DEFAULT_ARCH) $< $@ + ./bin2s.pl $< $@ man_MANS = \ febootstrap-supermin-helper.8 @@ -79,4 +85,4 @@ endif EXTRA_DIST = \ febootstrap-supermin-helper.8 \ febootstrap-supermin-helper.pod \ - elf-default-arch + bin2s.pl