Changeset 3031 for trunk/src/oleaut32


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

Legend:

Unmodified
Added
Removed
  • trunk/src/oleaut32/makefile

    r2712 r3031  
    1 # $Id: makefile,v 1.16 2000-02-09 23:46:59 bird Exp $
     1# $Id: makefile,v 1.17 2000-03-06 23:38:51 bird Exp $
     2
    23#
    3 # PD-Win32 API
     4# Odin32 API
    45#
    56#       ole32.dll makefile
    67#
    78
     9# Directory macros.
    810PDWIN32_INCLUDE = ..\..\include
    9 PDWIN32_LIB = ..\..\lib
    10 PDWIN32_BIN = ..\..\bin
    11 PDWIN32_TOOLS = ..\..\tools\bin
     11PDWIN32_LIB     = ..\..\lib
     12PDWIN32_BIN     = ..\..\$(OBJDIR)
     13PDWIN32_TOOLS   = ..\..\tools\bin
    1214
    1315
     16# Compiler, tools, and interference rules.
    1417!include $(PDWIN32_INCLUDE)/pdwin32.mk
    1518
    1619
    17 CFLAGS = $(CFLAGS) -I$(PDWIN32_INCLUDE)
    18 CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE)
     20# Flag overloads and local macros.
     21CLEANEXTRAS = oleaut32rsrc.asm
    1922
    2023!ifdef NODEBUGINFO
     
    2326!endif
    2427
    25 TARGET = olautos2
    26 ORGTARGET = oleaut32
    2728
    28 OBJS =  oleaut32.obj guid.obj \
    29         oList.obj \
    30         initterm.obj olefont.obj \
    31         variant.obj \
    32         ole2disp.obj parsedt.obj \
    33         iPicture.obj \
    34         iPictureNone.obj \
    35         iPictureBmp.obj \
    36         iPictureMeta.obj \
    37         iPictureIcon.obj \
    38         iPictureEmf.obj \
    39         typelib.obj \
    40         itypelib.obj \
    41         itypeinfo.obj \
    42         hash.obj \
    43         safearray.obj stubs.obj resource.obj
    44 
    45 all: $(TARGET).dll $(ORGTARGET).lib
     29# Object files. All objects should be prefixed with $(OBJDIR)!
     30OBJS = \
     31$(OBJDIR)\oleaut32.obj \
     32$(OBJDIR)\guid.obj \
     33$(OBJDIR)\oList.obj \
     34$(OBJDIR)\initterm.obj \
     35$(OBJDIR)\olefont.obj \
     36$(OBJDIR)\variant.obj \
     37$(OBJDIR)\ole2disp.obj \
     38$(OBJDIR)\parsedt.obj \
     39$(OBJDIR)\iPicture.obj \
     40$(OBJDIR)\iPictureNone.obj \
     41$(OBJDIR)\iPictureBmp.obj \
     42$(OBJDIR)\iPictureMeta.obj \
     43$(OBJDIR)\iPictureIcon.obj \
     44$(OBJDIR)\iPictureEmf.obj \
     45$(OBJDIR)\typelib.obj \
     46$(OBJDIR)\itypelib.obj \
     47$(OBJDIR)\itypeinfo.obj \
     48$(OBJDIR)\hash.obj \
     49$(OBJDIR)\safearray.obj \
     50$(OBJDIR)\stubs.obj \
     51$(OBJDIR)\oleaut32rsrc.obj
    4652
    4753
    48 $(TARGET).dll: $(OBJS) $(ORGTARGET).def
    49     $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(ORGTARGET).def \
    50           $(PDWIN32_LIB)\pmwinx.lib \
    51           $(PDWIN32_LIB)\advapi32.lib \
    52           $(PDWIN32_LIB)\kernel32.lib \
    53           $(PDWIN32_LIB)\user32.lib \
    54           $(PDWIN32_LIB)\ole32.lib \
    55           $(PDWIN32_LIB)\gdi32.lib \
    56           $(PDWIN32_LIB)/odincrt.lib OS2386.LIB $(RTLLIB_O)
    57     $(CP) $@ $(PDWIN32_BIN)
     54# Target and original target names - names of the dll without extention and path
     55TARGET      = olautos2
     56ORGTARGET   = oleaut32
    5857
    5958
     59# All rule - build objs, target dll, copies dll to bin and makes libs.
     60all:    $(OBJDIR) \
     61        $(OBJDIR)\$(TARGET).dll \
     62        $(PDWIN32_BIN)\$(TARGET).dll \
     63        lib
    6064
     65
     66# Lib rule - build importlibrary (and evt. other libs)
    6167lib: $(ORGTARGET).lib $(PDWIN32_LIB)\$(ORGTARGET).lib
    6268
    63 $(PDWIN32_LIB)\$(ORGTARGET).lib: $(ORGTARGET).lib
    64     $(CP) $** $@
    6569
    66 $(ORGTARGET).lib: $(ORGTARGET)exp.def
    67     $(IMPLIB) $(IMPLIBFLAGS) $@ $(ORGTARGET)exp.def
    68     $(CP) $@ $(PDWIN32_LIB)
    69 
    70 $(ORGTARGET)exp.def: $(ORGTARGET).def
    71     $(IMPDEF) $** $@
     70# Dll rule - builds the target dll.
     71$(OBJDIR)\$(TARGET).dll: $(OBJS) $(ORGTARGET).def $(OBJDIR)\$(TARGET).lrf
     72    $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    7273
    7374
    74 resource.asm: $(ORGTARGET).rc
    75     $(RC) $(RCFLAGS) -o resource.asm $(ORGTARGET).rc
     75# Linker file - creates the parameter file passed on to the linker.
     76$(OBJDIR)\$(TARGET).lrf: makefile
     77    @echo Creating file <<$@
     78/OUT:$(OBJDIR)\$(TARGET).dll
     79/MAP:$(OBJDIR)\$(TARGET).map
     80$(OBJS)
     81$(PDWIN32_LIB)/pmwinx.lib
     82$(PDWIN32_LIB)/advapi32.lib
     83$(PDWIN32_LIB)/kernel32.lib
     84$(PDWIN32_LIB)/user32.lib
     85$(PDWIN32_LIB)/ole32.lib
     86$(PDWIN32_LIB)/gdi32.lib
     87$(PDWIN32_LIB)/odincrt.lib
     88OS2386.LIB
     89$(RTLLIB_O)
     90$(ORGTARGET).def
     91<<keep
    7692
    7793
     94# Dep rule - makes depenencies for C, C++ and Asm files.
    7895dep:
    7996    $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    8097        *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    8198
    82 !ifndef NODEP
    83 !include .depend
    84 !endif
    8599
     100# Includes the common rules.
     101!include $(PDWIN32_INCLUDE)/pdwin32.post
    86102
    87 clean:
    88     $(RM) *.obj *.lib *.dll *.map *.pch \
    89         $(PDWIN32_BIN)\$(TARGET).dll $(PDWIN32_LIB)\$(ORGTARGET).lib \
    90         resource.asm $(ORGTARGET)exp.def
    91 
Note: See TracChangeset for help on using the changeset viewer.