#SCCSID = @(#)makefile	6.9 92/04/27

#******************************************************************************
#
#  Makefile for the PMDISP\EGAFAM\EGAVGA\VGARES subdirectory
#
#       IBM/Microsoft Confidential
#
#       Copyright (c) IBM Corporation 1987, 1989
#       Copyright (c) Microsoft Corporation 1987, 1989
#
#       All Rights Reserved
#
#******************************************************************************

#******************************************************************************
#  Dot directive definition area (usually just suffixes)
#****************************************************************************

.SUFFIXES:      .bin

#****************************************************************************
#  Environment Setup for the component(s).
#****************************************************************************

#
# Compiler Location w/ fonts, includes, libs and tools relative to
# the Global Source (GS), Family Source (FS), Specific Source (SS),
# and Resource Source (RS) directories, PMDISP, PMDISP\EGAFAM,
# PMDISP\EGAFAM\EGAVGA, and PMDISP\EGAFAM\EGAVGA\VGARES, respectively.
#

GS      = ..\..\..
FS      = ..\..
SS      = ..
RS      = .

SEAMLESS = 1

FONTS   = $(GS)\..\fonts
H       = $(GS)\..\..\h
INC     = $(GS)\..\..\inc
LIB     = $(GS)\..\..\lib
TOOLSPATH = $(GS)\..\..\tools

!if [set INCLUDE=$(RS);$(SS);$(FS);$(GS);$(H);$(INC)] || \
    [set LIB=$(LIB)] || [set PATH=$(TOOLSPATH)]
!endif

#
# Compiler/tools Macros
#

AS      = masm
CC      = cl
IMPLIB  = implib
IPF     = ipfc
LIBUTIL = lib
LINK    = link
MAPSYM  = mapsym
RC      = rc

#
# Compiler and Linker Options
#

AFLAGS  = -v
AINC    = -I$(SS) -I$(FS) -I$(GS) -I$(INC) -I$(H) -I$(MAKEDIR)
CINC    = -I$(SS) -I$(FS) -I$(GS) -I$(H) -I$(INC) -I$(MAKEDIR)
CFLAGS  = -c -nologo -u -W3
LFLAGS  = /noe /nod /map /packcode /packdata /exepack /far
RFLAGS  = -r

#
#  Seamless macros
#

SEAMDEP1 = WINUP.PTR     WINARROW.PTR  WINSWE.PTR    WINCROSS.PTR
SEAMDEP2 = WINSNESW.PTR  WINICON.PTR   WINIBEAM.PTR  WINWAIT.PTR
SEAMDEP3 = WINSIZE.PTR   WINSNWSE.PTR  WINSNS.PTR

!if $(SEAMLESS)
SEAMFLAGS = -DSEAMLESS
SEAMDEPS = $(SEAMDEP1) $(SEAMDEP2) $(SEAMDEP3)
!else
SEAMFLAGS =
SEAMDEPS =
!endif

#****************************************************************************
# Set up Macros that will contain all the different dependencies for the
# executables and dlls etc. that are generated.
#****************************************************************************

#****************************************************************************
#   Setup the inference rules for compiling and assembling source to object
#****************************************************************************

.asm.bin:
        $(AS) $(AFLAGS) $(AINC) $<,$(<B).obj;
        $(LINK) $(<B).obj,$(<B).exe;
        reloc $(<B) $(<B).bin
        erase $(<B).obj
        erase $(<B).exe

#****************************************************************************
#   Target Information
#****************************************************************************


all:    ibmvga.res vga.res

clean:
        if exist *.bin del *.bin > nul 2>&1
        if exist sys*.fnt del sys*.fnt > nul 2>&1
        if exist *.res del *.res > nul 2>&1

#*****************************************************************************
#   Specific Description Block Information
#*****************************************************************************

sys10v85.fnt: $(FONTS)\sys10v85.fnt
        copy $(FONTS)\$(@F) .

