# MultiPlayer
# Copyright (C) 1992 Bryan Ford
#
# 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.
#
# I (the author of MultiPlayer) can be contacted on the Internet at
# "bryan.ford@@m.cc.utah.edu".  See "Player.doc" for other addresses.
#
# $Id: makefile,v 3.2 92/05/25 08:38:34 BAF Exp Locker: BAF $
#
# $Log:	makefile,v $
# Revision 3.2  92/05/25  08:38:34  BAF
# Got rid of requirement for stupid little "Defines" file
# 
# Revision 3.1  92/05/25  08:32:22  BAF
# Recorded history starts with R3
#
#

dest = play
findest = Player
novdest = Player.nov
genos = main.o player.o audiodev.o misca.o globals.o bouncekludge.o
genovlos = window.o windowspec.o progwin.o progwinspec.o prefswin.o prefswinspec.o \
        settingswin.o settingswinspec.o infowin.o infowinspec.o flashywin.o flash.o flashywinspec.o rexx.o
playeros = ptsplay.o stplay.o trekplay.o soundplay.o medplay.o med8play.o fcoplay.o fc14play.o \
        jamplay.o oktaplay.o okta8play.o play8.o soundmonplay.o ntpackplay.o
ovlos = $(genovlos) $(playeros)
libs = lib:bry.lib lib:guido.lib lib:note.lib lib:small.lib lib:tinylcr.lib

$(novdest): /bovs/bst.o $(genos) $(ovlos) $(libs) $(novdest).with
        BLink with $(novdest).with

$(findest): /bovs/bovs.o $(genos) $(ovlos) $(libs) $(findest).with
        BLink with $(findest).with

release: $(findest) $(novdest)

$(findest).with: Makefile Overlays Defines
        Echo >$(findest).with "from /bovs/bovs.o $(genos)"
        Echo >>$(findest).with "to $(findest) library $(libs)"
        Echo >>$(findest).with "map $(findest).map o,h smallcode nodebug batch"
        Echo >>$(findest).with "OVERLAY"
        Type >>$(findest).with Overlays
        Echo >>$(findest).with "\#"
        Echo >>$(findest).with "define _topaz8 = GUIDO_TOPAZ8"

$(novdest).with: Makefile Overlays Defines
        Echo >$(novdest).with "from /bovs/bst.o $(genos)"
        Type >>$(novdest).with Overlays
        Echo >>$(novdest).with "to $(novdest) library $(libs)"
        Echo >>$(novdest).with "map $(novdest).map o,h smallcode nodebug batch"
        Echo >>$(findest).with "define _topaz8 = GUIDO_TOPAZ8"
