-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
67 lines (52 loc) · 1.66 KB
/
Makefile
File metadata and controls
67 lines (52 loc) · 1.66 KB
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
#
# Copyright (C) 2005-2020 Darron Broad
# All rights reserved.
#
# This file is part of Pickle Microchip PIC ICSP.
#
# Pickle Microchip PIC ICSP 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.
#
# Pickle Microchip PIC ICSP 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 Pickle Microchip PIC ICSP. If not, see http://www.gnu.org/licenses/
#
#FreeBSD IBMPC: FreeBSD 9.0-RELEASE amd64
#Debian IBMPC: Linux 3.2.0-4-amd64 x86_64
#Debian RPi: Linux 3.2.27+ armv6l
SYSTEM:=$(shell uname -s)
RELEASE:=$(shell uname -r)
PLATFORM:=$(shell uname -m)
linux:
cd src && $(MAKE) CONFIG=config/linux.mk
k8048:
cd src && $(MAKE) CONFIG=config/K8048.mk
cygwin:k8048
freebsd:k8048
linux-install:
cd src && $(MAKE) CONFIG=config/linux.mk install
k8048-install:
cd src && $(MAKE) CONFIG=config/K8048.mk install
cygwin-install:
cd src && $(MAKE) CONFIG=config/K8048.mk BINDIR=$(HOME)/bin BINUSER=$(USER) BINGROUP=$(USER) install
freebsd-install:k8048-install
install:linux-install
uninstall:
cd src && $(MAKE) uninstall
cygwin-uninstall:
cd src && $(MAKE) BINDIR=$(HOME)/bin uninstall
clean:
cd src && $(MAKE) clean
find -name "*~" -delete
rpibin:
ifneq "$(PLATFORM)" "armv6l"
$(error incorrect platform)
endif
cd src && sudo $(MAKE) CONFIG=config/rpibin.mk rpibin
ls:
find -type f -not -path "./.hg/*" -ls