!IF 0

Copyright (c) 1989  Microsoft Corporation

Module Name:

    sources.

Abstract:

    This file specifies the target component being built and the list of
    sources files needed to build that component.  Also specifies optional
    compiler switches and libraries that are unique for the component being
    built.


Author:

    Ramon J. San Andres (ramonsa) 10-Aug-1993

!ENDIF

MAJORCOMP=sdktools
MINORCOMP=link32

TARGETNAME=link
TARGETPATH=obj
TARGETTYPE=PROGRAM

UMTYPE=console

UMBASE=0x00400000

SOURCES=    link.rc         \
            alpha.c         \
            bufio.c         \
            cmdline.c       \
            coff.c          \
            contrib.c       \
            convert.c       \
            cpp.c           \
            cv.c            \
            data.c          \
            db.c            \
            dbg.c           \
            dbiapi.c        \
            dbinsp.c        \
            defaultl.c      \
            deflib.c        \
            dmalloc.c       \
            dump.c          \
            edit.c          \
            errmsg.c        \
            export.c        \
            fullpath.c      \
            hash.c          \
            hundname.cxx    \
            i386.c          \
            ifpo.c          \
            image.c         \
            incr.c          \
            irelocs.c       \
            lib.c           \
            linenum.c       \
            link.c          \
            lnkmain.c       \
            lnkp1.c         \
            lnkp2.c         \
            log.c           \
            m68k.c          \
            map.c           \
            memory.c        \
            mips.c          \
            order.c         \
            pdata.c         \
            pe.c            \
            ppc.c           \
            ppcdbg.c        \
            shared.c        \
            symbol.c        \
            tce.c           \
            textpad.c       \
            vxd.c

# BUGBUG ramonsa - temporary

INCLUDES=bugbug

!ifndef LANGAPI_DIR
LANGAPI_DIR = $(BASEDIR)\private\sdktools\vctools\langapi
!endif

!ifndef PDB_DIR
PDB_DIR = $(BASEDIR)\private\sdktools\vctools\pdb
!endif

LINKLIBS = $(PDB_DIR)\dbi\obj\*\dbi.lib

!ifdef INSTRUMENT
LINKLIBS = $(LINKLIBS) \
           $(PDB_DIR)\src\instrapi\obj\*\instrapi.lib
!endif

INCLUDES = $(INCLUDES);$(LANGAPI_DIR)\include

USE_CRTDLL = 1

BLDCRT = 1

MSC_WARNING_LEVEL = -W3 -WX -Gf

C_DEFINES = -DNT_BUILD

!ifndef BUILDPDB
C_DEFINES = $(C_DEFINES) -DNO_TDB

NTTARGETFILE0=coff.c shared.c data.c
!endif


!if "$(NTDEBUG)" == "retail" || "$(NTDEBUG)" == ""
C_DEFINES = $(C_DEFINES) -DNDEBUG
!endif

UMLIBS= ..\cvtomf\obj\*\cvtomf.lib                  \
        ..\disasm\obj\*\disasm.lib                  \
        ..\disasm68\obj\*\disasm68.lib              \
        $(BASEDIR)\public\sdk\lib\*\imagehlp.lib    \
        $(BASEDIR)\public\sdk\lib\*\user32.lib
