Changeset 4624 for trunk/src/comctl32


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/comctl32/makefile

    r4611 r4624  
    1 # $Id: makefile,v 1.29 2000-11-17 14:37:52 sandervl Exp $
     1# $Id: makefile,v 1.30 2000-11-19 09:25:46 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 = lz32rsrc.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)\comctl32.obj \
     
    5549
    5650
     51#
     52# Libraries. One space before the '\'.
     53#
     54LIBS = \
     55$(PDWIN32_LIB)/kernel32.lib \
     56$(PDWIN32_LIB)/gdi32.lib \
     57$(PDWIN32_LIB)/user32.lib \
     58$(PDWIN32_LIB)/msvfw32.lib \
     59$(PDWIN32_LIB)/$(ODINCRT).lib \
     60os2386.lib \
     61$(RTLLIB_O)
     62
     63
     64#
    5765# Target name - name of the dll without extention and path.
     66#
    5867TARGET = comctl32
    5968
    6069
    61 # All rule - build objs, target dll, copies dll to bin and makes libs.
    62 all:    $(OBJDIR) \
    63         $(OBJDIR)\$(TARGET).dll \
    64         $(PDWIN32_BIN)\$(TARGET).dll \
    65         lib
    66 
    67 
    68 # Lib rule - build importlibrary (and evt. other libs)
    69 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    70 
    71 
    72 # Dll rule - builds the target dll.
    73 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
    74     $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    75 
    76 
    77 # Linker file - creates the parameter file passed on to the linker.
    78 $(OBJDIR)\$(TARGET).lrf: makefile
    79     @echo Creating file <<$@
    80 /OUT:$(OBJDIR)\$(TARGET).dll
    81 /MAP:$(OBJDIR)\$(TARGET).map
    82 $(OBJS)
    83 $(PDWIN32_LIB)/kernel32.lib
    84 $(PDWIN32_LIB)/gdi32.lib
    85 $(PDWIN32_LIB)/user32.lib
    86 $(PDWIN32_LIB)/msvfw32.lib
    87 $(PDWIN32_LIB)/$(ODINCRT).lib
    88 OS2386.LIB
    89 $(RTLLIB_O)
    90 $(TARGET).def
    91 <<keep
    92 
    93 
    94 # Dep rule - makes depenencies for C, C++ and Asm files.
    95 dep:
    96     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    97         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    98 
    99 
    100 $(OBJDIR)\rsrc.obj: \
    101 cctl_Ca.orc \
    102 cctl_Ca.orc \
    103 cctl_Cs.orc \
    104 cctl_Da.orc \
    105 cctl_De.orc \
    106 cctl_En.orc \
    107 cctl_Eo.orc \
    108 cctl_Es.orc \
    109 cctl_Fi.orc \
    110 cctl_Fr.orc \
    111 cctl_Hu.orc \
    112 cctl_It.orc \
    113 cctl_Ko.orc \
    114 cctl_Nl.orc \
    115 cctl_No.orc \
    116 cctl_Pl.orc \
    117 cctl_Pt.orc \
    118 cctl_Ru.orc \
    119 cctl_Sv.orc \
    120 cctl_Wa.orc \
    121 cctl_xx.orc \
    122 rsrc.orc
    123 
    124 
     70#
    12571# Includes the common rules.
     72#
    12673!include $(PDWIN32_INCLUDE)/pdwin32.post
    12774
Note: See TracChangeset for help on using the changeset viewer.