2011-04-24 08:36:56 +03:00
|
|
|
#CC=mipsel-openwrt-linux-uclibc-gcc
|
|
|
|
CC=mipsel-linux-gcc
|
|
|
|
|
|
|
|
CFLAGS=-Wall -g -O9 -march=mips32
|
2011-04-28 05:31:39 +03:00
|
|
|
LDFLAGS=-lm
|
2011-04-29 20:03:07 +03:00
|
|
|
OBJS=ubb-vga.o grabfb.o tstimg.o ppm.o ppmimg.o ccube.o physmem.o
|
2011-04-24 08:36:56 +03:00
|
|
|
|
|
|
|
.PHONY: all asm sch clean spotless
|
|
|
|
|
2011-04-29 20:03:07 +03:00
|
|
|
all: ubb-vga ubb-vga-old
|
2011-04-24 08:36:56 +03:00
|
|
|
|
2011-04-29 20:03:07 +03:00
|
|
|
ubb-vga: $(OBJS)
|
2011-04-28 02:59:29 +03:00
|
|
|
|
2011-04-24 08:56:56 +03:00
|
|
|
asm: ubb-vga.c
|
2011-04-24 08:36:56 +03:00
|
|
|
$(CC) $(CFLAGS) -S $<
|
|
|
|
|
|
|
|
sch:
|
|
|
|
eeschema `pwd`/ubb-vga.sch
|
|
|
|
|
|
|
|
clean:
|
2011-04-28 02:59:29 +03:00
|
|
|
rm -f $(OBJS)
|
2011-04-24 08:36:56 +03:00
|
|
|
|
|
|
|
spotless: clean
|
2011-04-29 20:03:07 +03:00
|
|
|
rm -f ubb-vga ubb-vga-old
|