Changeset 4624 for trunk/src/oleaut32


Ignore:
Timestamp:
Nov 19, 2000, 10:27:40 AM (25 years ago)
Author:
bird
Message:

New makefile style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/oleaut32/makefile

    r4276 r4624  
    1 # $Id: makefile,v 1.19 2000-09-17 22:28:55 davidr Exp $
     1# $Id: makefile,v 1.20 2000-11-19 09:04:02 bird Exp $
    22
    33#
    44# Odin32 API
    55#
    6 #       ole32.dll makefile
     6#       ole32aut.dll makefile
    77#
    88
    9 # Directory macros.
    10 PDWIN32_INCLUDE = ..\..\include
    11 PDWIN32_LIB     = ..\..\lib
    12 PDWIN32_BIN     = ..\..\$(OBJDIR)
    13 PDWIN32_TOOLS   = ..\..\tools\bin
     9
     10#
     11# Compiler, tools, and interference rules.
     12#
     13!include ../../include/pdwin32.mk
    1414
    1515
    16 # Compiler, tools, and interference rules.
    17 !include $(PDWIN32_INCLUDE)/pdwin32.mk
    18 
    19 
    20 # Flag overloads and local macros.
    21 CLEANEXTRAS = oleaut32rsrc.asm
    22 
    23 !ifdef NODEBUGINFO
    24 CFLAGS = $(CFLAGS) -DDEFAULT_LOGGING_OFF
    25 CXXFLAGS = $(CXXFLAGS) -DDEFAULT_LOGGING_OFF
    26 !endif
    27 
    28 
    29 # Object files. All objects should be prefixed with $(OBJDIR)!
     16#
     17# Object files. Prefix with OBJDIR and one space before the '\'.
     18#
    3019OBJS = \
    3120$(OBJDIR)\oleaut32.obj \
     
    5342
    5443
     44#
     45# Libraries. One space before the '\'.
     46#
     47LIBS = \
     48$(PDWIN32_LIB)/advapi32.lib \
     49$(PDWIN32_LIB)/kernel32.lib \
     50$(PDWIN32_LIB)/user32.lib \
     51$(PDWIN32_LIB)/ole32.lib \
     52$(PDWIN32_LIB)/gdi32.lib \
     53$(PDWIN32_LIB)/$(ODINCRT).lib \
     54$(PDWIN32_LIB)/pmwinx.lib \
     55OS2386.LIB \
     56$(RTLLIB_O)
     57
     58
     59#
    5560# Target and original target names - names of the dll without extention and path
     61#
    5662TARGET      = olautos2
    5763ORGTARGET   = oleaut32
    5864
    5965
    60 # All rule - build objs, target dll, copies dll to bin and makes libs.
    61 all:    $(OBJDIR) \
    62         $(OBJDIR)\$(TARGET).dll \
    63         $(PDWIN32_BIN)\$(TARGET).dll \
    64         lib
    65 
    66 
    67 # Lib rule - build importlibrary (and evt. other libs)
    68 lib: $(ORGTARGET).lib $(PDWIN32_LIB)\$(ORGTARGET).lib
    69 
    70 
    71 # Dll rule - builds the target dll.
    72 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(ORGTARGET).def $(OBJDIR)\$(TARGET).lrf
    73     $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    74 
    75 
    76 # Linker file - creates the parameter file passed on to the linker.
    77 $(OBJDIR)\$(TARGET).lrf: makefile
    78     @echo Creating file <<$@
    79 /OUT:$(OBJDIR)\$(TARGET).dll
    80 /MAP:$(OBJDIR)\$(TARGET).map
    81 $(OBJS)
    82 $(PDWIN32_LIB)/pmwinx.lib
    83 $(PDWIN32_LIB)/advapi32.lib
    84 $(PDWIN32_LIB)/kernel32.lib
    85 $(PDWIN32_LIB)/user32.lib
    86 $(PDWIN32_LIB)/ole32.lib
    87 $(PDWIN32_LIB)/gdi32.lib
    88 $(PDWIN32_LIB)/$(ODINCRT).lib
    89 OS2386.LIB
    90 $(RTLLIB_O)
    91 $(ORGTARGET).def
    92 <<keep
    93 
    94 
    95 # Dep rule - makes depenencies for C, C++ and Asm files.
    96 dep:
    97     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    98         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    99 
    100 
     66#
    10167# Includes the common rules.
     68#
    10269!include $(PDWIN32_INCLUDE)/pdwin32.post
    10370
Note: See TracChangeset for help on using the changeset viewer.