Changeset 4624 for trunk/src/ddraw


Ignore:
Timestamp:
Nov 19, 2000, 10:27:40 AM (25 years ago)
Author:
bird
Message:

New makefile style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ddraw/makefile

    r3864 r4624  
    1 # $Id: makefile,v 1.24 2000-07-19 19:05:05 sandervl Exp $
     1# $Id: makefile,v 1.25 2000-11-19 09:20:50 bird Exp $
    22#
    33# ddraw.dll makefile
     
    1010#
    1111
    12 # Directory macros.
    13 PDWIN32_INCLUDE = ..\..\include
    14 PDWIN32_LIB     = ..\..\lib
    15 PDWIN32_BIN     = ..\..\$(OBJDIR)
    16 PDWIN32_TOOLS   = ..\..\tools\bin
    1712
    1813
     14#
    1915# Compiler, tools, and interference rules.
    20 !include $(PDWIN32_INCLUDE)/pdwin32.mk
     16#
     17!include ../../include/pdwin32.mk
    2118
    2219
    23 # Flag overloads and local macros.
    24 CLEANEXTRAS = ddrawrsrc.asm
    25 ASFLAGS     = -Sc -Sv:ALP
    26 
    27 
    28 # Object files. All objects should be prefixed with $(OBJDIR)!
     20#
     21# Object files. Prefix with OBJDIR and one space before the '\'.
     22#
    2923OBJS = \
    3024$(OBJDIR)\ddraw.obj \
     
    4640
    4741
     42#
     43# Libraries. One space before the '\'.
     44#
     45LIBS = \
     46$(PDWIN32_LIB)/ole32.lib \
     47$(PDWIN32_LIB)/advapi32.lib \
     48$(PDWIN32_LIB)/gdi32.lib \
     49$(PDWIN32_LIB)/comctl32.lib \
     50$(PDWIN32_LIB)/kernel32.lib \
     51$(PDWIN32_LIB)/$(ODINCRT).lib \
     52$(PDWIN32_LIB)/user32.lib \
     53mmpm2.lib \
     54os2386.lib \
     55$(RTLLIB_O)
     56
     57
     58#
    4859# Target name - name of the dll without extention and path.
     60#
    4961TARGET = ddraw
    5062
    5163
    52 # All rule - build objs, target dll, copies dll to bin and makes libs.
    53 all:    $(OBJDIR) \
    54         $(OBJDIR)\$(TARGET).dll \
    55         $(PDWIN32_BIN)\$(TARGET).dll \
    56         lib
    57 
    58 
    59 # Lib rule - build importlibrary (and evt. other libs)
    60 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    61 
    62 
    63 # Dll rule - builds the target dll.
    64 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
    65     $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    66 
    67 
    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
    81 mmpm2.lib
    82 OS2386.LIB
    83 $(RTLLIB_O)
    84 $(TARGET).def
    85 <<keep
    86 
    87 
    88 # Dep rule - makes depenencies for C, C++ and Asm files.
    89 dep:
    90     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    91         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    92 
    93 
     64#
    9465# Includes the common rules.
     66#
    9567!include $(PDWIN32_INCLUDE)/pdwin32.post
    9668
Note: See TracChangeset for help on using the changeset viewer.