Changeset 3031 for trunk/src/ddraw


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

Legend:

Unmodified
Added
Removed
  • trunk/src/ddraw/makefile

    r2712 r3031  
    1 # $Id: makefile,v 1.22 2000-02-09 23:46:54 bird Exp $
     1# $Id: makefile,v 1.23 2000-03-06 23:38:34 bird Exp $
    22#
    33# ddraw.dll makefile
     
    1010#
    1111
     12# Directory macros.
    1213PDWIN32_INCLUDE = ..\..\include
    13 PDWIN32_LIB = ..\..\lib
    14 PDWIN32_BIN = ..\..\bin
    15 PDWIN32_TOOLS = ..\..\tools\bin
     14PDWIN32_LIB     = ..\..\lib
     15PDWIN32_BIN     = ..\..\$(OBJDIR)
     16PDWIN32_TOOLS   = ..\..\tools\bin
    1617
    1718
     19# Compiler, tools, and interference rules.
    1820!include $(PDWIN32_INCLUDE)/pdwin32.mk
    1921
    20 ASFLAGS = -Sc -Sv:ALP
    2122
    22 CFLAGS = $(CFLAGS) -I$(PDWIN32_INCLUDE);
    23 CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE);
     23# Flag overloads and local macros.
     24CLEANEXTRAS = ddrawrsrc.asm
     25ASFLAGS     = -Sc -Sv:ALP
    2426
     27
     28# Object files. All objects should be prefixed with $(OBJDIR)!
     29OBJS = \
     30$(OBJDIR)\ddraw.obj \
     31$(OBJDIR)\os2ddraw.obj \
     32$(OBJDIR)\os2clipper.obj \
     33$(OBJDIR)\os2d3d.obj \
     34$(OBJDIR)\iccio1.obj \
     35$(OBJDIR)\asmutil.obj \
     36$(OBJDIR)\os2surface.obj \
     37$(OBJDIR)\os2palette.obj \
     38$(OBJDIR)\os2palset.obj \
     39$(OBJDIR)\rectangle.obj \
     40$(OBJDIR)\initterm.obj \
     41$(OBJDIR)\os2util.obj \
     42$(OBJDIR)\bltFunc.obj \
     43$(OBJDIR)\fillfunc.obj \
     44$(OBJDIR)\colorconv.obj \
     45$(OBJDIR)\ddrawrsrc.obj
     46
     47
     48# Target name - name of the dll without extention and path.
    2549TARGET = ddraw
    2650
    27 OBJS =  ddraw.obj os2ddraw.obj os2clipper.obj os2d3d.obj iccio1.obj asmutil.obj\
    28         os2surface.obj os2palette.obj os2palset.obj rectangle.obj initterm.obj \
    29         os2util.obj bltFunc.obj fillfunc.obj colorconv.obj resource.obj
     51
     52# All rule - build objs, target dll, copies dll to bin and makes libs.
     53all:    $(OBJDIR) \
     54        $(OBJDIR)\$(TARGET).dll \
     55        $(PDWIN32_BIN)\$(TARGET).dll \
     56        lib
    3057
    3158
    32 LIBS =  $(PDWIN32_LIB)\ole32.lib $(PDWIN32_LIB)\advapi32.lib $(PDWIN32_LIB)\gdi32.lib \
    33         $(PDWIN32_LIB)\comctl32.lib $(PDWIN32_LIB)\kernel32.lib $(PDWIN32_LIB)\odincrt.lib \
    34         $(PDWIN32_LIB)\user32.lib mmpm2.lib OS2386.LIB $(RTLLIB_O)
    35 
    36 all: $(TARGET).dll $(TARGET).lib
     59# Lib rule - build importlibrary (and evt. other libs)
     60lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    3761
    3862
    39 $(TARGET).dll: $(OBJS) $(TARGET).def
    40     $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def $(LIBS)
    41     $(CP) $@ $(PDWIN32_BIN)
     63# Dll rule - builds the target dll.
     64$(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
     65    $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    4266
    4367
    44 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    45 
    46 $(PDWIN32_LIB)\$(TARGET).lib: $(TARGET).lib
    47     $(CP) $** $@
    48 
    49 $(TARGET).lib: $(TARGET)exp.def
    50     $(IMPLIB) $(IMPLIBFLAGS) $@ $**
    51     $(CP) $@ $(PDWIN32_LIB)
    52 
    53 $(TARGET)exp.def: $(TARGET).def
    54     $(IMPDEF) $** $@
     68# Linker file - creates the parameter file passed on to the linker.
     69$(OBJDIR)\$(TARGET).lrf: makefile
     70    @echo Creating file <<$@
     71/OUT:$(OBJDIR)\$(TARGET).dll
     72/MAP:$(OBJDIR)\$(TARGET).map
     73$(OBJS)
     74$(PDWIN32_LIB)/ole32.lib
     75$(PDWIN32_LIB)/advapi32.lib
     76$(PDWIN32_LIB)/gdi32.lib
     77$(PDWIN32_LIB)/comctl32.lib
     78$(PDWIN32_LIB)/kernel32.lib
     79$(PDWIN32_LIB)/odincrt.lib
     80$(PDWIN32_LIB)/user32.lib
     81mmpm2.lib
     82OS2386.LIB
     83$(RTLLIB_O)
     84$(TARGET).def
     85<<keep
    5586
    5687
    57 resource.asm: $(TARGET).rc
    58     $(RC) $(RCFLAGS) -o resource.asm $(TARGET).rc
    59 
    60 
     88# Dep rule - makes depenencies for C, C++ and Asm files.
    6189dep:
    6290    $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    6391        *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    6492
    65 !ifndef NODEP
    66 !include .depend
    67 !endif
    6893
     94# Includes the common rules.
     95!include $(PDWIN32_INCLUDE)/pdwin32.post
    6996
    70 clean:
    71     $(RM) *.obj *.lib *.dll *.map *.pch \
    72         $(PDWIN32_BIN)\$(TARGET).dll \
    73         $(PDWIN32_LIB)\$(TARGET).lib \
    74         resource.asm $(TARGET)exp.def
    75 
Note: See TracChangeset for help on using the changeset viewer.