aboutsummaryrefslogtreecommitdiffstats
path: root/sample
diff options
context:
space:
mode:
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