Ignore:
Timestamp:
Nov 19, 2000, 10:27:40 AM (25 years ago)
Author:
bird
Message:

New makefile style.

Location:
trunk/src/opengl/glu/nurbs
Files:
4 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 
  • 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 
  • trunk/src/opengl/glu/nurbs/makefile

    r3031 r4624  
    1 # $Id: makefile,v 1.6 2000-03-06 23:33:48 bird Exp $
     1# $Id: makefile,v 1.7 2000-11-19 08:58:13 bird Exp $
    22
    33#
     
    77#
    88
     9
     10#
    911# Directory macros.
     12#
    1013PDWIN32_INCLUDE = ..\..\..\..\include
    1114PDWIN32_LIB     = ..\..\..\..\lib
     
    1417
    1518
     19#
    1620# Compiler, tools, and interference rules.
     21#
    1722!include $(PDWIN32_INCLUDE)/pdwin32.mk
    1823
    1924
    20 # All, libs, dep and clean rule.
     25#
     26# Subdirectories to travers.
     27#
     28SUBDIRS = \
     29.\interface \
     30.\internals \
     31.\nurbtess
     32
     33
     34#
     35# Dummy all rule - nmake without target will make all targets of the first rule.
     36#
     37all_: all
     38
     39
     40#
     41# All, libs, dep and clean rules.
     42#
    2143clean dep all libs:
    22     cd interface
    23     $(MAKE_CMD) $@
    24     cd ..\internals
    25     $(MAKE_CMD) $@
    26     cd ..\nurbtess
    27     $(MAKE_CMD) $@
    28     cd ..
    29 
     44    $(DODIRS) "$(SUBDIRS)" $(MAKE_CMD) $@
  • trunk/src/opengl/glu/nurbs/nurbtess/makefile

    r3031 r4624  
    1 # $Id: makefile,v 1.4 2000-03-06 23:33:49 bird Exp $
     1# $Id: makefile,v 1.5 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 CFLAGS      = $(CFLAGS) $(CINCLUDE) -DNDEBUG
    29 CXXFLAGS    = $(CXXFLAGS) $(CINCLUDE) -DNDEBUG
     32#
     33# Flag overloads.
     34#
     35CINCLUDES   = $(CINCLUDES) -I..\internals -I..\nurbtess -I..\..\..\mesa\GL -I..\..\include
     36CDEFINES    = $(CDEFINES)  -DNDEBUG
    3037
    3138
    32 # Object files. All objects should be prefixed with $(OBJDIR)!
     39#
     40# Object files. Prefix with OBJDIR and one space before the '\'.
     41#
    3342OBJS = \
    3443$(OBJDIR)\directedLine.obj \
     
    5362
    5463
     64#
    5565# Target name - name of the library without extention and path.
     66#
    5667TARGET = nurbtess
    5768
    5869
    59 # Create all libraries (not importlibraries)
    60 all:    $(OBJDIR) \
    61         $(OBJDIR)\$(TARGET).lib
     70#
     71# Includes the common rules.
     72#
     73!include $(PDWIN32_INCLUDE)/pdwin32.post
    6274
    6375
    64 # Create all libraries (not importlibraries)
    65 libs: all
    66 
    67 
    68 # Lib rule - build importlibrary (and evt. other libs)
    69 $(OBJDIR)\$(TARGET).lib: $(OBJS)
    70     $(RM) $@
    71     $(ILIB) $(ILIBFLAGS) $@ $(OBJS);
    72 
    73 
    74 # Dep rule - makes depenencies for C, C++ and Asm files.
    75 dep:
    76     $(DEPEND) $(CINCLUDE) *.c *.cpp *.h *.asm *.inc  \
     76#
     77# Additional dep rule - adds dependencies for some additional headers.
     78#
     79mydep:
     80    $(DEPEND) -a $(CINCLUDES) \
    7781        ..\..\mesa\*.h ..\nurbtess\*.h ..\internals\*.h ..\..\include\*.h
    7882
    79 
    80 # Includes the common rules.
    81 !include $(PDWIN32_INCLUDE)/pdwin32.post
    82 
Note: See TracChangeset for help on using the changeset viewer.