Changeset 4624 for trunk/src/NTDLL


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

    r4245 r4624  
    1 # $Id: makefile,v 1.23 2000-09-12 19:16:37 sandervl Exp $
     1# $Id: makefile,v 1.24 2000-11-19 09:07:26 bird Exp $
    22
    33#
    44# Odin32 API
    55#
    6 #       NTDLL.dll makefile
     6#       ntdll.dll makefile
    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 = ntdllrsrc.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 = \
    26 $(OBJDIR)\NTDLL.obj \
     20$(OBJDIR)\ntdll.obj \
    2721$(OBJDIR)\file.obj \
    2822$(OBJDIR)\exception.obj \
     
    3933$(OBJDIR)\arith64.obj \
    4034$(OBJDIR)\regfunc.obj \
     35$(OBJDIR)\dllinitstub.obj \
    4136$(OBJDIR)\ntdllrsrc.obj
    4237
    4338
    44 # Target name - name of the dll without extention and path.
    45 TARGET = NTDLL
     39#
     40# Libraries. One space before the '\'.
     41#
     42LIBS = \
     43$(PDWIN32_LIB)/kernel32.lib \
     44$(PDWIN32_LIB)/user32.lib \
     45$(PDWIN32_LIB)/crtdll.lib \
     46$(PDWIN32_LIB)/$(ODINCRT).lib \
     47OS2386.LIB \
     48$(RTLLIB_O)
    4649
    4750
    48 # All rule - build objs, target dll, copies dll to bin and makes libs.
    49 all:    $(OBJDIR) \
    50         $(OBJDIR)\$(TARGET).dll \
    51         $(PDWIN32_BIN)\$(TARGET).dll \
    52         lib
     51#
     52# Target name - name of the dll without extention and path.
     53#
     54TARGET = ntdll
    5355
    5456
    55 # Lib rule - build importlibrary (and evt. other libs)
    56 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    57 
    58 
    59 # Dll rule - builds the target dll.
    60 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
    61     -4 $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    62 
    63 
    64 # Linker file - creates the parameter file passed on to the linker.
    65 $(OBJDIR)\$(TARGET).lrf: makefile
    66     @echo Creating file <<$@
    67 /OUT:$(OBJDIR)\$(TARGET).dll
    68 /MAP:$(OBJDIR)\$(TARGET).map
    69 $(OBJS)
    70 sbsstub.obj
    71 $(PDWIN32_LIB)/kernel32.lib
    72 $(PDWIN32_LIB)/user32.lib
    73 $(PDWIN32_LIB)/crtdll.lib
    74 $(PDWIN32_LIB)/$(ODINCRT).lib
    75 OS2386.LIB
    76 $(RTLLIB_O)
    77 $(TARGET).def
    78 <<keep
    79 
    80 
    81 # Dep rule - makes depenencies for C, C++ and Asm files.
    82 dep:
    83     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    84         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    85 
    86 
     57#
    8758# Includes the common rules.
     59#
    8860!include $(PDWIN32_INCLUDE)/pdwin32.post
    8961
Note: See TracChangeset for help on using the changeset viewer.