2 $(error "Error: PETALINUX environment variable not set. Change to the root of your PetaLinux install, and source the settings.sh file")
5 # directory where this file is located
6 d := $(dir $(lastword $(MAKEFILE_LIST)))
10 srcdir := $(PROOT)/../can-benchmark/latester
11 bindir := $(d)/_compiled
16 touch config.omk-default
17 $(MAKE) -C $(srcdir) MAKERULES_DIR=$(d)
18 # $(CC) $(LDFLAGS) -o $@ $(APP_OBJS) $(LDLIBS)
21 $(MAKE) -C $(srcdir) MAKERULES_DIR=$(d) clean
22 -rm -Rf _compiled _build
24 .PHONY: all build install
27 $(TARGETINST) -d $(bindir)/bin/latester /usr/bin/latester
28 $(TARGETINST) -d $(bindir)/bin/vcanbench /usr/bin/vcanbench
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"