aboutsummaryrefslogtreecommitdiffstats
path: root/utils/Makefile
diff options
context:
space:
mode:
authorP. J. Pandit <pj.pandit@yahoo.co.in>2010-05-20 20:29:52 -0700
committerH. Peter Anvin <hpa@zytor.com>2010-05-20 20:29:52 -0700
commitdc81681f81225d6f22cc8e3afcf07a286e02ca62 (patch)
treefa4235bb7f72844cd7b844569dccd7dd9cd663cf /utils/Makefile
parenteedb9638d8534bbd39bfa657b932554c92ac55d6 (diff)
downloadsyslinux-dc81681f81225d6f22cc8e3afcf07a286e02ca62.tar.gz
syslinux-dc81681f81225d6f22cc8e3afcf07a286e02ca62.tar.xz
syslinux-dc81681f81225d6f22cc8e3afcf07a286e02ca62.zip
isohybrid: create a C version
Some Linux distributions have complained about Perl as a prerequisite for isohybrid, so create a C version. [ hpa: modified the array generator to put it all in one script ]
Diffstat (limited to 'utils/Makefile')
-rw-r--r--utils/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/utils/Makefile b/utils/Makefile
index 7fdf631d..5930b991 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -21,6 +21,7 @@ CFLAGS = $(GCCWARN) -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
LDFLAGS = -O2 -s
TARGETS = mkdiskimage isohybrid gethostip
+TARGETS += isohybrid.pl # about to be obsoleted
ASIS = keytab-lilo lss16toppm md5pass ppmtolss16 sha1pass syslinux2ansi \
pxelinux-options
@@ -36,16 +37,23 @@ mkdiskimage: mkdiskimage.in ../mbr/mbr.bin bin2hex.pl
$(PERL) bin2hex.pl < ../mbr/mbr.bin | cat mkdiskimage.in - > $@
chmod a+x $@
-isohybrid: isohybrid.in $(ISOHDPFX) bin2hex.pl
+# Works on anything with a Perl interpreter...
+isohybrid.pl: isohybrid.in $(ISOHDPFX) bin2hex.pl
cp -f isohybrid.in $@
for f in $(ISOHDPFX) ; do $(PERL) bin2hex.pl < $$f >> $@ ; done
chmod a+x $@
+isohdpfx.c: $(ISOHDPFX) isohdpfxarray.pl
+ $(PERL) isohdpfxarray.pl $(ISOHDPFX) > $@
+
+isohybrid: isohybrid.c isohdpfx.c isohybrid.h
+ $(CC) $(UMAKEDEPS) $(CFLGAS) -o $@ isohybrid.c isohdpfx.c
+
gethostip: gethostip.o
$(CC) $(LDFLAGS) -o $@ $^
tidy dist:
- rm -f *.o .*.d
+ rm -f *.o .*.d isohdpfx.c
clean: tidy
rm -f $(TARGETS)