Changeset 3031 for trunk/src/user32


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/user32
Files:
1 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/Makefile

    r3019 r3031  
    1 # $Id: Makefile,v 1.67 2000-03-04 23:47:19 sandervl Exp $
     1# $Id: Makefile,v 1.68 2000-03-06 23:39:12 bird Exp $
    22
    33#
    4 # PD-Win32 API
     4# Odin32 API
    55#
    66#       user32.dll makefile
    77#
    88
     9# Directory macros.
    910PDWIN32_INCLUDE = ..\..\include
    1011PDWIN32_LIB     = ..\..\lib
    11 PDWIN32_BIN     = ..\..\bin
     12PDWIN32_BIN     = ..\..\$(OBJDIR)
    1213PDWIN32_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= resource
    20 CFLAGS   = $(CFLAGS)   -I$(PDWIN32_INCLUDE)
    21 CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE)
    2219
    23 TARGET = user32
     20# Flag overloads and local macros.
     21CLEANEXTRAS = user32rsrc.asm
    2422
     23
     24# Object files. All objects should be prefixed with $(OBJDIR)!
    2525OBJS = \
    2626$(OBJDIR)\user32.obj \
     
    8484$(OBJDIR)\dbglocal.obj \
    8585$(OBJDIR)\caret.obj \
    86 $(OBJDIR)\$(RESOURCES).obj \
    8786$(OBJDIR)\winproc.obj \
    8887$(OBJDIR)\text.obj \
     
    9190$(OBJDIR)\windlg.obj \
    9291$(OBJDIR)\win32wdesktop.obj \
    93 $(OBJDIR)\win32wbasenonclient.obj
     92$(OBJDIR)\win32wbasenonclient.obj \
     93$(OBJDIR)\user32rsrc.obj
    9494
    95 all: $(OBJDIR) $(TARGET).dll $(TARGET).lib
    9695
    97 $(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
    98         $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    99         $(CP) $@ $(PDWIN32_BIN)
     96# Target name - name of the dll without extention and path.
     97TARGET = user32
    10098
     99
     100# All rule - build objs, target dll, copies dll to bin and makes libs.
     101all:    $(OBJDIR) \
     102        $(OBJDIR)\$(TARGET).dll \
     103        $(PDWIN32_BIN)\$(TARGET).dll \
     104        lib
     105
     106
     107# Lib rule - build importlibrary (and evt. other libs)
     108lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
     109
     110
     111# Dll rule - builds the target dll.
     112$(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
     113    $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
     114
     115
     116# Linker file - creates the parameter file passed on to the linker.
    101117$(OBJDIR)\$(TARGET).lrf: makefile
    102         @echo Creating file <<$(OBJDIR)\$(@B).lrf
     118        @echo Creating file <<$@
     119/OUT:$(OBJDIR)\$(TARGET).dll
     120/MAP:$(OBJDIR)\$(TARGET).map
    103121$(OBJS)
    104122$(PDWIN32_LIB)/pmwinx.lib
     
    113131
    114132
    115 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    116 
    117 
    118 $(RESOURCES).asm: user32.rc
    119     $(RC) $(RCFLAGS) -o $(RESOURCES).asm user32.rc
    120 
     133# Dep rule - makes depenencies for C, C++ and Asm files.
    121134dep:
    122135    $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    123136        *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    124137
     138
     139# Includes the common rules.
    125140!include $(PDWIN32_INCLUDE)/pdwin32.post
    126141
Note: See TracChangeset for help on using the changeset viewer.