Changeset 4624 for trunk/src/DPlayX


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/DPlayX/makefile

    r4446 r4624  
    1 # $Id: makefile,v 1.11 2000-10-06 19:49:06 hugh Exp $
     1# $Id: makefile,v 1.12 2000-11-19 09:18:20 bird Exp $
    22
    33#
     
    77#
    88
    9 # Directory macros.
    10 PDWIN32_INCLUDE = ..\..\include
    11 PDWIN32_LIB     = ..\..\lib
    12 PDWIN32_BIN     = ..\..\$(OBJDIR)
    13 PDWIN32_TOOLS   = ..\..\tools\bin
     9
     10#
     11# Compiler, tools, and interference rules.
     12#
     13!include ../../include/pdwin32.mk
    1414
    1515
    16 # Compiler, tools, and interference rules.
    17 !include $(PDWIN32_INCLUDE)/pdwin32.mk
    18 
    19 
    20 # Flag overloads and local macros.
    21 CLEANEXTRAS = dsoundrsrc.asm
    22 
    23 
    24 # Object files. All objects should be prefixed with $(OBJDIR)!
     16#
     17# Object files. Prefix with OBJDIR and one space before the '\'.
     18#
    2519OBJS = \
    2620$(OBJDIR)\dpclassfactory.obj \
     
    3630
    3731
     32#
     33# Libraries. One space before the '\'.
     34#
     35LIBS = \
     36$(PDWIN32_LIB)/kernel32.lib \
     37$(PDWIN32_LIB)/$(ODINCRT).lib \
     38$(PDWIN32_LIB)/advapi32.lib \
     39OS2386.LIB \
     40$(RTLLIB_O) \
     41$(PDWIN32_LIB)/user32.lib \
     42$(PDWIN32_LIB)/ole32.lib \
     43$(PDWIN32_LIB)/winmm.lib \
     44$(PDWIN32_LIB)/ntdll.lib \
     45$(PDWIN32_LIB)/msvfw32.lib
    3846
     47
     48#
    3949# Target name - name of the dll without extention and path.
     50#
    4051TARGET = dplayx
    4152
    4253
    43 # All rule - build objs, target dll, copies dll to bin and makes libs.
    44 all:    $(OBJDIR) \
    45         $(OBJDIR)\$(TARGET).dll \
    46         $(PDWIN32_BIN)\$(TARGET).dll \
    47         lib
    48 
    49 
    50 # Lib rule - build importlibrary (and evt. other libs)
    51 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    52 
    53 
    54 # Dll rule - builds the target dll.
    55 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
    56     $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    57 
    58 
    59 # Linker file - creates the parameter file passed on to the linker.
    60 $(OBJDIR)\$(TARGET).lrf: makefile
    61     @echo Creating file <<$@
    62 /OUT:$(OBJDIR)\$(TARGET).dll
    63 /MAP:$(OBJDIR)\$(TARGET).map
    64 $(OBJS)
    65 $(PDWIN32_LIB)/kernel32.lib
    66 $(PDWIN32_LIB)/$(ODINCRT).lib
    67 $(PDWIN32_LIB)/advapi32.lib
    68 OS2386.LIB
    69 $(RTLLIB_O)
    70 $(PDWIN32_LIB)/user32.lib
    71 $(PDWIN32_LIB)/ole32.lib
    72 $(PDWIN32_LIB)/winmm.lib
    73 $(PDWIN32_LIB)/ntdll.lib
    74 $(PDWIN32_LIB)/msvfw32.lib
    75 $(TARGET).def
    76 <<keep
    77 
    78 
    79 # Dep rule - makes depenencies for C, C++ and Asm files.
    80 dep:
    81     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    82         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    83 
    84 
     54#
    8555# Includes the common rules.
     56#
    8657!include $(PDWIN32_INCLUDE)/pdwin32.post
    8758
Note: See TracChangeset for help on using the changeset viewer.