##   ___________		     _________		      _____  __
##   \_	  _____/______   ____   ____ \_   ___ \____________ _/ ____\/  |_
##    |    __) \_  __ \_/ __ \_/ __ \/    \  \/\_  __ \__  \\   __\\   __\ 
##    |     \   |  | \/\  ___/\  ___/\     \____|  | \// __ \|  |   |  |
##    \___  /   |__|    \___  >\___  >\______  /|__|  (____  /__|   |__|
##	  \/		    \/	   \/	     \/		   \/
##  ______________________                           ______________________
##			  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 1998-2002 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; only version 2 of the License.
##
##	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.9 2002/04/17 18:38:46 nehalmistry Exp $
##

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

CFLAGS += -I.
IFLAGS += -I.

MODULE	= libmodplug

CLOBBER	= minimodplay

HDRS	= it_defs.h modplug.h sndfile.h stdafx.h minimodplay.c

SRCS	= fastmix.c mmcmp.c tables.c load_669.c load_amf.c load_ams.c \
	  load_dbm.c load_dmf.c load_dsm.c load_far.c load_it.c load_j2b.c \
	  load_mdl.c load_med.c load_mod.c load_mt2.c load_mtm.c load_okt.c \
	  load_psm.c load_ptm.c load_s3m.c load_stm.c load_ult.c load_umx.c \
	  load_wav.c load_xm.c snd_dsp.c snd_flt.c snd_fx.c \
	  sndmix.c sndfile.c modplug.c

CPPSRCS	= 

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

minimodplay: minimodplay.$(OE) $(OBJS)
	$(CCLD) $(CFLAGS) -o $@ minimodplay.$(OE) $(OBJS) -lm

include $(TOPDIR)/Common.mk
