mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-05 07:37:29 +02:00
080978ade0
- Makefile (OBJS): added ppm.o and ppmimg.o - ppm.h (load_ppm), ppm.c: PPM file loader, adapted from eda-tools/schhist/ppmdiff/ppmdiff.c - ubb-vga.h (img_name, ppmimg), ppmimg.c: PPM image to frame buffer converter - ubb-vga2.c (usage, main): the threshold is now set with the option -l - ubb-vga2.c (usage, main): if a second argument is given, treat it as a PPM file - ubb-vga2.c (usage): also documented option -t
25 lines
374 B
Makefile
25 lines
374 B
Makefile
#CC=mipsel-openwrt-linux-uclibc-gcc
|
|
CC=mipsel-linux-gcc
|
|
|
|
CFLAGS=-Wall -g -O9 -march=mips32
|
|
LDFLAGS=-lm
|
|
OBJS=ubb-vga2.o grabfb.o tstimg.o ppm.o ppmimg.o
|
|
|
|
.PHONY: all asm sch clean spotless
|
|
|
|
all: ubb-vga ubb-vga2
|
|
|
|
ubb-vga2: $(OBJS)
|
|
|
|
asm: ubb-vga.c
|
|
$(CC) $(CFLAGS) -S $<
|
|
|
|
sch:
|
|
eeschema `pwd`/ubb-vga.sch
|
|
|
|
clean:
|
|
rm -f $(OBJS)
|
|
|
|
spotless: clean
|
|
rm -f ubb-vga ubb-vga2
|