Root/libbb/Makefile

Source at commit 2db4c1a3a80a5d22de58ed81b9932afe7ea15626 created 9 years 1 month ago.
By Werner Almesberger, cad/test1/: experiment with Free scripted CAD systems (OpenSCAD and Cadmium)
1CC = mipsel-openwrt-linux-uclibc-gcc
2
3PREFIX = /usr/local
4
5LIBBD_PATH = $(PREFIX)/lib/libbbd
6
7CFLAGS = -Wall -DLIBBD_PATH='"$(LIBBD_PATH)"'
8
9MAIN = libbb.a libbbd
10
11.PHONY: all install uninstall clean spotless upload
12
13all: $(MAIN)
14
15libbb.a: libbb.o
16        $(AR) cr $@ $^
17
18libbb.o libbd: libbb.h
19
20install: $(MAIN)
21        install -D libbb.a $(PREFIX)/lib/
22        install -D libbbd $(LIBBD_PATH)
23
24uninstall:
25        rm -f $(PREFIX)/lib/libbb.a
26        rm -f $(LIBBD_PATH)
27
28clean:
29        rm -f libbb.o
30
31spotless: clean
32        rm -f $(MAIN)
33
34upload: libbbd
35        scp libbbd ben:/usr/local/lib/
36

Archive Download this file

Branches:
master



interactive