Changeset 4717 for trunk/src/ddraw/new


Ignore:
Timestamp:
Dec 3, 2000, 12:45:13 AM (25 years ago)
Author:
bird
Message:

New makefile style. (addjustments)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ddraw/new/makefile

    r3345 r4717  
    1 # $Id: makefile,v 1.1 2000-04-07 18:21:13 mike Exp $
     1# $Id: makefile,v 1.2 2000-12-02 23:38:54 bird Exp $
     2
    23#
    3 # ddraw.dll makefile
     4# Odin32 API
    45#
    5 # Copyright 1998 Sander van Leeuwen
    6 #           1999 Markus Montkowski
    7 #
    8 # Project Odin Software License can be found in LICENSE.TXT
    9 #
     6#       ddraw.dll makefile
    107#
    118
    12 # Directory macros.
    13 PDWIN32_INCLUDE = ..\..\..\include
    14 PDWIN32_LIB     = ..\..\..\lib
    15 PDWIN32_BIN     = ..\..\..\$(OBJDIR)
    16 PDWIN32_TOOLS   = ..\..\..\tools\bin
     9
     10#
     11# Compiler, tools, and interference rules.
     12#
     13!include ../../../makefile.inc
    1714
    1815
    19 # Compiler, tools, and interference rules.
    20 !include $(PDWIN32_INCLUDE)/pdwin32.mk
    21 
    22 
    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)!
     16#
     17# Object files. Prefix with OBJDIR and one space before the '\'.
     18#
    2919OBJS = \
    3020$(OBJDIR)\ddraw.obj \
     
    4737
    4838
     39#
     40# Libraries. One space before the '\'.
     41#
     42LIBS = \
     43$(ODIN32_LIB)/ole32.lib \
     44$(ODIN32_LIB)/advapi32.lib \
     45$(ODIN32_LIB)/gdi32.lib \
     46$(ODIN32_LIB)/comctl32.lib \
     47$(ODIN32_LIB)/kernel32.lib \
     48$(ODIN32_LIB)/$(ODINCRT).lib \
     49$(ODIN32_LIB)/user32.lib \
     50mmpm2.lib \
     51OS2386.LIB \
     52$(RTLLIB_O)
     53
     54
     55#
    4956# Target name - name of the dll without extention and path.
     57#
    5058TARGET = ddraw
    5159
    5260
    53 # All rule - build objs, target dll, copies dll to bin and makes libs.
    54 all:    $(OBJDIR) \
    55         $(OBJDIR)\$(TARGET).dll \
    56         $(PDWIN32_BIN)\$(TARGET).dll \
    57         lib
     61#
     62# Includes the common rules.
     63#
     64!include $(ODIN32_POST_INC)
    5865
    59 
    60 # Lib rule - build importlibrary (and evt. other libs)
    61 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    62 
    63 
    64 # Dll rule - builds the target dll.
    65 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
    66     $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    67 
    68 
    69 # Linker file - creates the parameter file passed on to the linker.
    70 $(OBJDIR)\$(TARGET).lrf: makefile
    71     @echo Creating file <<$@
    72 /OUT:$(OBJDIR)\$(TARGET).dll
    73 /MAP:$(OBJDIR)\$(TARGET).map
    74 $(OBJS)
    75 $(PDWIN32_LIB)/ole32.lib
    76 $(PDWIN32_LIB)/advapi32.lib
    77 $(PDWIN32_LIB)/gdi32.lib
    78 $(PDWIN32_LIB)/comctl32.lib
    79 $(PDWIN32_LIB)/kernel32.lib
    80 $(PDWIN32_LIB)/odincrt.lib
    81 $(PDWIN32_LIB)/user32.lib
    82 mmpm2.lib
    83 OS2386.LIB
    84 $(RTLLIB_O)
    85 $(TARGET).def
    86 <<keep
    87 
    88 
    89 # Dep rule - makes depenencies for C, C++ and Asm files.
    90 dep:
    91     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    92         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    93 
    94 
    95 # Includes the common rules.
    96 !include $(PDWIN32_INCLUDE)/pdwin32.post
    97 
Note: See TracChangeset for help on using the changeset viewer.