[syslinux] Patch to port isohybrid.pl to isohybrid.c
Geert Stappers
stappers at stappers.nl
Tue Apr 13 01:31:57 PDT 2010
Op 20100413 om 09:23 schreef Geert Stappers:
> Op 20100413 om 08:27 schreef Geert Stappers:
> >
> > The Makefile target will look something like
> >
> > isohybrid: isohybrid.c $(ISOHDPFX)
> > $(CC) $(UMAKEDEPS) $(CFLAGS) -o $@ isohybrid.c
> > for f in $(ISOHDPFX) ; do cat $$f >> $@ ; done
> >
>
> That is way too simple, it leaves out the
> print "*\n";
> from the original bin2hex.pl
Try:
isohybrid: isohybrid.c.in $(ISOHDPFX) bin2hex.pl
cp -f isohybrid.c.in isohybrid.c
for f in $(ISOHDPFX) ; do $(PERL) bin2hex.pl < $$f >> isohybrid.c ; done
$(CC) $(UMAKEDEPS) $(CFLAGS) -o $@ isohybrid.c
> The important part is that if any of the ISOHDPFX files
> change, then must isohybrid be rebuild.
Stappers
More information about the Syslinux
mailing list