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/nurbs/interface/makefile

    r3031 r4624  
    1 # $Id: makefile,v 1.6 2000-03-06 23:33:49 bird Exp $
     1# $Id: makefile,v 1.7 2000-11-19 08:58:13 bird Exp $
    22#
    33# PD-Win32 API
     
    66#
    77
     8
     9#
    810# Directory macros.
     11#
    912PDWIN32_INCLUDE = ..\..\..\..\..\include
    1013PDWIN32_LIB     = ..\..\..\..\..\lib
     
    1316
    1417
    15 # Local cleanup only.
    16 LOCALCLEAN = 1
     18#
     19# Tell buildenvironmet to build an object library and to invoke additional dep rule.
     20#
     21LIBTARGET = 1
     22ADDITIONAL_DEP = mydep
    1723
    1824
     25#
    1926# Compiler, tools, and interference rules.
     27#
    2028!include $(PDWIN32_INCLUDE)/pdwin32.mk
    2129
    2230
    23 # Flag overloads and local macros.
    24 CLEANEXTRAS =
    25 
    26 CINCLUDE    = -I..\..\..\mesa\GL -I..\.. -I..\internals -I..\nurbtess \
    27               -I..\..\include  -I..\..\..\mesa
    28 
    29 CFLAGS      = $(CFLAGS) $(CINCLUDE)  -DNDEBUG
    30 CXXFLAGS    = $(CXXFLAGS) $(CINCLUDE) -DNDEBUG
     31#
     32# Flag overloads.
     33#
     34CINCLUDES   = $(CINCLUDES) -I..\..\..\mesa\GL -I..\.. -I..\internals \
     35              -I..\nurbtess -I..\..\include  -I..\..\..\mesa
     36CDEFINES    = $(CDEFINES) -DNDEBUG
    3137
    3238
    33 # Object files. All objects should be prefixed with $(OBJDIR)!
     39#
     40# Object files. Prefix with OBJDIR and one space before the '\'.
     41#
    3442OBJS = \
    3543$(OBJDIR)\glcurveval.obj \
     
    4452
    4553
     54#
    4655# Target name - name of the library without extention and path.
    47 TARGET = interface
     56#
     57TARGET  = interface
    4858
    4959
    50 # Create all libraries (not importlibraries)
    51 all:    $(OBJDIR) \
    52         $(OBJDIR)\$(TARGET).lib
     60#
     61# Includes the common rules.
     62#
     63!include $(PDWIN32_INCLUDE)/pdwin32.post
    5364
    5465
    55 # Create all libraries (not importlibraries)
    56 libs: all
    57 
    58 
    59 # Lib rule - build importlibrary (and evt. other libs)
    60 $(OBJDIR)\$(TARGET).lib: $(OBJS)
    61     $(RM) $@
    62     $(ILIB) $(ILIBFLAGS) $@ $(OBJS);
    63 
    64 
    65 # Dep rule - makes depenencies for C, C++ and Asm files.
    66 dep:
    67     $(DEPEND) $(CINCLUDE) *.c *.cpp *.h *.asm *.inc \
     66#
     67# Additional dep rule - adds dependencies for some additional headers.
     68#
     69mydep:
     70    $(DEPEND) -a $(CINCLUDES) \
    6871        ..\internals\*.h ..\nurbtess\*.h ..\..\..\mesa\GL\*.h
    6972
    70 
    71 # Includes the common rules.
    72 !include $(PDWIN32_INCLUDE)/pdwin32.post
    73 
Note: See TracChangeset for help on using the changeset viewer.