Changeset 4622 for trunk/src


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

New makefile style.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/urlmon/makefile

    r3864 r4622  
    1 # $Id: makefile,v 1.2 2000-07-19 19:05:23 sandervl Exp $
     1# $Id: makefile,v 1.3 2000-11-19 08:40:22 bird Exp $
    22
    33#
     
    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 = urlmonrsrc.asm
    22 
    23 
    24 # Object files. All objects should be prefixed with $(OBJDIR)!
     16#
     17# Object files. Prefix with OBJDIR and one space before the '\'.
     18#
    2519OBJS = \
    2620$(OBJDIR)\urlmon.obj \
    2721$(OBJDIR)\umon.obj \
    2822$(OBJDIR)\urlmonrsrc.obj \
    29 $(PDWIN32_LIB)\dllentry.obj
     23$(DLLENTRY)
    3024
    3125
     26#
     27# Libraries. One space before the '\'.
     28#
     29LIBS = \
     30$(PDWIN32_LIB)/kernel32.lib \
     31$(PDWIN32_LIB)/ole32.lib \
     32$(PDWIN32_LIB)/$(ODINCRT).lib \
     33OS2386.LIB \
     34$(RTLLIB_O)
     35
     36
     37#
    3238# Target name - name of the dll without extention and path.
     39#
    3340TARGET = urlmon
    3441
    3542
    36 # All rule - build objs, target dll, copies dll to bin and makes libs.
    37 all:    $(OBJDIR) \
    38         $(OBJDIR)\$(TARGET).dll \
    39         $(PDWIN32_BIN)\$(TARGET).dll \
    40         lib
    41 
    42 
    43 # Lib rule - build importlibrary (and evt. other libs)
    44 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    45 
    46 
    47 # Dll rule - builds the target dll.
    48 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
    49     $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    50 
    51 
    52 # Linker file - creates the parameter file passed on to the linker.
    53 $(OBJDIR)\$(TARGET).lrf: makefile
    54     @echo Creating file <<$@
    55 /OUT:$(OBJDIR)\$(TARGET).dll
    56 /MAP:$(OBJDIR)\$(TARGET).map
    57 $(OBJS)
    58 $(PDWIN32_LIB)/kernel32.lib
    59 $(PDWIN32_LIB)/ole32.lib
    60 $(PDWIN32_LIB)/$(ODINCRT).lib
    61 OS2386.LIB
    62 $(RTLLIB_O)
    63 $(TARGET).def
    64 <<keep
    65 
    66 
    67 # Dep rule - makes depenencies for C, C++ and Asm files.
    68 dep:
    69     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    70         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    71 
    72 
     43#
    7344# Includes the common rules.
     45#
    7446!include $(PDWIN32_INCLUDE)/pdwin32.post
    7547
  • trunk/src/user32/Makefile

    r4581 r4622  
    1 # $Id: Makefile,v 1.75 2000-11-09 21:10:07 sandervl Exp $
     1# $Id: Makefile,v 1.76 2000-11-19 08:40:22 bird Exp $
    22
    33#
     
    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 = user32rsrc.asm
    22 
     16#
     17# Overrides
     18#
    2319CFLAGS   = $(CFLAGS) -DINVERT
    2420CXXFLAGS = $(CXXFLAGS) -DINVERT
    2521
    26 # Object files. All objects should be prefixed with $(OBJDIR)!
     22
     23#
     24# Object files. Prefix with OBJDIR and one space before the '\'.
     25#
    2726OBJS = \
    2827$(OBJDIR)\dc.obj \
     
    9594
    9695
     96#
     97# Libraries. One space before the '\'.
     98#
     99LIBS = \
     100$(PDWIN32_LIB)/gdi32.lib \
     101$(PDWIN32_LIB)/pmwinx.lib \
     102$(PDWIN32_LIB)/kernel32.lib \
     103$(PDWIN32_LIB)/libuls.lib \
     104$(PDWIN32_LIB)/$(ODINCRT).lib \
     105OS2386.LIB \
     106$(RTLLIB_O)
     107
     108
     109#
    97110# Target name - name of the dll without extention and path.
     111#
    98112TARGET = user32
    99113
    100114
    101 # All rule - build objs, target dll, copies dll to bin and makes libs.
    102 all:    $(OBJDIR) \
    103         $(OBJDIR)\$(TARGET).dll \
    104         $(PDWIN32_BIN)\$(TARGET).dll \
    105         lib
    106 
    107 
    108 # Lib rule - build importlibrary (and evt. other libs)
    109 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    110 
    111 
    112 # Dll rule - builds the target dll.
    113 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
    114     $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    115 
    116 
    117 # Linker file - creates the parameter file passed on to the linker.
    118 $(OBJDIR)\$(TARGET).lrf: makefile
    119         @echo Creating file <<$@
    120 /OUT:$(OBJDIR)\$(TARGET).dll
    121 /MAP:$(OBJDIR)\$(TARGET).map
    122 $(OBJS)
    123 $(PDWIN32_LIB)/gdi32.lib
    124 $(PDWIN32_LIB)/pmwinx.lib
    125 $(PDWIN32_LIB)/kernel32.lib
    126 $(PDWIN32_LIB)/libuls.lib
    127 $(PDWIN32_LIB)/$(ODINCRT).lib
    128 OS2386.LIB
    129 $(RTLLIB_O)
    130 $(TARGET).def
    131 <<keep
    132 
    133 
    134 # Dep rule - makes depenencies for C, C++ and Asm files.
    135 dep:
    136     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    137         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    138 
    139 
    140 $(OBJDIR)\user32rsrc.obj: user32rsrc.orc
    141 
     115#
    142116# Includes the common rules.
     117#
    143118!include $(PDWIN32_INCLUDE)/pdwin32.post
    144119
  • trunk/src/version/makefile

    r4621 r4622  
    1 # $Id: makefile,v 1.15 2000-11-19 08:38:50 bird Exp $
     1# $Id: makefile,v 1.16 2000-11-19 08:39:49 bird Exp $
    22
    33#
     
    2222$(OBJDIR)\info.obj \
    2323$(OBJDIR)\versionrsrc.obj \
    24 $(PDWIN32_LIB)\dllentry.obj
     24$(DLLENTRY)
    2525
    2626
Note: See TracChangeset for help on using the changeset viewer.