# Micro In-System Programmer Makefile
# Uros Platise (c) 1999
#
# Check directories and then
#  - to compile type: make
#  - to install type: make install
#  - to run type: uisp
#
# Switch -fhandle-exceptions is required by the GNU C++ 2.7.2.1 and
# may be removed for higher versions (as egcs 2.9.*)

#changes: 	removed -fenum-equiv and added DIRTYHACK
#			07.02.00 robertle

# Directory Setup
        UISP_BIN = /usr/local/bin

# The following lines declare compile options.
# Add switch:
#
#   -DNO_DAPA
#
# To remove "Direct AVR Parallel Access" support

CC	= g++
CPPFLAGS= -Wall -O3 -DDIRTYHACK# # -DNO_DAPA

SRC	= Main.C Terminal.C MotIntl.C Avr.C AvrAtmel.C AvrDummy.C \
	  Serial.C DAPA.C 

OBJ	= Main.o Terminal.o MotIntl.o Avr.o AvrAtmel.o AvrDummy.o \
	  Serial.o DAPA.o
	  
all:	uisp

uisp:	$(OBJ)
	g++ -o $@ $(OBJ) $(LIBS)

clean:
	rm -f *.o *~
	rm -f uisp

install: uisp
	cp uisp $(UISP_BIN)
