summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-26 14:50:05 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-26 14:50:05 -0800
commit27b74666375cc1b4f381463cf85eece62d528605 (patch)
treea87d67172d2d962ec4c1822d3389c2189b032285 /sample
parentbfbd5464eabbebce89da45d7545cfee4b437f5d1 (diff)
downloadsyslinux-27b74666375cc1b4f381463cf85eece62d528605.tar.gz
Remove pngtopnm dependency from the samples/ directory
Ship syslogo.ppm.gz instead of syslogo.png, thereby eliminating a dependency on pngtopnm which apparently isn't installed by default on some distros.
Diffstat (limited to 'sample')
-rw-r--r--sample/Makefile11
-rw-r--r--sample/syslogo.pngbin19847 -> 0 bytes
-rw-r--r--sample/syslogo.ppm.gzbin0 -> 24364 bytes
3 files changed, 8 insertions, 3 deletions
diff --git a/sample/Makefile b/sample/Makefile
index 6894ceca..bd64e906 100644
--- a/sample/Makefile
+++ b/sample/Makefile
@@ -33,6 +33,8 @@ LDFLAGS = -s
OBJCOPY = objcopy
PPMTOLSS16 = ../ppmtolss16
LIB = liboldcom32.a
+GZIP = gzip
+PNGTOPNM = pngtopnm
LIBOBJS = conio.o atou.o skipatou.o printf.o c32exit.o
@@ -64,10 +66,13 @@ $(LIB): $(LIBOBJS)
$(AR) cq $@ $^
$(RANLIB) $@
-syslogo.lss: syslogo.png $(PPMTOLSS16)
- pngtopnm syslogo.png | \
+%.lss: %.ppm.gz $(PPMTOLSS16)
+ $(GZIP) -cd $< | \
$(PPMTOLSS16) \#000000=0 \#d0d0d0=7 \#f6f6f6=15 \
- > syslogo.lss
+ > $@
+
+%.ppm.gz: %.png
+ $(PNGTOPNM) $< | gzip -9 > $@
tidy:
rm -f *.o *.a *.lst *.elf
diff --git a/sample/syslogo.png b/sample/syslogo.png
deleted file mode 100644
index 45b4b5ec..00000000
--- a/sample/syslogo.png
+++ /dev/null
Binary files differ
diff --git a/sample/syslogo.ppm.gz b/sample/syslogo.ppm.gz
new file mode 100644
index 00000000..ee46d9b0
--- /dev/null
+++ b/sample/syslogo.ppm.gz
Binary files differ