#
# $Id: makefile,v 1.25 2002/04/01 13:02:14 cjh Exp $
#
# Makefile for db11, a 68HC11 downloader/terminal program
#
# Copyright (c) 1996-2002, Clifford Heath.
#
# This program may be used for any commercial or noncommercial purpose
# without charge, but acknowledgement of authorship and this copyright
# message must be retained in any copies.
#

CFLAGS	=	-O -Wall \
		-DNEED_SNPRINTF \
		-DNEED_SNPRINTF_PROTO \
		-DNEED_BOOLEAN $(COPT)
#		-DNEED_STRCASECMP

FILES	=	db11.cxx midi.cxx boot.cxx comms.cxx debug.cxx disasm.cxx \
		break.cxx talker.cxx util.cxx map.cxx multiplex.cxx \
		serial.cxx symbol.cxx

all:	db11 db11.man

db11.man:	db11.1
	-groff -Wall -mtty-char -Tlatin1 -mandoc db11.1 > db11.man

clean:
	rm -f *.o db11 db11.man errs

.SUFFIX: .cxx

%.o:	%.cxx
	g++ -I. $(CFLAGS) $(CXXFLAGS) -c $<

db11:	$(FILES:.cxx=.o)
	g++ -I. $(CFLAGS) -o $@ $(FILES:.cxx=.o)

FORCE:
