Changeset 4624 for trunk/src/shell32


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

    r4581 r4624  
    1 # $Id: makefile,v 1.29 2000-11-09 21:09:53 sandervl Exp $
     1# $Id: makefile,v 1.30 2000-11-19 08:50:16 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
    149
     10#
    1511# Compiler, tools, and interference rules.
    16 !include $(PDWIN32_INCLUDE)/pdwin32.mk
    17 
    18 # Flag overloads and local macros.
    19 CLEANEXTRAS = shres.asm
    20 
    21 CFLAGS = $(CFLAGS) -I$(PDWIN32_INCLUDE)
    22 CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE)
     12#
     13!include ../../include/pdwin32.mk
    2314
    2415
    25 # Object files. All objects should be prefixed with $(OBJDIR)!
    26 OBJS =  \
     16#
     17# Object files. Prefix with OBJDIR and one space before the '\'.
     18#
     19OBJS = \
    2720$(OBJDIR)\initterm.obj \
    2821$(OBJDIR)\brsfolder.obj \
     
    6356
    6457
     58#
     59# Libraries. One space before the '\'.
     60#
     61LIBS = \
     62$(PDWIN32_LIB)/kernel32.lib \
     63$(PDWIN32_LIB)/user32.lib \
     64$(PDWIN32_LIB)/advapi32.lib \
     65$(PDWIN32_LIB)/gdi32.lib \
     66$(PDWIN32_LIB)/ole32.lib \
     67$(PDWIN32_LIB)/version.lib \
     68$(PDWIN32_LIB)/comctl32.lib \
     69$(PDWIN32_LIB)/$(ODINCRT).lib \
     70$(PDWIN32_LIB)/pmwinx.lib \
     71$(PDWIN32_LIB)/shlwapi.lib \
     72OS2386.LIB \
     73$(RTLLIB_O)
     74
     75
     76#
    6577# Target name - name of the dll without extention and path.
     78#
    6679TARGET = shell32
    6780
    6881
    69 # All rule - build objs, target dll, copies dll to bin and makes libs.
    70 all:    $(OBJDIR) \
    71         $(OBJDIR)\$(TARGET).dll \
    72         $(PDWIN32_BIN)\$(TARGET).dll \
    73         lib
    74 
    75 
    76 # Lib rule - build importlibrary (and evt. other libs)
    77 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    78 
    79 
    80 # Dll rule - builds the target dll.
    81 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
    82     -4$(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    83 
    84 
    85 # Linker file - creates the parameter file passed on to the linker.
    86 $(OBJDIR)\$(TARGET).lrf: makefile
    87     @echo Creating file <<$@
    88 /OUT:$(OBJDIR)\$(TARGET).dll
    89 /MAP:$(OBJDIR)\$(TARGET).map
    90 $(OBJS)
    91 $(PDWIN32_LIB)/pmwinx.lib
    92 $(PDWIN32_LIB)/kernel32.lib
    93 $(PDWIN32_LIB)/user32.lib
    94 $(PDWIN32_LIB)/advapi32.lib
    95 $(PDWIN32_LIB)/gdi32.lib
    96 $(PDWIN32_LIB)/ole32.lib
    97 $(PDWIN32_LIB)/version.lib
    98 $(PDWIN32_LIB)/comctl32.lib
    99 $(PDWIN32_LIB)/$(ODINCRT).lib
    100 $(PDWIN32_LIB)/shlwapi.lib
    101 OS2386.LIB
    102 $(RTLLIB_O)
    103 $(TARGET).def
    104 <<keep
    105 
    106 
    107 # Dep rule - makes depenencies for C, C++ and Asm files.
    108 dep:
    109     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    110         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    111 
    112 
    113 $(OBJDIR)\shres.obj: shell32_Ca.orc \
    114 shell32_Cs.orc \
    115 shell32_Da.orc \
    116 shell32_De.orc \
    117 shell32_En.orc \
    118 shell32_Eo.orc \
    119 shell32_Es.orc \
    120 shell32_Fi.orc \
    121 shell32_Fr.orc \
    122 shell32_Hu.orc \
    123 shell32_It.orc \
    124 shell32_Nl.orc \
    125 shell32_No.orc \
    126 shell32_Pl.orc \
    127 shell32_Pt.orc \
    128 shell32_Ru.orc \
    129 shell32_Sv.orc \
    130 shell32_Wa.orc \
    131 shell32_xx.orc \
    132 shres.orc \
    133 
    134 
     82#
    13583# Includes the common rules.
     84#
    13685!include $(PDWIN32_INCLUDE)/pdwin32.post
    13786
Note: See TracChangeset for help on using the changeset viewer.