/*   CrossFire, A Multiplayer game for X-windows
 *
 *   $Id: Imakefile,v 1.5 1993/04/25 16:08:02 frankj Exp $
 *
 *   Copyright (C) 1992 Frank Tore Johansen
 *
 *   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 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; if not, write to the Free Software
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 *   The author can be reached via e-mail to frankj@ifi.uio.no.
 */

#include "../config/crossfire.tmpl"

INCLUDES = -I../include

LIBTARGET = cross

SRCS = \
	arch.c\
	button.c\
	exp.c\
	friend.c\
	glue.c\
	image.c\
	info.c\
	init.c\
	item.c\
	links.c\
	living.c\
	loader.c\
	logger.c\
	los.c\
	ltostr.c\
	map.c\
	object.c\
	player.c\
	re-cmp.c\
	shstr.c\
	sqrt.c\
	strdup.c\
	strtol.c\
	time.c\
	tempnam.c\
	treasure.c\
	xutil.c

OBJS = \
	arch.o\
	button.o\
	exp.o\
	friend.o\
	glue.o\
	image.o\
	info.o\
	init.o\
	item.o\
	links.o\
	living.o\
	loader.o\
	logger.o\
	los.o\
	ltostr.o\
	map.o\
	object.o\
	player.o\
	re-cmp.o\
	shstr.o\
	sqrt.o\
	strdup.o\
	strtol.o\
	time.o\
	tempnam.o\
	treasure.o\
	xutil.o

all:: $(OBJS)

/* NormalLibraryObjectRule() /* This doesn't work on Ultrix-4.2A, somehow... */

NormalLibraryTarget($(LIBTARGET), $(OBJS))


DependTarget()

relink:
	(cd ..; make relink)

proto:
	cextract +Ap -o ../include/libproto.h -I$(INCROOT) $(INCLUDES) $(SRCS)
	chmod 664 ../include/libproto.h

InsertArchieve(Imakefile README $(SRCS),common)

doc:
	rm -f ../doc/crosslib.doc
	cextract +cpwm -xPSE -s=none -USPEED_GAME -D__Making_docs__ -o ../doc/crosslib.doc -I$(INCROOT) $(INCLUDES) $(SRCS)
