Changeset 4624 for trunk/src/comdlg32


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

    r4581 r4624  
    1 # $Id: makefile,v 1.20 2000-11-09 21:09:28 sandervl Exp $
     1# $Id: makefile,v 1.21 2000-11-19 09:23:00 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 = rsrc.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)\colordlg.obj \
     
    3731
    3832
     33#
     34# Libraries. One space before the '\'.
     35#
     36LIBS = \
     37$(PDWIN32_LIB)/kernel32.lib \
     38$(PDWIN32_LIB)/user32.lib \
     39$(PDWIN32_LIB)/$(ODINCRT).lib \
     40$(PDWIN32_LIB)/shlwapi.lib \
     41$(PDWIN32_LIB)/shell32.lib \
     42$(PDWIN32_LIB)/comctl32.lib \
     43$(PDWIN32_LIB)/gdi32.lib \
     44$(PDWIN32_LIB)/pmwinx.lib \
     45os2386.lib \
     46$(RTLLIB_O)
     47
     48
     49#
    3950# Target name - name of the dll without extention and path.
     51#
    4052TARGET = comdlg32
    4153
    4254
    43 # All rule - build objs, target dll, copies dll to bin and makes libs.
    44 all:    $(OBJDIR) \
    45         $(OBJDIR)\$(TARGET).dll \
    46         $(PDWIN32_BIN)\$(TARGET).dll \
    47         lib
    48 
    49 
    50 # Lib rule - build importlibrary (and evt. other libs)
    51 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    52 
    53 
    54 # Dll rule - builds the target dll.
    55 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
    56     $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    57 
    58 
    59 # Linker file - creates the parameter file passed on to the linker.
    60 $(OBJDIR)\$(TARGET).lrf: makefile
    61     @echo Creating file <<$@
    62 /OUT:$(OBJDIR)\$(TARGET).dll
    63 /MAP:$(OBJDIR)\$(TARGET).map
    64 $(OBJS)
    65 $(PDWIN32_LIB)/pmwinx.lib
    66 $(PDWIN32_LIB)/kernel32.lib
    67 $(PDWIN32_LIB)/user32.lib
    68 $(PDWIN32_LIB)/$(ODINCRT).lib
    69 $(PDWIN32_LIB)/shlwapi.lib
    70 $(PDWIN32_LIB)/shell32.lib
    71 $(PDWIN32_LIB)/comctl32.lib
    72 $(PDWIN32_LIB)/gdi32.lib
    73 OS2386.LIB
    74 $(RTLLIB_O)
    75 $(TARGET).def
    76 <<keep
    77 
    78 
    79 # Dep rule - makes depenencies for C, C++ and Asm files.
    80 dep:
    81     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    82         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    83 
    84 
    85 $(OBJDIR)\rsrc.obj: \
    86 cdlg_Ca.orc \
    87 cdlg_Cs.orc \
    88 cdlg_Da.orc \
    89 cdlg_De.orc \
    90 cdlg_En.orc \
    91 cdlg_Eo.orc \
    92 cdlg_Es.orc \
    93 cdlg_Fi.orc \
    94 cdlg_Fr.orc \
    95 cdlg_Hu.orc \
    96 cdlg_It.orc \
    97 cdlg_Ja.orc \
    98 cdlg_Ko.orc \
    99 cdlg_Nl.orc \
    100 cdlg_No.orc \
    101 cdlg_Pl.orc \
    102 cdlg_Pt.orc \
    103 cdlg_Ru.orc \
    104 cdlg_Sk.orc \
    105 cdlg_Sv.orc \
    106 cdlg_Wa.orc \
    107 cdlg_xx.orc \
    108 rsrc.orc
    109 
     55#
    11056# Includes the common rules.
     57#
    11158!include $(PDWIN32_INCLUDE)/pdwin32.post
    11259
Note: See TracChangeset for help on using the changeset viewer.