mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-12-23 22:51:43 +02:00
458702cf54
This doesn't work with old kernels, but 2.6.36 should be better. Haven't tried it yet, though.
36 lines
550 B
Makefile
36 lines
550 B
Makefile
CC = mipsel-openwrt-linux-uclibc-gcc
|
|
|
|
PREFIX = /usr/local
|
|
|
|
LIBBD_PATH = $(PREFIX)/lib/libbbd
|
|
|
|
CFLAGS = -Wall -DLIBBD_PATH='"$(LIBBD_PATH)"'
|
|
|
|
MAIN = libbb.a libbbd
|
|
|
|
.PHONY: all install uninstall clean spotless upload
|
|
|
|
all: $(MAIN)
|
|
|
|
libbb.a: libbb.o
|
|
$(AR) cr $@ $^
|
|
|
|
libbb.o libbd: libbb.h
|
|
|
|
install: $(MAIN)
|
|
install -D libbb.a $(PREFIX)/lib/
|
|
install -D libbbd $(LIBBD_PATH)
|
|
|
|
uninstall:
|
|
rm -f $(PREFIX)/lib/libbb.a
|
|
rm -f $(LIBBD_PATH)
|
|
|
|
clean:
|
|
rm -f libbb.o
|
|
|
|
spotless: clean
|
|
rm -f $(MAIN)
|
|
|
|
upload: libbbd
|
|
scp libbbd ben:/usr/local/lib/
|