Changeset 4620 for trunk/src/wsock32


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

New makefile style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.