# Makefile for genmap		-*- Indented-Text -*-
#
# Copyright (C) 1996, jack
#
# 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.

# $Id: Makefile,v 1.2 1996/06/14 17:10:00 jack Exp $

CC	= gcc
DEFS	= 
INCLUDES= -I.
CFLAGS	= -Wall -O2

AS	= as
ASFLAGS	=

LD	= ld
LDFLAGS	= 
LDLIBS	= 

AR	= ar
ARFLAGS	= rv

#---------------------------------------------------------------------#

SRCS	= genmap.c
OBJS	= $(SRCS:.c=.o)

ALLTARGET= genmap

#---------------------------------------------------------------------#

.SUFFIXES: .c .o
.c.o:
	$(CC) $(DEFS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<

.PHONY: all
all: $(ALLTARGET)

genmap: $(OBJS)
	$(CC) $(LDFLAGS) $(LDLIBS) -o $@ $^

.PHONY: clean
clean:
	rm -f *.o *.bak *~ .*~ \#* $(ALLTARGET)

.PHONY: depend
depend:
	mkdep -MM $(DEFS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) $(SRCS)

#---------------------------------------------------------------------#
# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.

genmap.o: genmap.c

# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
