aboutsummaryrefslogtreecommitdiffstats
path: root/sample/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sample/Makefile')
-rw-r--r--sample/Makefile11
1 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