~ubuntu-branches/ubuntu/raring/picprog/raring

« back to all changes in this revision

Viewing changes to .pc/10_fix-makefile.patch/Makefile

  • Committer: Package Import Robot
  • Author(s): Koichi Akabe
  • Date: 2011-12-03 10:08:38 UTC
  • mfrom: (4.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20111203100838-f05iyixkqjdh2byd
Tags: 1.9.1-2
* debian/control
  - changed priority from extra to optional
  - narrowed environments: linux-any kfreebsd-any

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This is Picprog, Microchip PIC programmer software for the serial
 
2
# port device.
 
3
# Copyright © 1997,2002,2003,2004 Jaakko Hyvätti
 
4
 
5
# This program is free software; you can redistribute it and/or modify
 
6
# it under the terms of the GNU General Public License version 2 as
 
7
# published by the Free Software Foundation.
 
8
 
9
# This program is distributed in the hope that it will be useful,
 
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
# GNU General Public License for more details.
 
13
 
14
# You should have received a copy of the GNU General Public License
 
15
# along with this program; if not, write to the Free Software Foundation,
 
16
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
17
 
18
# The author may be contacted at:
 
19
 
20
# Email: Jaakko.Hyvatti@iki.fi
 
21
# URL:   http://www.iki.fi/hyvatti/
 
22
# Phone: +358 40 5011222
 
23
 
24
# Please send any suggestions, bug reports, success stories etc. to the
 
25
# Email address above.
 
26
 
 
27
# Please use a reasonably recent GNU make.
 
28
 
 
29
CXX=g++
 
30
CXXFLAGS=-O2 -Wall -W -Wwrite-strings
 
31
LDFLAGS=-s
 
32
 
 
33
OBJS=main.o picport.o hexfile.o program.o
 
34
PROG=picprog
 
35
 
 
36
all: $(PROG) testport
 
37
 
 
38
$(PROG): $(OBJS)
 
39
        $(CXX) $(LDFLAGS) $(OBJS) -o $@
 
40
 
 
41
testport: testport.o
 
42
        $(CXX) $(LDFLAGS) $^ -o $@
 
43
 
 
44
dep:
 
45
        $(CXX) -M $(CXXFLAGS) *.cc > .depend
 
46
 
 
47
clean:
 
48
        rm -f core $(OBJS) $(PROG)
 
49
 
 
50
tar:
 
51
        chmod -R a+rX,go-w .
 
52
        VERSION=`expr $$PWD : '.*-\([1-9]\.[1-9]\?[0-9]\(\.[0-9]\)\?\)$$'`; \
 
53
        cd ..; \
 
54
        tar -czvf $(PROG)-$$VERSION.tar.gz \
 
55
                $(PROG)-$$VERSION/{Makefile,COPYING,README} \
 
56
                $(PROG)-$$VERSION/[a-zA-Z]*.{html,png,1,h,cc}
 
57
 
 
58
install: all
 
59
        install -c -o 0 -g 0 -m 755 $(PROG) /usr/local/bin/
 
60
        install -c -o 0 -g 0 -m 644 *.1 /usr/local/man/man1/
 
61
 
 
62
#
 
63
# include a dependency file if one exists
 
64
#
 
65
ifeq (.depend,$(wildcard .depend))
 
66
include .depend
 
67
endif