# makefile MAKE V2.0 or higher
.autodepend

# set this to the relative path where the BANNER utility is located
BANNER = misc.!!!\banner

# set this to the relative path where the JLIB utility is located
JLIB = misc.!!!\jlib

# these are the files that will be included in the zip file
byteb4.exe = loader\byteb4.exe
byteb4.jlb = byteb4.jlb
byteb4.nfo = misc.!!!\byteb4.nfo
file_id.diz = misc.!!!\file_id.diz

# these are the files that will be included in the jlb file
loader.exe = loader\loader.exe
baroque.mod = misc.!!!\baroque.mod
musgus.inf = misc.!!!\musgus.inf
title.exe = title\title.exe
tree.exe = tree\tree.exe
house.exe = house\house.exe
fire.exe = fire\fire.exe
snowman.exe = snowman\snowman.exe
earth.exe = earth\earth.exe

##############################################################################

byteb4.zip:     $(byteb4.exe) $(byteb4.jlb) $(byteb4.nfo) $(file_id.diz)
                @if exist byteb4.zip del byteb4.zip
                pkzip /ex byteb4.zip $(byteb4.exe) $(byteb4.jlb) $(byteb4.nfo) $(file_id.diz)
                @if exist $(byteb4.jlb) del $(byteb4.jlb)
                $(BANNER) byteb4.zip $(file_id.diz)

#############################################################################

$(byteb4.jlb):
                @if exist $(byteb4.jlb) del $(byteb4.jlb)
                $(JLIB) /a $(byteb4.jlb) $(loader.exe) $(musgus.inf) $(title.exe) $(tree.exe)
                $(JLIB) /a $(byteb4.jlb) $(house.exe) $(fire.exe) $(snowman.exe) $(earth.exe) $(baroque.mod)

#############################################################################
