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/opengl/glu/tess/makefile

    r3031 r4624  
    1 # $Id: makefile,v 1.4 2000-03-06 23:33:50 bird Exp $
     1# $Id: makefile,v 1.5 2000-11-19 08:58:14 bird Exp $
    22
    33#
     
    77#
    88
     9#
    910# Directory macros.
     11#
    1012PDWIN32_INCLUDE = ..\..\..\..\include
    1113PDWIN32_LIB     = ..\..\..\..\lib
     
    1416
    1517
    16 # Local cleanup only.
    17 LOCALCLEAN = 1
     18#
     19# Tell buildenvironmet to build an object library and to invoke additional dep rule.
     20#
     21LIBTARGET = 1
     22ADDITIONAL_DEP = mydep
    1823
    1924
     25#
    2026# Compiler, tools, and interference rules.
     27#
    2128!include $(PDWIN32_INCLUDE)/pdwin32.mk
    2229
    2330
    24 # Flag overloads and local macros.
    25 CLEANEXTRAS =
    26 
    27 CINCLUDE    = -I.. -I..\..\mesa -I..\include -I..\..\mesa\GL
    28 CDEFS       = -DNDEBUG -Tdp
    29 CFLAGS      = $(CFLAGS) $(CINCLUDE) $(CDEFS) -DNDEBUG
    30 CXXFLAGS    = $(CXXFLAGS) $(CINCLUDE) -$(CDEFS) -DNDEBUG
     31#
     32# Flag overloads.
     33#
     34CINCLUDES   = $(CINCLUDES) -I.. -I..\..\mesa -I..\include -I..\..\mesa\GL
     35CDEFINES    = $(CDEFINES) -DNDEBUG
     36CFLAGS      = $(CFLAGS) -Tdp
     37CXXFLAGS    = $(CXXFLAGS) -Tdp
    3138
    3239
    33 
    34 # Object files. All objects should be prefixed with $(OBJDIR)!
     40#
     41# Object files. Prefix with OBJDIR and one space before the '\'.
     42#
    3543OBJS= \
    3644$(OBJDIR)\dict.obj \
     
    4654
    4755
     56#
    4857# Target name - name of the library without extention and path.
     58#
    4959TARGET = tess
    5060
    5161
    52 # Create all libraries (not importlibraries)
    53 all:    $(OBJDIR) \
    54         $(OBJDIR)\$(TARGET).lib
     62#
     63# Includes the common rules.
     64#
     65!include $(PDWIN32_INCLUDE)/pdwin32.post
    5566
    5667
    57 # Create all libraries (not importlibraries)
    58 libs: all
    59 
    60 
    61 # Lib rule - build importlibrary (and evt. other libs)
    62 $(OBJDIR)\$(TARGET).lib: $(OBJS)
    63     $(RM) $@
    64     $(ILIB) $(ILIBFLAGS) $@ $(OBJS);
    65 
    66 
    67 # Dep rule - makes depenencies for C, C++ and Asm files.
    68 dep:
    69     $(DEPEND) $(CINCLUDE) *.c *.cpp *.h *.asm *.inc  \
     68#
     69# Additional dep rule - adds dependencies for some additional headers.
     70#
     71mydep:
     72    $(DEPEND) -a $(CINCLUDES) \
    7073        ..\..\mesa\*.h ..\*.h ..\include\*.h
    7174
    72 
    73 # Includes the common rules.
    74 !include $(PDWIN32_INCLUDE)/pdwin32.post
    75 
Note: See TracChangeset for help on using the changeset viewer.