2018-05-31 16:38:58 +02:00
|
|
|
PKG_NAME = pic32prog
|
|
|
|
PKG_URL = https://github.com/sergev/pic32prog
|
|
|
|
PKG_VERSION = b9f8db3b352804392b02b42475fc42874ac8bf04
|
|
|
|
PKG_LICENSE = GPL-2
|
2020-07-10 11:27:23 +02:00
|
|
|
|
|
|
|
# manually set some RIOT env vars, so this Makefile can be called stand-alone
|
|
|
|
RIOTBASE ?= $(CURDIR)/../../..
|
|
|
|
RIOTTOOLS ?= $(CURDIR)/..
|
2018-05-31 16:38:58 +02:00
|
|
|
|
2020-06-13 21:03:07 +02:00
|
|
|
PKG_SOURCE_DIR = $(CURDIR)/bin
|
|
|
|
PKG_BUILD_OUT_OF_SOURCE = 0
|
2019-10-02 12:47:02 +02:00
|
|
|
include $(RIOTBASE)/pkg/pkg.mk
|
|
|
|
|
2018-05-31 16:38:58 +02:00
|
|
|
# Building it requires some dependencies, on ubuntu:
|
|
|
|
#
|
|
|
|
# sudo apt-get install libusb-dev libusb-1.0-0-dev libudev-dev
|
|
|
|
|
2020-07-10 11:27:23 +02:00
|
|
|
all: $(CURDIR)/pic32prog
|
|
|
|
|
|
|
|
$(CURDIR)/pic32prog:
|
2018-05-31 16:38:58 +02:00
|
|
|
@echo "[INFO] compiling pic32prog from source now"
|
2020-07-03 11:17:57 +02:00
|
|
|
@env -i PATH=$(PATH) TERM=$(TERM) $(MAKE) -C $(PKG_BUILD_DIR)
|
2020-07-10 11:27:23 +02:00
|
|
|
@mv $(PKG_BUILD_DIR)/pic32prog $(CURDIR)/pic32prog
|
2018-05-31 16:38:58 +02:00
|
|
|
|
2020-07-10 11:27:23 +02:00
|
|
|
clean::
|
|
|
|
rm -f $(CURDIR)/pic32prog
|