Annotation of mstools/ole20/samples/bttncur/i386/makefile, revision 1.1

1.1     ! root        1: #
        !             2: # Makefile
        !             3: # Standard Button Images and Cursors DLL Version 1.1, March 1993
        !             4: #
        !             5: # Copyright (c)1992-1993 Microsoft Corporation, All Rights Reserved,
        !             6: # as applied to redistribution of this source code in source form
        !             7: # License is granted to use of compiled code in shipped binaries.
        !             8: #
        !             9: !ifndef DEVROOT_DIR
        !            10: !error You must define DEVROOT_DIR (ole20 sub-tree)
        !            11: !endif
        !            12: !ifndef INCLUDE
        !            13: !error You must define INCLUDE (non ole20 include files)
        !            14: !endif
        !            15: !ifndef LIB
        !            16: !error You must deinfe LIB (non ole20 libraries)
        !            17: !endif
        !            18: !ifndef OLEBUILD
        !            19: OLEBUILD=NT
        !            20: !endif
        !            21: 
        !            22: OLE2_H=$(DEVROOT_DIR)\h
        !            23: OLE2_LIB=$(DEVROOT_DIR)\lib
        !            24: 
        !            25: !ifndef SAMPLE_DIR
        !            26: SAMPLE_DIR = $(DEVROOT_DIR)\samples
        !            27: !endif
        !            28: SRC_DIR   = $(SAMPLE_DIR)\bttncur
        !            29: 
        !            30: !CMDSWITCHES +s
        !            31: 
        !            32: #
        !            33: #Compiler and assembler flags
        !            34: #Use "SET RETAIL=1" from MS-DOS to compile non-debug version.
        !            35: #
        !            36: 
        !            37: !if "$(OLEBUILD)" == "NT"
        !            38: 
        !            39: MACHINE   = i386
        !            40: CPP       = cl386
        !            41: IMPLIB    = lib32 -out:$*.l32 -def:$*.d32 -machine:$(MACHINE)
        !            42: 
        !            43: CLFLAGS   = /c /Fc /G3 /D_X86_ /D_DEBUG /D_DEBUGTRACE=0 /DWIN32 /D$(MACHINE)=1 /D_NTWIN /D_WINDOWS /DWINVER=0x030A /W3 /nologo $(CL)
        !            44: LINKFLAGS = -subsystem:windows -machine:$(MACHINE) -debug:mapped,full -debugtype:both
        !            45: LIBS      = kernel32.lib user32.lib gdi32.lib crtdll.lib
        !            46: DEFS      = -DWIN32 -DDEBUG
        !            47: 
        !            48: ECHOERR   = echo
        !            49: 
        !            50: !else
        !            51: 
        !            52: CPP     = cl
        !            53: IMPLIB = implib $@ $*.def
        !            54: 
        !            55: !ifndef RETAIL
        !            56: CLFLAGS = -c -Od -AS -Zipe -G2sw -W3
        !            57: LINK    = /al:16/ONERROR:NOEXE/CO
        !            58: DEFS    = -DDEBUG
        !            59: !else
        !            60: CLFLAGS = -c -Oat -AS -Zpe -G2sw -W3
        !            61: LINK    = /al:16/ONERROR:NOEXE
        !            62: DEFS    =
        !            63: !endif
        !            64: 
        !            65: !endif
        !            66: 
        !            67: .SUFFIXES: .h .c .obj .exe .res .rc
        !            68: 
        !            69: #
        !            70: #
        !            71: 
        !            72: 
        !            73: !if "$(OLEBUILD)" == "NT"
        !            74: 
        !            75: goal:  setflags bttncur.dll
        !            76: setflags:
        !            77:         cd $(SRC_DIR)
        !            78:        set INCLUDE=$(OLE2_H);$(INCLUDE)
        !            79:        set LIB=$(OLE2_LIB);$(LIB)
        !            80: 
        !            81: !else
        !            82: 
        !            83: goal: bttncur.lib
        !            84: 
        !            85: !endif
        !            86: 
        !            87: 
        !            88: 
        !            89: 
        !            90: INCLS    = bttncur.h bttncuri.h
        !            91: OBJS     = bttncur.obj cursors.obj
        !            92: 
        !            93: RCFILES1 = bttncur.rcv res\harrows.cur res\help.cur res\larrows.cur
        !            94: RCFILES2 = res\magnify.cur res\neswarrs.cur res\nodrop.cur res\nwsearrs.cur
        !            95: RCFILES3 = res\rarrow.cur res\sarrows.cur res\sizebarh.cur res\sizebarv.cur
        !            96: RCFILES4 = res\splith.cur res\splitv.cur res\tabletop.cur res\varrows.cur
        !            97: RCFILES5 = res\stdim72.bmp res\stdim96.bmp res\stdim120.bmp
        !            98: RCFILES  = $(RCFILES1) $(RCFILES2) $(RCFILES3) $(RCFILES4) $(RCFILES5)
        !            99: 
        !           100: 
        !           101: #
        !           102: # Tool Directives
        !           103: #
        !           104: .c.obj:
        !           105:     echo +++++++++
        !           106:     echo COMPILING $*.c
        !           107:     $(CPP) $(CLFLAGS) $(DEFS) $*.c
        !           108: 
        !           109: .rc.res:
        !           110:     echo +++++++++
        !           111:     echo Compiling Resources
        !           112:     rc -r $(DEFS) $*.rc
        !           113: 
        !           114: clean:
        !           115:     -del *.obj
        !           116:     -del *.dll
        !           117:     -del *.res
        !           118:     -del *.lib
        !           119:     -del err
        !           120: 
        !           121: #This rule builds a linker response file on the fly depending on debug flags
        !           122: 
        !           123: !if "$(OLEBUILD)" == "NT"
        !           124: 
        !           125: bttncur.dll: $(OBJS) bttncur.lib bttncur.d32 bttncur.res 
        !           126:     @$(ECHOERR) Linking $@...
        !           127:     cvtres -$(MACHINE) $*.res -o $*.rs
        !           128:     link32 $(LINKFLAGS) -entry:LibMain@12 bttncur.exp $(OBJS) $*.rs -out:$@ -map:$*.map -dll $(LIBS) -base:0x76000000 -fixed
        !           129: 
        !           130: bttncur.lib: $(OBJS) bttncur.d32 
        !           131:     @$(ECHOERR) Creating $@...
        !           132:     $(IMPLIB) $(OBJS)
        !           133:     lib32 -out:bttncur.lib bttncur.l32
        !           134: 
        !           135: !else
        !           136: 
        !           137: bttncur.dll : $(OBJS) bttncur.res bttncur.def
        !           138:     echo ++++++++++
        !           139:     echo Linking $@
        !           140:     echo libentry.obj +                        > bttncur.lrf
        !           141:     echo $(OBJS)                              >> bttncur.lrf
        !           142: 
        !           143:     echo bttncur.dll $(LINK)                  >> bttncur.lrf
        !           144:     echo nul/li                               >> bttncur.lrf
        !           145:     echo libw sdllcew/NOD/NOE                 >> bttncur.lrf
        !           146:     echo bttncur.def                          >> bttncur.lrf
        !           147: 
        !           148:     link @bttncur.lrf
        !           149:     rc -v -30 bttncur.res bttncur.dll
        !           150:     del bttncur.lrf
        !           151: 
        !           152: bttncur.lib: bttncur.dll
        !           153:     $(IMPLIB)
        !           154: 
        !           155: !endif
        !           156: 
        !           157: 
        !           158: 
        !           159: ##### Dependencies #####
        !           160: bttncur.obj  : bttncur.c    $(INCLS)
        !           161: cursors.obj  : cursors.c    $(INCLS)
        !           162: bttncur.res  : bttncur.rc   $(INCLS) $(RCFILES)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.