# aducloader - A serial download program for ADuC702x microcontrollers
# Copyright (C) 2006, 2007 Robert Fitzsimons
#
# This program 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
# (at your option) any later version.
#
# This program 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 this program.  Look for the COPYING file in the top
# level directory.  If not, see <http://www.gnu.org/licenses/>.

MAJOR_VERSION = 0
MINOR_VERSION = 1
VERSION = $(MAJOR_VERSION).$(MINOR_VERSION)

CFLAGS ?= -Wall -O2 -g

all : aducloader

clean :
	$(RM) aducloader

aducloader : aducloader.c
	$(CC) $(CFLAGS) -DADUCLOADER_VERSION='"$(VERSION)"' -o $@ $<

package :
	git-archive --format=tar --prefix=aducloader-$(VERSION)/ HEAD | \
		bzip2 --best > aducloader-$(VERSION).tar.bz2

