Changeset 4622 for trunk/src/user32


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

New makefile style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.