Changeset 4620 for trunk/src


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

New makefile style.

Location:
trunk/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wing32/makefile

    r3864 r4620  
    1 # $Id: makefile,v 1.8 2000-07-19 19:05:26 sandervl Exp $
     1# $Id: makefile,v 1.9 2000-11-19 08:35:50 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 ASFLAGS     = -Sc -Sv:ALP
    23 
    24 
    25 # Object files. All objects should be prefixed with $(OBJDIR)!
     16#
     17# Object files. Prefix with OBJDIR and one space before the '\'.
     18#
    2619OBJS = \
    2720$(OBJDIR)\initterm.obj \
     
    3023
    3124
     25#
     26# Libraries. One space before the '\'.
     27#
     28LIBS = \
     29$(PDWIN32_LIB)/kernel32.lib \
     30$(PDWIN32_LIB)/user32.lib \
     31$(PDWIN32_LIB)/gdi32.lib \
     32$(PDWIN32_LIB)/$(ODINCRT).lib \
     33OS2386.LIB \
     34$(RTLLIB_O)
     35
     36
     37#
    3238# Target name - name of the dll without extention and path.
     39#
    3340TARGET  = wing32
    3441
    3542
    36 # All rule - build objs, target dll, copies dll to bin and makes libs.
    37 all:    $(OBJDIR) \
    38         $(OBJDIR)\$(TARGET).dll \
    39         $(PDWIN32_BIN)\$(TARGET).dll \
    40         lib
     43#
     44# Includes the common rules.
     45#
     46!include $(PDWIN32_INCLUDE)/pdwin32.post
    4147
    4248
    43 # Lib rule - build importlibrary (and evt. other libs)
    44 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    45 
    46 
    47 # Dll rule - builds the target dll.
    48 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
    49     $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    50 
    51 
    52 # Linker file - creates the parameter file passed on to the linker.
    53 $(OBJDIR)\$(TARGET).lrf: makefile
    54     @echo Creating file <<$@
    55 /OUT:$(OBJDIR)\$(TARGET).dll
    56 /MAP:$(OBJDIR)\$(TARGET).map
    57 $(OBJS)
    58 $(PDWIN32_LIB)/user32.lib
    59 $(PDWIN32_LIB)/gdi32.lib
    60 $(PDWIN32_LIB)/kernel32.lib
    61 $(PDWIN32_LIB)/$(ODINCRT).lib
    62 OS2386.LIB
    63 $(RTLLIB_O)
    64 $(TARGET).def
    65 <<keep
    66 
    67 
    68 # Dep rule - makes depenencies for C, C++ and Asm files.
    69 dep:
    70     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    71         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    72 
    73 
    74 # Includes the common rules.
    75 !include $(PDWIN32_INCLUDE)/pdwin32.post
    76 
  • trunk/src/wininet/makefile

    r3994 r4620  
    1 # $Id: makefile,v 1.9 2000-08-11 10:57:59 sandervl Exp $
     1# $Id: makefile,v 1.10 2000-11-19 08:35:50 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 = mprrsrc.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)\wininet.obj \
     
    2923$(OBJDIR)\initterm.obj \
    3024$(OBJDIR)\internet.obj \
    31 $(OBJDIR)\wininetrsrc.obj 
     25$(OBJDIR)\wininetrsrc.obj
    3226
    3327
     28#
     29# Libraries. One space before the '\'.
     30#
     31LIBS = \
     32$(PDWIN32_LIB)/kernel32.lib \
     33$(PDWIN32_LIB)/user32.lib \
     34$(PDWIN32_LIB)/$(ODINCRT).lib \
     35$(PDWIN32_LIB)/wsock32.lib \
     36OS2386.LIB \
     37$(RTLLIB_O)
     38
     39
     40#
    3441# Target name - name of the dll without extention and path.
     42#
    3543TARGET = wininet
    3644
    3745
    38 # All rule - build objs, target dll, copies dll to bin and makes libs.
    39 all:    $(OBJDIR) \
    40         $(OBJDIR)\$(TARGET).dll \
    41         $(PDWIN32_BIN)\$(TARGET).dll \
    42         lib
    43 
    44 
    45 # Lib rule - build importlibrary (and evt. other libs)
    46 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    47 
    48 
    49 # Dll rule - builds the target dll.
    50 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
    51     $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    52 
    53 
    54 # Linker file - creates the parameter file passed on to the linker.
    55 $(OBJDIR)\$(TARGET).lrf: makefile
    56     @echo Creating file <<$@
    57 /OUT:$(OBJDIR)\$(TARGET).dll
    58 /MAP:$(OBJDIR)\$(TARGET).map
    59 $(OBJS)
    60 $(PDWIN32_LIB)/kernel32.lib \
    61 $(PDWIN32_LIB)/user32.lib \
    62 $(PDWIN32_LIB)/$(ODINCRT).lib \
    63 $(PDWIN32_LIB)/wsock32.lib
    64 OS2386.LIB $(RTLLIB_O)
    65 $(TARGET).def
    66 <<keep
    67 
    68 
    69 # Dep rule - makes depenencies for C, C++ and Asm files.
    70 dep:
    71     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    72         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    73 
    74 
     46#
    7547# Includes the common rules.
     48#
    7649!include $(PDWIN32_INCLUDE)/pdwin32.post
    7750
  • trunk/src/winmm/makefile

    r3864 r4620  
    1 # $Id: makefile,v 1.19 2000-07-19 19:05:26 sandervl Exp $
     1# $Id: makefile,v 1.20 2000-11-19 08:35:50 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 = winmmrsrc.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)\os2timer.obj \
     
    4640
    4741
     42#
     43# Libraries. One space before the '\'.
     44#
     45LIBS = \
     46$(PDWIN32_LIB)/pmwinx.lib \
     47mmpm2.lib \
     48$(PDWIN32_LIB)/kernel32.lib \
     49$(PDWIN32_LIB)/user32.lib \
     50$(PDWIN32_LIB)/$(ODINCRT).lib \
     51OS2386.LIB \
     52$(RTLLIB_O)
     53
     54
     55#
    4856# Target name - name of the dll without extention and path.
     57#
    4958TARGET = winmm
    5059
    51 LDFLAGS = -Q  -Si -Ti -Ge- -Ss+ -W3 -Gm+ /B"/noe /map /NOD /dbgpack /packcode /packdata /exepack:2"
    5260
    53 # All rule - build objs, target dll, copies dll to bin and makes libs.
    54 all:    $(OBJDIR) \
    55         $(OBJDIR)\$(TARGET).dll \
    56         $(PDWIN32_BIN)\$(TARGET).dll \
    57         lib
    58 
    59 
    60 # Lib rule - build importlibrary (and evt. other libs)
    61 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    62 
    63 
    64 # Dll rule - builds the target dll.
    65 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
    66     $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    67 
    68 
    69 # Linker file - creates the parameter file passed on to the linker.
    70 $(OBJDIR)\$(TARGET).lrf: makefile
    71     @echo Creating file <<$@
    72 /OUT:$(OBJDIR)\$(TARGET).dll
    73 /MAP:$(OBJDIR)\$(TARGET).map
    74 $(OBJS)
    75 $(PDWIN32_LIB)/pmwinx.lib
    76 mmpm2.lib
    77 $(PDWIN32_LIB)/kernel32.lib
    78 $(PDWIN32_LIB)/user32.lib
    79 $(PDWIN32_LIB)/$(ODINCRT).lib
    80 OS2386.LIB
    81 $(RTLLIB_O)
    82 $(TARGET).def
    83 <<keep
    84 
    85 
    86 # Dep rule - makes depenencies for C, C++ and Asm files.
    87 dep:
    88     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    89         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    90 
    91 
     61#
    9262# Includes the common rules.
     63#
    9364!include $(PDWIN32_INCLUDE)/pdwin32.post
    9465
  • trunk/src/winspool/makefile

    r4594 r4620  
    1 # $Id: makefile,v 1.17 2000-11-15 10:54:23 sandervl Exp $
     1# $Id: makefile,v 1.18 2000-11-19 08:35:50 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 = winspoolrsrc.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)\winspool.obj \
    2721$(OBJDIR)\oslibspl.obj \
    2822$(OBJDIR)\winspoolrsrc.obj \
    29 $(PDWIN32_LIB)\dllentry.obj
     23$(DLLENTRY)
    3024
    3125
     26#
     27# Libraries. One space before the '\'.
     28#
     29LIBS = \
     30$(PDWIN32_LIB)/kernel32.lib \
     31$(PDWIN32_LIB)/pmwinx.lib \
     32$(PDWIN32_LIB)/user32.lib \
     33$(PDWIN32_LIB)/$(ODINCRT).lib \
     34OS2386.LIB \
     35$(RTLLIB_O)
     36
     37
     38#
    3239# Target name - name of the dll without extention and path.
     40#
    3341TARGET = winspool
    3442
    3543
    36 # All rule - build objs, target dll, copies dll to bin and makes libs.
    37 all:    $(OBJDIR) \
    38         $(OBJDIR)\$(TARGET).dll \
    39         $(PDWIN32_BIN)\$(TARGET).dll \
    40         lib
    41 
    42 
    43 # Lib rule - build importlibrary (and evt. other libs)
    44 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    45 
    46 
    47 # Dll rule - builds the target dll.
    48 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
    49     -4 $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    50 
    51 
    52 # Linker file - creates the parameter file passed on to the linker.
    53 $(OBJDIR)\$(TARGET).lrf: makefile
    54     @echo Creating file <<$@
    55 /OUT:$(OBJDIR)\$(TARGET).dll
    56 /MAP:$(OBJDIR)\$(TARGET).map
    57 $(OBJS)
    58 $(PDWIN32_LIB)/kernel32.lib
    59 $(PDWIN32_LIB)/pmwinx.lib
    60 $(PDWIN32_LIB)/user32.lib
    61 $(PDWIN32_LIB)/$(ODINCRT).lib
    62 OS2386.LIB
    63 $(RTLLIB_O)
    64 $(TARGET).def
    65 <<keep
    66 
    67 
    68 # Dep rule - makes depenencies for C, C++ and Asm files.
    69 dep:
    70     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    71         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    72 
    73 
     44#
    7445# Includes the common rules.
     46#
    7547!include $(PDWIN32_INCLUDE)/pdwin32.post
    7648
  • trunk/src/wnaspi32/makefile

    r4265 r4620  
    1 # $Id: makefile,v 1.11 2000-09-15 13:25:49 sandervl Exp $
     1# $Id: makefile,v 1.12 2000-11-19 08:35:50 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 = wnaspi32rsrc.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)\aspilib.obj \
     
    3024
    3125
     26#
     27# Libraries. One space before the '\'.
     28#
     29LIBS = \
     30$(PDWIN32_LIB)/kernel32.lib \
     31$(PDWIN32_LIB)/$(ODINCRT).lib \
     32$(PDWIN32_LIB)/advapi32.lib \
     33OS2386.LIB \
     34$(RTLLIB_O)
     35
     36
     37#
    3238# Target name - name of the dll without extention and path.
     39#
    3340TARGET = wnaspi32
    3441
    3542
    36 # All rule - build objs, target dll, copies dll to bin and makes libs.
    37 all:    $(OBJDIR) \
    38         $(OBJDIR)\$(TARGET).dll \
    39         $(PDWIN32_BIN)\$(TARGET).dll \
    40         lib
    41 
    42 
    43 # Lib rule - build importlibrary (and evt. other libs)
    44 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    45 
    46 
    47 # Dll rule - builds the target dll.
    48 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
    49     $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    50 
    51 
    52 # Linker file - creates the parameter file passed on to the linker.
    53 $(OBJDIR)\$(TARGET).lrf: makefile
    54     @echo Creating file <<$@
    55 /OUT:$(OBJDIR)\$(TARGET).dll
    56 /MAP:$(OBJDIR)\$(TARGET).map
    57 $(OBJS)
    58 $(PDWIN32_LIB)/kernel32.lib
    59 $(PDWIN32_LIB)/$(ODINCRT).lib
    60 OS2386.LIB
    61 $(RTLLIB_O)
    62 $(PDWIN32_LIB)/advapi32.lib
    63 $(TARGET).def
    64 <<keep
    65 
    66 
    67 # Dep rule - makes depenencies for C, C++ and Asm files.
    68 dep:
    69     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    70         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    71 
    72 
     43#
    7344# Includes the common rules.
     45#
    7446!include $(PDWIN32_INCLUDE)/pdwin32.post
    7547
  • trunk/src/wnetap32/makefile

    r4362 r4620  
    1 # $Id: makefile,v 1.13 2000-10-02 13:03:00 phaller Exp $
     1# $Id: makefile,v 1.14 2000-11-19 08:35:50 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 = netapi32rsrc.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)\wnetap32.obj \
     
    3024
    3125
     26#
     27# Libraries. One space before the '\'.
     28#
     29LIBS = \
     30$(PDWIN32_LIB)/kernel32.lib \
     31$(PDWIN32_LIB)/user32.lib \
     32$(PDWIN32_LIB)/$(ODINCRT).lib \
     33OS2386.LIB \
     34$(RTLLIB_O)
     35
     36
     37#
    3238# Target and original target names - names of the dll without extention and path
     39#
    3340TARGET      = wnetap32
    3441ORGTARGET   = netapi32
    3542
    3643
    37 # All rule - build objs, target dll, copies dll to bin and makes libs.
    38 all:    $(OBJDIR) \
    39         $(OBJDIR)\$(TARGET).dll \
    40         $(PDWIN32_BIN)\$(TARGET).dll \
    41         lib
    42 
    43 
    44 # Lib rule - build importlibrary (and evt. other libs)
    45 lib: $(ORGTARGET).lib $(PDWIN32_LIB)\$(ORGTARGET).lib
    46 
    47 
    48 # Dll rule - builds the target dll.
    49 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(ORGTARGET).def $(OBJDIR)\$(TARGET).lrf
    50     $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    51 
    52 
    53 # Linker file - creates the parameter file passed on to the linker.
    54 $(OBJDIR)\$(TARGET).lrf: makefile
    55     @echo Creating file <<$@
    56 /OUT:$(OBJDIR)\$(TARGET).dll
    57 /MAP:$(OBJDIR)\$(TARGET).map
    58 $(OBJS)
    59 $(PDWIN32_LIB)/kernel32.lib
    60 $(PDWIN32_LIB)/user32.lib
    61 $(PDWIN32_LIB)/$(ODINCRT).lib
    62 OS2386.LIB $(RTLLIB_O)
    63 $(ORGTARGET).def
    64 <<keep
    65 
    66 
    67 # Dep rule - makes depenencies for C, C++ and Asm files.
    68 dep:
    69     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    70         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    71 
    72 
     44#
    7345# Includes the common rules.
     46#
    7447!include $(PDWIN32_INCLUDE)/pdwin32.post
    7548
  • trunk/src/wsock32/makefile

    r3864 r4620  
    1 # $Id: makefile,v 1.27 2000-07-19 19:05:27 sandervl Exp $
     1# $Id: makefile,v 1.28 2000-11-19 08:35:49 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#
     19CXXFLAGS = $(CXXFLAGS) -DNEW_ASYNC
    1820
    1921
    20 # Flag overloads and local macros.
    21 CLEANEXTRAS = wsock32rsrc.asm
    22 
    23 
    24 # Object files. All objects should be prefixed with $(OBJDIR)!
     22#
     23# Object files. Prefix with OBJDIR and one space before the '\'.
     24#
    2525OBJS = \
    2626$(OBJDIR)\wsock32.obj \
     
    3535
    3636
     37#
     38# Libraries. One space before the '\'.
     39#
     40LIBS = \
     41$(PDWIN32_LIB)/kernel32.lib \
     42$(PDWIN32_LIB)/user32.lib \
     43$(PDWIN32_LIB)/$(ODINCRT).lib \
     44so32dll.lib \
     45tcp32dll.lib \
     46OS2386.LIB \
     47$(RTLLIB_O)
     48
     49
     50#
    3751# Target name - name of the dll without extention and path.
     52#
    3853TARGET = wsock32
    3954
    40 CXXFLAGS = $(CXXFLAGS) -DNEW_ASYNC
    4155
    42 
    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 $(TARGET).def
    66 so32dll.lib
    67 tcp32dll.lib
    68 $(PDWIN32_LIB)\kernel32.lib
    69 $(PDWIN32_LIB)/user32.lib
    70 $(PDWIN32_LIB)/$(ODINCRT).lib
    71 OS2386.LIB
    72 $(RTLLIB_O)
    73 <<keep
    74 
    75 
    76 # Dep rule - makes depenencies for C, C++ and Asm files.
    77 dep:
    78     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    79         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    80 
    81 
     56#
    8257# Includes the common rules.
     58#
    8359!include $(PDWIN32_INCLUDE)/pdwin32.post
    8460
Note: See TracChangeset for help on using the changeset viewer.