# =========================================================================
# Makefile - Information for building drawmap, and associated programs.
# Copyright (c) 1997  Fred M. Erickson
#
# 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 2, 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; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# =========================================================================



# If you want a copyright notice inserted into the image, then
# comment out the first version of NAME, and uncomment the
# second, and put your name inside the quotes.
NAME=\"\"
#NAME=\"Fred M. Erickson\"

CFLAGS=-relax_pointers -O7


all: drawmap llsearch block_opt block_std

ShowImage.o: ShowImage.cpp
	$(CC) -c ShowImage.cpp

drawmap: ShowImage.o drawmap.c big_buf_io.c big_buf_io_z.c gunzip.c utilities.c gzip.h font_5x8.h font_6x10.h raster.h
	$(CC) $(CFLAGS) -DCOPYRIGHT_NAME="${NAME}" -o drawmap ShowImage.o drawmap.c big_buf_io.c big_buf_io_z.c gunzip.c utilities.c

block_opt: block_opt.c
	$(CC) $(CFLAGS) -o block_opt block_opt.c

block_std: block_std.c
	$(CC) $(CFLAGS) -o block_std block_std.c

llsearch: llsearch.c big_buf_io.c utilities.c
	$(CC) $(CFLAGS) -o llsearch llsearch.c big_buf_io.c utilities.c

#man: drawmap.1n llsearch.1n


#drawmap.1n: drawmap.1
#	nroff -man drawmap.1 > drawmap.1n

#llsearch.1n: llsearch.1
#	nroff -man llsearch.1 > llsearch.1n

clean:
	rm -f drawmap block_opt block_std llsearch *.o *.xSYM
