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

    r4308 r4624  
    1 # $Id: makefile,v 1.5 2000-09-22 10:43:31 bird Exp $
     1# $Id: makefile,v 1.6 2000-11-19 08:58:14 bird Exp $
    22
    33#
     
    77#
    88
     9
     10#
    911# Directory macros.
     12#
    1013PDWIN32_INCLUDE = ..\..\..\..\..\include
    1114PDWIN32_LIB     = ..\..\..\..\..\lib
     
    1417
    1518
    16 # Local cleanup only.
    17 LOCALCLEAN = 1
     19#
     20# Tell buildenvironmet to build an object library and to invoke additional dep rule.
     21#
     22LIBTARGET = 1
     23ADDITIONAL_DEP = mydep
    1824
    1925
     26#
    2027# Compiler, tools, and interference rules.
     28#
    2129!include $(PDWIN32_INCLUDE)/pdwin32.mk
    2230
    2331
    24 # Flag overloads and local macros.
    25 CLEANEXTRAS =
    26 
    27 CINCLUDE    = -I..\internals -I..\nurbtess -I..\..\..\mesa\GL -I..\..\include
    28 CDEFS       = -DSTANDALONE -DLIBRARYBUILD -DNDEBUG
    29 
    30 CFLAGS      = $(CFLAGS) $(CINCLUDE) $(CDEFS) -O-
    31 CXXFLAGS    = $(CXXFLAGS) $(CINCLUDE) $(CDEFS)
     32#
     33# Flag overloads.
     34#
     35CINCLUDES   = $(CINCLUDES) -I..\internals -I..\nurbtess -I..\..\..\mesa\GL -I..\..\include
     36CDEFINES    = $(CDEFINES)  -DSTANDALONE -DLIBRARYBUILD -DNDEBUG
     37CFLAGS      = $(CFLAGS) -O-
    3238
    3339
    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)\arc.obj \
     
    5967$(OBJDIR)\mesher.obj \
    6068$(OBJDIR)\monotonizer.obj \
    61 $(OBJDIR)\mycode.obj
    62 
    63 OBJS2 = \
     69$(OBJDIR)\mycode.obj \
    6470$(OBJDIR)\nurbsinterfac.obj \
    6571$(OBJDIR)\nurbstess.obj \
     
    8389
    8490
     91#
    8592# Target name - name of the library without extention and path.
     93#
    8694TARGET = internals
    8795
    8896
    89 # Create all libraries (not importlibraries)
    90 all:    $(OBJDIR) \
    91         $(OBJDIR)\$(TARGET).lib
     97#
     98# Includes the common rules.
     99#
     100!include $(PDWIN32_INCLUDE)/pdwin32.post
    92101
    93102
    94 # Create all libraries (not importlibraries)
    95 libs: all
    96 
    97 
    98 # Lib rule - build importlibrary (and evt. other libs)
    99 $(OBJDIR)\$(TARGET).lib: $(OBJS) $(OBJS2)
    100     $(RM) $@
    101     $(ILIB) $(ILIBFLAGS) $@ $(OBJS);
    102     $(ILIB) $(ILIBFLAGS) $@ $(OBJS2);
    103 
    104 
    105 # Dep rule - makes depenencies for C, C++ and Asm files.
    106 dep:
    107     $(DEPEND) $(CINCLUDE) *.c *.cpp *.h *.asm *.inc  \
     103#
     104# Additional dep rule - adds dependencies for some additional headers.
     105#
     106mydep:
     107    $(DEPEND) -a $(CINCLUDES) \
    108108        ..\nurbtess\*.h ..\..\..\mesa\GL\*.h ..\..\include\*.h
    109109
    110 
    111 # Includes the common rules.
    112 !include $(PDWIN32_INCLUDE)/pdwin32.post
    113 
Note: See TracChangeset for help on using the changeset viewer.