1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-11-24 22:06:14 +02:00
wernermisc/libbb/Makefile
Werner Almesberger 458702cf54 libbb: library for bit-banging the Ben's uSD port (in progress)
This doesn't work with old kernels, but 2.6.36 should be better. Haven't
tried it yet, though.
2010-11-27 20:21:33 -03:00

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/