#*******************************************************************
#* makefile (used by driver1.c)                                    *
#*******************************************************************
#* Does all the build stuff.                                       *
#*******************************************************************
#* Warpstock Europe 1999                                           *
#* PDD workshop                                                    *
#*******************************************************************
#* Frank Meilinger                                                 *
#* Hirtesemuehle 1                                                 *
#* 65529 Waldems-Esch                                              *
#* e-mail: meilinger@wiesbaden.netsurf.de                          *
#* web: http://rover.wiesbaden.netsurf.de/~meile                   *
#*******************************************************************

name = driver1

#
# Microsoft linker 5.10.005
#
# /nod    NODEFAULTLIBRARYSEARCH
# /map    generate map-file
#
$(name).sys: startup.obj $(name).obj
     link /nod /map /far startup.obj+$(name).obj,$(name).sys,$(name).map,dhcalls.lib+slibcep.lib+os2386.lib,$(name).def
     mapsym $(name).map

#
# MASM 5.10A.15 Jul 07 15:25:03 1989
#
# -Mx    Preserve case of global lables
# -e     emulate floating point instructions and IEEE format
# -t     suppress messages for successful assembly
# -l     generate listing
# -N     suppress symbol tables in listing
#
startup.obj: startup.asm
        masm -Mx -e -t -l -N startup;

#
# MSC 6.00A.04
#
# -c     compile only
# -Asnw  small model and ???
# -Gs    no stack checking
# -G2    286 instructions
# -Zl    remove default library info
# -Zp    pack structs on 1-byte boundary
# -Ox    max. optimization (/Oegilt /Gs)
#
$(name).obj: $(name).c
        cl -c -Asnw -Gs -G2 -Zl -Zp -Ox -Fa$(name).cod $(name).c

