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

    r3864 r4624  
    1 # $Id: makefile,v 1.4 2000-07-19 19:05:07 sandervl Exp $
     1# $Id: makefile,v 1.5 2000-11-19 09:15:25 bird Exp $
    22#
    33# icmp.dll makefile
     
    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
     12#
     13!include ../../include/pdwin32.mk
    1714
    18 # Flag overloads and local macros.
    19 CLEANEXTRAS = icmprsrc.asm
    2015
    21 # Object files. All objects should be prefixed with $(OBJDIR)!
     16#
     17# Object files. Prefix with OBJDIR and one space before the '\'.
     18#
    2219OBJS = \
    2320$(OBJDIR)\icmp.obj \
    2421$(OBJDIR)\icmprsrc.obj \
    25 $(PDWIN32_LIB)\dllentry.obj
     22$(DLLENTRY)
    2623
     24
     25#
     26# Libraries. One space before the '\'.
     27#
     28LIBS = \
     29os2386.lib \
     30$(PDWIN32_LIB)/wsock32.lib \
     31$(RTLLIB_O) \
     32$(PDWIN32_LIB)/$(ODINCRT).lib \
     33$(PDWIN32_LIB)/kernel32.lib
     34
     35
     36#
    2737# Target name - name of the dll without extention and path.
     38#
    2839TARGET = icmp
    2940
    30 # All rule - build objs, target dll, copies dll to bin and makes libs.
    31 all:    $(OBJDIR) \
    32         $(OBJDIR)\$(TARGET).dll \
    33         $(PDWIN32_BIN)\$(TARGET).dll \
    34         lib
    3541
    36 
    37 # Lib rule - build importlibrary (and evt. other libs)
    38 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    39 
    40 
    41 # Dll rule - builds the target dll.
    42 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
    43     $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    44 
    45 
    46 # Linker file - creates the parameter file passed on to the linker.
    47 $(OBJDIR)\$(TARGET).lrf: makefile
    48     @echo Creating file <<$@
    49 /OUT:$(OBJDIR)\$(TARGET).dll
    50 /MAP:$(OBJDIR)\$(TARGET).map
    51 $(OBJS)
    52 OS2386.LIB
    53 $(PDWIN32_LIB)/WSOCK32.LIB
    54 $(RTLLIB_O)
    55 $(PDWIN32_LIB)/$(ODINCRT).lib
    56 $(PDWIN32_LIB)/kernel32.lib
    57 $(TARGET).def
    58 <<keep
    59 
    60 
    61 # Dep rule - makes depenencies for C, C++ and Asm files.
    62 dep:
    63     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    64         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    65 
    66 
     42#
    6743# Includes the common rules.
     44#
    6845!include $(PDWIN32_INCLUDE)/pdwin32.post
    6946
Note: See TracChangeset for help on using the changeset viewer.