Changeset 3031 for trunk/src/NTDLL


Ignore:
Timestamp:
Mar 7, 2000, 12:39:20 AM (26 years ago)
Author:
bird
Message:

Makefiles are updated to new style.
Odin32 resource files are renamed to *.orc and most have changed name to avoid
name clashes for object files.

Location:
trunk/src/NTDLL
Files:
1 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/NTDLL/makefile

    r2712 r3031  
    1 # $Id: makefile,v 1.20 2000-02-09 23:46:52 bird Exp $
     1# $Id: makefile,v 1.21 2000-03-06 23:38:14 bird Exp $
    22
    33#
    4 # PD-Win32 API
     4# Odin32 API
    55#
    66#       NTDLL.dll makefile
    77#
    88
     9# Directory macros.
    910PDWIN32_INCLUDE = ..\..\include
    10 PDWIN32_LIB = ..\..\lib
    11 PDWIN32_BIN = ..\..\bin
    12 PDWIN32_TOOLS = ..\..\tools\bin
     11PDWIN32_LIB     = ..\..\lib
     12PDWIN32_BIN     = ..\..\$(OBJDIR)
     13PDWIN32_TOOLS   = ..\..\tools\bin
    1314
    1415
     16# Compiler, tools, and interference rules.
    1517!include $(PDWIN32_INCLUDE)/pdwin32.mk
    1618
    1719
    18 CFLAGS = $(CFLAGS) -I$(PDWIN32_INCLUDE)
    19 CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE)
     20# Flag overloads and local macros.
     21CLEANEXTRAS = ntdllrsrc.asm
    2022
    2123
    22 OBJS = NTDLL.obj\
    23        file.obj\
    24        exception.obj\
    25        nt.obj\
    26        om.obj\
    27        reg.obj\
    28        rtl.obj\
    29        rtlstr.obj\
    30        sec.obj\
    31        sync.obj\
    32        initterm.obj\
    33        time.obj\
    34        unknown.obj\
    35        arith64.obj\
    36        regfunc.obj resource.obj
     24# Object files. All objects should be prefixed with $(OBJDIR)!
     25OBJS = \
     26$(OBJDIR)\NTDLL.obj \
     27$(OBJDIR)\file.obj \
     28$(OBJDIR)\exception.obj \
     29$(OBJDIR)\nt.obj \
     30$(OBJDIR)\om.obj \
     31$(OBJDIR)\reg.obj \
     32$(OBJDIR)\rtl.obj \
     33$(OBJDIR)\rtlstr.obj \
     34$(OBJDIR)\sec.obj \
     35$(OBJDIR)\sync.obj \
     36$(OBJDIR)\initterm.obj \
     37$(OBJDIR)\time.obj \
     38$(OBJDIR)\unknown.obj \
     39$(OBJDIR)\arith64.obj \
     40$(OBJDIR)\regfunc.obj \
     41$(OBJDIR)\ntdllrsrc.obj
    3742
    3843
     44# Target name - name of the dll without extention and path.
    3945TARGET = NTDLL
    4046
    41 all: $(TARGET).dll $(TARGET).lib
     47
     48# All rule - build objs, target dll, copies dll to bin and makes libs.
     49all:    $(OBJDIR) \
     50        $(OBJDIR)\$(TARGET).dll \
     51        $(PDWIN32_BIN)\$(TARGET).dll \
     52        lib
    4253
    4354
    44 $(TARGET).dll: $(OBJS) $(TARGET).def
    45     $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj $(TARGET).def $(PDWIN32_LIB)\kernel32.lib $(PDWIN32_LIB)\user32.lib $(PDWIN32_LIB)/kernel32.lib $(PDWIN32_LIB)/crtdll.lib $(PDWIN32_LIB)/odincrt.lib OS2386.LIB $(RTLLIB_O)
    46     $(CP) $@ $(PDWIN32_BIN)
     55# Lib rule - build importlibrary (and evt. other libs)
     56lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    4757
    4858
    49 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    50 
    51 $(PDWIN32_LIB)\$(TARGET).lib: $(TARGET).lib
    52     $(CP) $** $@
    53 
    54 $(TARGET).lib: $(TARGET)exp.def
    55     $(IMPLIB) $(IMPLIBFLAGS) $@ $(TARGET)exp.def
    56     $(CP) $@ $(PDWIN32_LIB)
    57 
    58 $(TARGET)exp.def: $(TARGET).def
    59     $(IMPDEF) $** $@
     59# Dll rule - builds the target dll.
     60$(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
     61    -4 $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    6062
    6163
    62 resource.asm: $(TARGET).rc
    63     $(RC) $(RCFLAGS) -o resource.asm $(TARGET).rc
     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)
     70sbsstub.obj
     71$(PDWIN32_LIB)/kernel32.lib
     72$(PDWIN32_LIB)/user32.lib
     73$(PDWIN32_LIB)/kernel32.lib
     74$(PDWIN32_LIB)/crtdll.lib
     75$(PDWIN32_LIB)/odincrt.lib
     76OS2386.LIB
     77$(RTLLIB_O)
     78$(TARGET).def
     79<<keep
    6480
    6581
     82# Dep rule - makes depenencies for C, C++ and Asm files.
    6683dep:
    6784    $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    6885        *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    6986
    70 !ifndef NODEP
    71 !include .depend
    72 !endif
    7387
     88# Includes the common rules.
     89!include $(PDWIN32_INCLUDE)/pdwin32.post
    7490
    75 clean:
    76     $(RM) *.obj *.lib *.dll *.map *.pch \
    77         $(PDWIN32_LIB)\$(TARGET).lib $(PDWIN32_BIN)\$(TARGET).dll \
    78         resource.asm $(TARGET)exp.def
    79 
Note: See TracChangeset for help on using the changeset viewer.