Changeset 4624 for trunk/src/odincrt


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

    r3864 r4624  
    1 # $Id: makefile,v 1.18 2000-07-19 19:05:11 sandervl Exp $
     1# $Id: makefile,v 1.19 2000-11-19 09:06:58 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# Tell the buildenvironment not to
     11#
     12NOTEXPDEF   = 1
    1413
    1514
     15#
    1616# Compiler, tools, and interference rules.
    17 !include $(PDWIN32_INCLUDE)/pdwin32.mk
     17#
     18!include ../../include/pdwin32.mk
    1819
    1920
    20 # Flag overloads and local macros.
    21 CLEANEXTRAS = lz32rsrc.asm
    22 NOTEXPDEF   = 1
    23 
     21#
     22# Overrides.
     23#
    2424CXXFLAGS    = $(CXXFLAGS_ODINCRT)
     25LD2FLAGS    = $(LD2FLAGS_ODINCRT)
     26CDEFINES    = $(CDEFINES_ODINCRT)
    2527IMPLIBFLAGS = $(IMPLIBFLAGS) /NOIgnoreCase
    2628
     29!ifdef DEBUG
     30DBG=d
     31!else
     32DBG=
     33!endif
     34!ifdef VAC3
     35DEFFILE = odincrt$(DBG).def
     36!endif
    2737!ifdef VAC36
    28 !ifdef DEBUG
    29 RUNTIMELIBDEF   = odin36d.def
    30 !else
    31 RUNTIMELIBDEF   = odin36.def
     38DEFFILE = odin36$(DBG).def
    3239!endif
    33 !else
    34 !ifdef DEBUG
    35 RUNTIMELIBDEF   = odincrtd.def
    36 !else
    37 RUNTIMELIBDEF   = odincrt.def
    38 !endif
     40!ifndef DEFFILE
     41!error "not supported on this compiler yet."
    3942!endif
    4043
    4144
     45#
    4246# Object files. All objects should be prefixed with $(OBJDIR)!
     47#
    4348OBJS = \
    4449$(OBJDIR)\odincrt.obj \
     
    4954
    5055
     56#
     57# Libraries. One space before the '\'.
     58#
     59LIBS =
     60
     61
     62#
    5163# Target name - name of the dll without extention and path.
     64#
    5265TARGET = $(ODINCRT)
    5366
    5467
    55 # All rule - build objs, target dll, copies dll to bin and makes libs.
    56 all:    $(OBJDIR) \
    57         $(OBJDIR)\$(TARGET).dll \
    58         $(PDWIN32_BIN)\$(TARGET).dll \
    59         lib
    60 
    61 # Lib rule - build importlibrary (and evt. other libs)
    62 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    63 
    64 
    65 # ImpLib rule - build importlibrary (and evt. other libs)
    66 $(TARGET).lib: $(TARGET).def
    67     $(IMPLIB) $(IMPLIBFLAGS) $@ $**
    68 
    69 
    70 # Dll rule - builds the target dll.
    71 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(RUNTIMELIBDEF) $(OBJDIR)\$(TARGET).lrf
    72     $(LD2) $(LD2FLAGS_ODINCRT) @$(OBJDIR)\$(TARGET).lrf
    73 
    74 
    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 $(RUNTIMELIBDEF)
    82 <<keep
    83 
    84 
    85 # Dep rule - makes depenencies for C, C++ and Asm files.
    86 dep:
    87     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    88         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    89 
    90 
     68#
    9169# Includes the common rules.
     70#
    9271!include $(PDWIN32_INCLUDE)/pdwin32.post
    9372
Note: See TracChangeset for help on using the changeset viewer.