#
#
#    Copyright (C) 1994 Moir Brandts Honk
#    Distributed under license by the Free Software Foundation, Inc.
#
# This file is part of MBH PEX development kit.
#
# MBH PEX LIB 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, or (at your option)
# any later version.
#
# MBH PEX LIB 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 MBH PEX LIB; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#
# Report problems and direct all questions to:
#
#
#Moir Brandts Honk      LINEA DATARUM & TABULA FIBULARUM       Moir Brandts Honk
#
#
#    (sysop -[TJS]-)
#    The Netherlands
#
#    netmail:
#         Fido: 2:281/522.7
#         THANet Hub: 70:3170/100
#
#    phone:
#                USR/DS: +31-70-3461215
#          ZyXEL 1496E+: +31-70-3457929
#         LineLink 144e: +31-70-3452981
#
#    Snail Mail:
#         P.O. Box 709
#         2501 CS  Den Haag
#         The Netherlands
#
#
#
# This makefile builds the startup-code and additional library for
# Borland C (C++ 3.11) large model.
#
#

# where to store the library...
# LP=C:\PROGCORN\LIB
# The LP macro has been removed, to make the makefile more generic
# supply -DLP=<path to copy the lib to>
# on the command line!

# the borland compiler executables...
TASM=tasm
TLIB=tlib

# some flags for those executables...
TASMFLAGS= /ml /q /w2 /z /zn /m /la

LIBOBJS = ~atexit.obj ~pureerr.obj ~dos_mess.obj
OBJS = $(LIBOBJS) pb_mbh.obj

.asm.obj:
  $(TASM) $(TASMFLAGS) $<

pb_mbh.bld : pb_mbh.lib pb_mbh.obj
   copy $** $(LP)
   echo %_date %_time MBH Proboard SDK build >> $<

pb_mbh.lib : $(LIBOBJS:~= )
   $(TLIB) $< @&&|
$(LIBOBJS:~=-+)
|
