Changeset 4625 for trunk/src/gdi32


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

New makefile style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/makefile

    r4596 r4625  
    1 # $Id: makefile,v 1.30 2000-11-15 13:56:45 sandervl Exp $
     1# $Id: makefile,v 1.31 2000-11-19 09:34:39 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
     16#
     17# Overrides.
     18#
     19CDEFINES    = $(CDEFINES) -DINVERT -DUSING_OPEN32
    1820
    1921
    20 # Flag overloads and local macros.
    21 CLEANEXTRAS = gdi32rsrc.asm
    22 
    23 #CFLAGS   = $(CFLAGS) -DSTDCALL_ENUMPROCS -DINVERT
    24 #CXXFLAGS = $(CXXFLAGS) -DSTDCALL_ENUMPROCS -DINVERT
    25 
    26 CFLAGS   = $(CFLAGS) -DINVERT -DUSING_OPEN32
    27 CXXFLAGS = $(CXXFLAGS) -DINVERT -DUSING_OPEN32
    28 
    29 # Object files. All objects should be prefixed with $(OBJDIR)!
     22#
     23# Object files. Prefix with OBJDIR and one space before the '\'.
     24#
    3025OBJS = \
    3126$(OBJDIR)\gdi32.obj \
     
    5247
    5348
     49#
     50# Libraries. One space before the '\'.
     51#
     52LIBS = \
     53$(PDWIN32_LIB)/kernel32.lib \
     54$(PDWIN32_LIB)/user32.lib \
     55$(PDWIN32_LIB)/$(ODINCRT).lib \
     56$(PDWIN32_LIB)/pmwinx.lib \
     57OS2386.LIB \
     58$(RTLLIB_O)
     59
     60
     61#
    5462# Target name - name of the dll without extention and path.
     63#
    5564TARGET = gdi32
    5665
    5766
    58 # All rule - build objs, target dll, copies dll to bin and makes libs.
    59 all:    $(OBJDIR) \
    60         $(OBJDIR)\$(TARGET).dll \
    61         $(PDWIN32_BIN)\$(TARGET).dll \
    62         lib
    63 
    64 
    65 # Lib rule - build importlibrary (and evt. other libs)
    66 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    67 
    68 
    69 # Dll rule - builds the target dll.
    70 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
    71     -4$(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    72 
    73 
    74 # Linker file - creates the parameter file passed on to the linker.
    75 $(OBJDIR)\$(TARGET).lrf: makefile
    76     @echo Creating file <<$@
    77 /OUT:$(OBJDIR)\$(TARGET).dll
    78 /MAP:$(OBJDIR)\$(TARGET).map
    79 $(OBJS)
    80 $(PDWIN32_LIB)/pmwinx.lib
    81 $(PDWIN32_LIB)/kernel32.lib
    82 $(PDWIN32_LIB)/user32.lib
    83 $(PDWIN32_LIB)/$(ODINCRT).lib
    84 OS2386.LIB
    85 $(RTLLIB_O)
    86 $(TARGET).def
    87 <<keep
    88 
    89 
    90 # Dep rule - makes depenencies for C, C++ and Asm files.
    91 dep:
    92     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    93         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    94 
    95 
     67#
    9668# Includes the common rules.
     69#
    9770!include $(PDWIN32_INCLUDE)/pdwin32.post
    9871
Note: See TracChangeset for help on using the changeset viewer.