##   ___________		     _________		      _____  __
##   \_	  _____/______   ____   ____ \_   ___ \____________ _/ ____\/  |_
##    |    __) \_  __ \_/ __ \_/ __ \/    \  \/\_  __ \__  \\   __\\   __\ 
##    |     \   |  | \/\  ___/\  ___/\     \____|  | \// __ \|  |   |  |
##    \___  /   |__|    \___  >\___  >\______  /|__|  (____  /__|   |__|
##	  \/		    \/	   \/	     \/		   \/
##  ______________________                           ______________________
##			  T H E   W A R   B E G I N S
##	   FreeCraft - A free fantasy real time strategy game engine
##
##	Makefile	-	The make file (3 level).
##
##	(c) Copyright 1999,2000 by Lutz Sammer
##
##	FreeCraft 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.
##
##	FreeCraft 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.
##
##	$Id: Makefile,v 1.13 2002/04/17 18:38:47 nehalmistry Exp $
##

TOPDIR	= ../..
RULESFILE ?= Rules.make
include $(TOPDIR)/$(RULESFILE)

MODULE  = pathfinder

ifeq (HIERARCHIC_PATHFINDER, $(findstring HIERARCHIC_PATHFINDER, $(CFLAGS)))
	SRCS	= pathfinder.c astar.c ccl_pathfinder.c avl_tree.c hierarchical.c \
			  regid.c region.c region_set.c region_groups.c pf_highlevel.c \
			  pf_high_open.c pf_lowlevel.c pf_low_open.c pf_goal.c
else
	SRCS	= pathfinder.c astar.c ccl_pathfinder.c
endif

OBJS	= $(addprefix $(OBJDIR)/, $(SRCS:.c=.$(OE)))

include $(TOPDIR)/Common.mk
