]> rtime.felk.cvut.cz Git - fpga/zynq/canbench-sw.git/blob - petalinux/components/apps/latester/Makefile
Makefile fixes
[fpga/zynq/canbench-sw.git] / petalinux / components / apps / latester / 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 # directory where this file is located
6 d := $(dir $(lastword $(MAKEFILE_LIST)))
7 d := $(realpath $(d))
8
9 include apps.common.mk
10 srcdir := $(PROOT)/../can-benchmark/latester
11 bindir := $(d)/_compiled
12
13 all: install
14
15 build:
16         touch config.omk-default
17         $(MAKE) -C $(srcdir) MAKERULES_DIR=$(d)
18 #       $(CC) $(LDFLAGS) -o $@ $(APP_OBJS) $(LDLIBS)
19
20 clean:
21         $(MAKE) -C $(srcdir) MAKERULES_DIR=$(d) clean
22         -rm -Rf _compiled _build
23
24 .PHONY: all build install
25
26 install: build
27         $(TARGETINST) -d $(bindir)/bin/latester /usr/bin/latester
28         $(TARGETINST) -d $(bindir)/bin/vcanbench /usr/bin/vcanbench
29
30 help:
31         @echo ""
32         @echo "Quick reference for various supported build targets for $(INSTANCE)."
33         @echo "----------------------------------------------------"
34         @echo "  clean                  clean out build objects"
35         @echo "  all                    build $(INSTANCE) and install to rootfs host copy"
36         @echo "  build                  build subsystem"
37         @echo "  install                install built objects to rootfs host copy"