Changeset 3031 for trunk/src/kernel32


Ignore:
Timestamp:
Mar 7, 2000, 12:39:20 AM (25 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/kernel32
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/makefile

    r3019 r3031  
    1 # $Id: makefile,v 1.87 2000-03-04 23:47:00 sandervl Exp $
     1# $Id: makefile,v 1.88 2000-03-06 23:34:18 bird Exp $
    22
    33#
     
    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
    14 #SvL: Remove this when everything has been converted to the new build rules
    15 NEWBUILD=1
    1615
     16# Compiler, tools, and interference rules.
    1717!include $(PDWIN32_INCLUDE)/pdwin32.mk
    1818
    19 RESOURCES= kernelrsrc
    20 CFLAGS   = $(CFLAGS) -I$(PDWIN32_INCLUDE)
    21 CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE)
    2219
    23 !ifdef NODEBUGINFO
    24 CFLAGS = $(CFLAGS) -DDEFAULT_LOGGING_OFF
    25 CXXFLAGS = $(CXXFLAGS) -DDEFAULT_LOGGING_OFF
    26 !endif
     20# Flag overloads and local macros.
     21CLEANEXTRAS = kernelrsrc.asm
    2722
     23
     24# Object files. All objects should be prefixed with $(OBJDIR)!
    2825OBJS = \
    2926$(OBJDIR)\KERNEL32.OBJ \
     
    9895$(OBJDIR)\fileio.obj \
    9996$(OBJDIR)\hmtoken.obj \
    100 $(OBJDIR)\$(RESOURCES).obj \
    10197$(OBJDIR)\atom.obj \
    10298$(OBJDIR)\disk.obj \
     
    120116$(OBJDIR)\oslibdebug.obj \
    121117$(OBJDIR)\dbglocal.obj \
    122 $(OBJDIR)\registry.obj
     118$(OBJDIR)\registry.obj \
     119$(OBJDIR)\kernelrsrc.obj
    123120
     121
     122# Target name - name of the dll without extention and path.
    124123TARGET = kernel32
    125124
    126 all: $(OBJDIR) $(TARGET).dll $(TARGET).LIB
    127125
    128 $(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
    129         $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    130         rc -r console.rc console.res
    131         rc console.res $@
    132         $(CP) $@ $(PDWIN32_BIN)
     126# All rule - build objs, target dll, copies dll to bin and makes libs.
     127all:    $(OBJDIR) \
     128        $(OBJDIR)\$(TARGET).dll \
     129        $(PDWIN32_BIN)\$(TARGET).dll \
     130        lib
    133131
     132
     133# Lib rule - build importlibrary (and evt. other libs)
     134lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
     135
     136
     137# Dll rule - builds the target dll.
     138$(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf \
     139                          $(OBJDIR)\console.res
     140    $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
     141    $(OS2RC) $(OBJDIR)\console.res $@
     142
     143
     144# Linker file - creates the parameter file passed on to the linker.
    134145$(OBJDIR)\$(TARGET).lrf: makefile
    135         @echo Creating file <<$(OBJDIR)\$(@B).lrf
     146    @echo Creating file <<$(OBJDIR)\$(@B).lrf
     147/OUT:$(OBJDIR)\$(TARGET).dll
     148/MAP:$(OBJDIR)\$(TARGET).map
    136149$(OBJS)
    137150$(PDWIN32_LIB)\odincrt.lib
     
    144157<<keep
    145158
    146 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    147159
    148 $(RESOURCES).asm: kernel32.rc
    149     $(RC) $(RCFLAGS) -o $(RESOURCES).asm kernel32.rc
    150 
     160# Dep rule - makes depenencies for C, C++ and Asm files.
    151161dep:
    152162    $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    153163        *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    154164
     165
     166# Includes the common rules.
    155167!include $(PDWIN32_INCLUDE)/pdwin32.post
     168
Note: See TracChangeset for help on using the changeset viewer.