1
# This is Picprog, Microchip PIC programmer software for the serial
3
# Copyright © 1997,2002,2003,2004 Jaakko Hyvätti
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.
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.
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.
18
# The author may be contacted at:
20
# Email: Jaakko.Hyvatti@iki.fi
21
# URL: http://www.iki.fi/hyvatti/
22
# Phone: +358 40 5011222
24
# Please send any suggestions, bug reports, success stories etc. to the
25
# Email address above.
27
# Please use a reasonably recent GNU make.
30
CXXFLAGS=-O2 -Wall -W -Wwrite-strings
33
OBJS=main.o picport.o hexfile.o program.o
39
$(CXX) $(LDFLAGS) $(OBJS) -o $@
42
$(CXX) $(LDFLAGS) $^ -o $@
45
$(CXX) -M $(CXXFLAGS) *.cc > .depend
48
rm -f core $(OBJS) $(PROG)
52
VERSION=`expr $$PWD : '.*-\([1-9]\.[1-9]\?[0-9]\(\.[0-9]\)\?\)$$'`; \
54
tar -czvf $(PROG)-$$VERSION.tar.gz \
55
$(PROG)-$$VERSION/{Makefile,COPYING,README} \
56
$(PROG)-$$VERSION/[a-zA-Z]*.{html,png,1,h,cc}
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/
63
# include a dependency file if one exists
65
ifeq (.depend,$(wildcard .depend))