]> rtime.felk.cvut.cz Git - fpga/zynq/canbench-sw.git/blob - petalinux/components/libs/talloc/Makefile
1e6f1b63540f4fa58280b86a7af793b1b5b0db89
[fpga/zynq/canbench-sw.git] / petalinux / components / libs / talloc / Makefile
1 ifndef PETALINUX
2 $(error "Error: PETALINUX environment variable not set.  Change to the root of your PetaLinux install, and source the settings.sh file")
3 endif
4
5 include libs.common.mk
6
7 .PHONY: all build install clean help
8 all: build install
9 build: .installed
10 install: .merged
11
12 VER := 2.1.6
13 DIR := talloc-$(VER)
14 ARCHIVE := $(DIR).tar.gz
15 URL := https://www.samba.org/ftp/talloc/$(ARCHIVE)
16 L := libtalloc.so
17
18 $(ARCHIVE):
19         wget -c $(URL)
20 .unpacked: | $(ARCHIVE)
21         tar xzf $(ARCHIVE)
22         touch .unpacked
23
24 .configured: .unpacked
25         cd $(DIR) && python2 ./buildtools/bin/waf configure --prefix=$(STAGEDIR)/usr --cross-compile --cross-answers=../answers.txt --disable-python --hostcc=gcc --disable-rpath --bundled-libraries=NONE
26         touch .configured
27 .built: .configured
28         cd $(DIR) && python2 ./buildtools/bin/waf build
29         touch .built
30 .installed: .built
31         cd $(DIR) && python2 ./buildtools/bin/waf install
32         touch .installed
33
34 .merged: .installed
35         for f in $(L).$(VER); do $(TARGETINST) -d $(STAGEDIR)/usr/lib/$$f /usr/lib/$$f; done
36         for f in $(L) $(L).2; do $(TARGETINST) -s $(L).$(VER) /usr/lib/$$f; done
37
38 clean:
39         rm -rf $(DIR)
40
41 help:
42         @echo ""
43         @echo "Quick reference for various supported build targets for $(INSTANCE)."
44         @echo "----------------------------------------------------"
45         @echo "  clean                  clean out build objects"
46         @echo "  all                    build $(INSTANCE) and install to rootfs host copy"
47         @echo "  build                  build subsystem"
48         @echo "  install                install built objects to rootfs host copy"