summaryrefslogtreecommitdiff
path: root/contrib/Makefile
blob: 05fe26497c38ce425e34391f8bebc591f447678c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
##
##  spreadspace avr utils
##
##
##  Copyright (C) 2013-2016 Christian Pointner <equinox@spreadspace.org>
##                2013-2014 Othmar Gsenger <otti@gsenger.com>
##                2016 Bernhard Tittelbach <bernhard@tittelbach.org>
##
##  This file is part of spreadspace avr utils.
##
##  spreadspace avr utils is free software: you can redistribute it and/or modify
##  it under the terms of the GNU General Public License as published by
##  the Free Software Foundation, either version 3 of the License, or
##  any later version.
##
##  spreadspace avr utils is distributed in the hope that it will be useful,
##  but WITHOUT ANY WARRANTY; without even the implied warranty of
##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
##  GNU General Public License for more details.
##
##  You should have received a copy of the GNU General Public License
##  along with spreadspace avr utils. If not, see <http://www.gnu.org/licenses/>.
##

LUFA_VERSION := 151115
FASTLED_VERSION := 3.1.0
PJON_VERSION := 3.0
VUSB_VERSION := 20121206

all: download-lufa download-fastled download-pjon download-vusb update-teensy-loader update-micronucleus

download-lufa: LUFA-${LUFA_VERSION}.zip

LUFA-${LUFA_VERSION}.zip:
	wget "http://www.github.com/abcminiuser/lufa/archive/$@" -O "$@"
	unzip $@

download-fastled: FastLED-${FASTLED_VERSION}.zip

FastLED-${FASTLED_VERSION}.zip:
	wget "https://github.com/FastLED/FastLED/archive/v${FASTLED_VERSION}.zip" -O "$@"
	unzip $@
	cd FastLED-${FASTLED_VERSION}; patch -p1 < ../fastled4minimus32.patch


download-pjon: PJON-${PJON_VERSION}.zip

PJON-${PJON_VERSION}.zip:
	wget "https://github.com/gioblu/PJON/archive/${PJON_VERSION}.zip" -O "$@"
	unzip $@

download-vusb: vusb-${VUSB_VERSION}.zip

vusb-${VUSB_VERSION}.zip:
	wget "https://www.obdev.at/downloads/vusb/vusb-${VUSB_VERSION}.zip" -O "$@"
	unzip $@

.teensy-loader.prepared:
	git clone https://github.com/PaulStoffregen/teensy_loader_cli.git
	touch $@

update-teensy-loader: .teensy-loader.prepared
	cd teensy_loader_cli; git pull; make

.micronucleus.prepared:
	git clone https://github.com/micronucleus/micronucleus/
	touch $@

update-micronucleus: .micronucleus.prepared
	cd micronucleus/commandline; git pull; make