# -----------------------------------------------------------------
# File name:  MAKEFILE
#
# This file contains the build information necessary to create both
# the application (APPFLOAT) and the DLL it calls (DLLFLOAT).
#
# This is an NMAKE FILE.
#
# Versions:  Microsoft C 6.00, Microsoft MASM 6.0*
#
# *NOTE:  Please see the comments about assembling libentry.obj because
#         you are not required to assemble it with MASM 6.0; you may
#         use MASM 5.1 or you may use the pre-assembled libentry.obj that
#         comes with the SDK.  The libentry.asm file contained in this
#         sample is the one provided in the MS Windows 3.0 SDK.
#
# Written by Microsoft Product Support Services, Windows Developer Support.
#
# Copyright (c) 1991, 1992 Microsoft Corporation.  All rights reserved.
# -----------------------------------------------------------------


all: dllfloat.dll appfloat.exe


# Defines

APP_CFLAGS = -c -W3 -AS -Gsw -Zpe -Os
DLL_CFLAGS = -c -W3 -Alnw -Gsw -Zpe -Os

APP_LINKFLAGS = /NOD/NOE/MAP
DLL_LINKFLAGS = /NOD/NOE/MAP

APP_OBJS = appfloat.obj mainwnd.obj init.obj about.obj
DLL_OBJS = dllfloat.obj wepcode.obj libentry.obj


# Rules for building DLLFLOAT.DLL, the DLL.

dllfloat.obj: dllfloat.c dllfloat.h
        cl $(DLL_CFLAGS) -NT MAINDLLSEG dllfloat.c

wepcode.obj: wepcode.c
        cl $(DLL_CFLAGS) -NT WEPSEG wepcode.c


dllfloat.dll: $(DLL_OBJS) dllfloat.def
    link @<<
    $(DLL_LINKFLAGS) $(DLL_OBJS)
    dllfloat.dll
    dllfloat.map /map/li
    libw mdllcew
    dllfloat.def
<<
    rc dllfloat.dll
    mapsym dllfloat
    implib dllfloat.lib dllfloat.def


# Rules for building APPFLOAT.EXE, the application that calls the DLL.

appfloat.obj: appfloat.c appfloat.h init.h globals.h
        cl $(APP_CFLAGS) appfloat.c

mainwnd.obj: mainwnd.c mainwnd.h about.h globals.h dllfloat.h
        cl $(APP_CFLAGS) mainwnd.c

init.obj: init.c init.h mainwnd.h globals.h
        cl $(APP_CFLAGS) init.c

about.obj: about.c about.h
        cl $(APP_CFLAGS) about.c

appfloat.res: appfloat.rc appfloat.h globals.h
        rc -r appfloat.rc

appfloat.exe: $(APP_OBJS) appfloat.def appfloat.res
    link @<<
    $(APP_LINKFLAGS) $(APP_OBJS)
    appfloat.exe
    appfloat /map/li
    libw slibcew dllfloat
    appfloat.def
<<
    rc appfloat.res
    mapsym appfloat