sys05x12.fnt: $(FONTS)\sys05x12.fnt
        copy $(FONTS)\$(@F) .

sys05x16.fnt: $(FONTS)\sys05x16.fnt
        copy $(FONTS)\$(@F) .

sys06x10.fnt: $(FONTS)\sys06x10.fnt
        copy $(FONTS)\$(@F) .

sys06x14.fnt: $(FONTS)\sys06x14.fnt
        copy $(FONTS)\$(@F) .

sys08x08.fnt: $(FONTS)\sys08x08.fnt
        copy $(FONTS)\$(@F) .

sys08x10.fnt: $(FONTS)\sys08x10.fnt
        copy $(FONTS)\$(@F) .

sys08x12.fnt: $(FONTS)\sys08x12.fnt
        copy $(FONTS)\$(@F) .

sys08x14.fnt: $(FONTS)\sys08x14.fnt
        copy $(FONTS)\$(@F) .

sys08x16.fnt: $(FONTS)\sys08x16.fnt
        copy $(FONTS)\$(@F) .

sys08x18.fnt: $(FONTS)\sys08x18.fnt
        copy $(FONTS)\$(@F) .

vga.res: vga.rc      dispinfo.bin marker.fnt                             \
        sys05x12.fnt sys05x16.fnt sys06x10.fnt sys06x14.fnt              \
        sys10v85.fnt sys08x08.fnt sys08x10.fnt sys08x12.fnt              \
        sys08x14.fnt sys08x16.fnt sys08x18.fnt lcdarrow.ptr lcdtext.ptr  \
        arrow.ptr    text.ptr     wait.ptr     move.ptr     sizenwse.ptr \
        sizenesw.ptr sizewe.ptr   sizens.ptr   appicon.ptr  iconinfo.ptr \
        iconques.ptr iconerr.ptr  iconwarn.ptr illegal.ptr  multfile.ptr \
        program.ptr  file.ptr     folder.ptr   osysmenu.bmp osbup.bmp    \
        osbdown.bmp  osbright.bmp osbleft.bmp  menuchk.bmp  chkbox.bmp   \
        btncorn.bmp  ominbtn.bmp  omaxbtn.bmp  orestbtn.bmp osyschld.bmp \
        drive.bmp    program.bmp  treeplus.bmp treemins.bmp file.bmp     \
        folder.bmp   menuatt.bmp  sizebox.bmp  $(SEAMDEPS)
    rc -r -DFIREWALLS $(SEAMFLAGS) vga.rc vga.res

ibmvga.res: vga.rc      dispinfo.bin marker.fnt                          \
        sys05x12.fnt sys05x16.fnt sys06x10.fnt sys06x14.fnt              \
        sys10v85.fnt sys08x08.fnt sys08x10.fnt sys08x12.fnt              \
        sys08x14.fnt sys08x16.fnt sys08x18.fnt lcdarrow.ptr lcdtext.ptr  \
        arrow.ptr    text.ptr     wait.ptr     move.ptr     sizenwse.ptr \
        sizenesw.ptr sizewe.ptr   sizens.ptr   appicon.ptr  iconinfo.ptr \
        iconques.ptr iconerr.ptr  iconwarn.ptr illegal.ptr  multfile.ptr \
        program.ptr  file.ptr     folder.ptr   osysmenu.bmp osbup.bmp    \
        osbdown.bmp  osbright.bmp osbleft.bmp  menuchk.bmp  chkbox.bmp   \
        btncorn.bmp  ominbtn.bmp  omaxbtn.bmp  orestbtn.bmp osyschld.bmp \
        drive.bmp    program.bmp  treeplus.bmp treemins.bmp file.bmp     \
        folder.bmp   menuatt.bmp  sizebox.bmp  $(SEAMDEPS)
    rc -r -DFIREWALLS $(SEAMFLAGS) vga.rc ibmvga.res

#****************************************************************************
