Changeset 4624 for trunk/src/opengl/glu


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

New makefile style.

Location:
trunk/src/opengl/glu
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/opengl/glu/makefile

    r3864 r4624  
    1 # $Id: makefile,v 1.13 2000-07-19 19:05:14 sandervl Exp $
     1# $Id: makefile,v 1.14 2000-11-19 08:58:13 bird Exp $
    22
    33#
     
    77#
    88
     9
     10#
    911# Directory macros.
     12#
    1013PDWIN32_INCLUDE = ..\..\..\include
    1114PDWIN32_LIB     = ..\..\..\lib
     
    1316PDWIN32_TOOLS   = ..\..\..\tools\bin
    1417
    15 # Have extra clean rule.
    16 CLEAN2 = 1
    17 
    18 
     18#
    1919# Compiler, tools, and interference rules.
     20#
    2021!include $(PDWIN32_INCLUDE)/pdwin32.mk
    2122
    2223
    23 # Flag overloads and local macros.
    24 CLEANEXTRAS = glu32rsrc.asm
    25 
    26 CFLAGS      = $(CFLAGS) -I..\mesa\GL
    27 CXXFLAGS    = $(CXXFLAGS) -I..\mesa\GL
     24#
     25# Overrides.
     26#
     27CINCLUDES   = $(CINCLUDES) -I..\mesa\GL
    2828
    2929
     30#
     31# Subdirectories to travers.
     32#
     33SUBDIRS = \
     34.\util \
     35.\tess \
     36.\nurbs \
    3037
    31 # Object files. All objects should be prefixed with $(OBJDIR)!
     38
     39#
     40# Object files. Prefix with OBJDIR and one space before the '\'.
     41#
    3242OBJS = \
    3343$(OBJDIR)\initterm.obj \
     
    3545
    3646
    37 # Target name - name of the library without extention and path.
     47#
     48# Libraries. One space before the '\'.
     49#
     50LIBS = \
     51nurbs\interface\$(OBJDIR)\interface.lib \
     52nurbs\internals\$(OBJDIR)\internals.lib \
     53nurbs\nurbtess\$(OBJDIR)\nurbtess.lib \
     54tess\$(OBJDIR)\tess.lib \
     55util\$(OBJDIR)\util.lib \
     56$(PDWIN32_LIB)/$(ODINCRT).lib \
     57$(PDWIN32_LIB)\kernel32.lib \
     58$(PDWIN32_LIB)\opengl32.lib \
     59$(RTLLIB_O) \
     60os2386.lib
     61
     62
     63#
     64# Target name - name of the dll without extention and path.
     65#
    3866TARGET = glu32
    3967
    4068
    41 # All rule - build objs, target dll, copies dll to bin and makes libs.
    42 all:    $(OBJDIR) \
    43         $(OBJDIR)\$(TARGET).dll \
    44         $(PDWIN32_BIN)\$(TARGET).dll \
    45         lib
    46 
    47 
    48 # Lib rule - build importlibrary (and evt. other libs)
    49 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    50 
    51 
    52 # Libs rule - Make (sub) libraries. (Not import libraries!)
    53 libs:
    54     cd util
    55     $(MAKE_CMD) $@
    56     cd ..\tess
    57     $(MAKE_CMD) $@
    58     cd ..\nurbs
    59     $(MAKE_CMD) $@
    60     cd ..
    61 
    62 
    63 # Dll rule - builds the target dll.
    64 $(OBJDIR)\$(TARGET).dll: $(OBJS) libs $(TARGET).def $(OBJDIR)\$(TARGET).lrf
    65     $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    66 
    67 
    68 # Linker file - creates the parameter file passed on to the linker.
    69 $(OBJDIR)\$(TARGET).lrf: makefile
    70     @echo Creating file <<$@
    71 /OUT:$(OBJDIR)\$(TARGET).dll
    72 /MAP:$(OBJDIR)\$(TARGET).map
    73 $(OBJS)
    74 nurbs\interface\$(OBJDIR)\interface.lib
    75 nurbs\internals\$(OBJDIR)\internals.lib
    76 nurbs\nurbtess\$(OBJDIR)\nurbtess.lib
    77 tess\$(OBJDIR)\tess.lib
    78 util\$(OBJDIR)\util.lib
    79 $(PDWIN32_LIB)/$(ODINCRT).lib
    80 $(PDWIN32_LIB)\KERNEL32.LIB
    81 $(PDWIN32_LIB)\OPENGL32.LIB
    82 $(RTLLIB_O)
    83 OS2386.LIB
    84 $(TARGET).def
    85 <<keep
    86 
    87 
    88 # Dep rule - makes depenencies for C, C++ and Asm files.
    89 dep:
    90     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win -I..\mesa\GL \
    91     *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    92     cd util
    93     $(MAKE_CMD) $@
    94     cd ..\tess
    95     $(MAKE_CMD) $@
    96     cd ..\nurbs
    97     $(MAKE_CMD) $@
    98     cd ..
    99 
    100 
    101 # Extra Clean.
    102 clean2:
    103     cd util
    104     $(MAKE_CMD) clean
    105     cd ..\tess
    106     $(MAKE_CMD) clean
    107     cd ..\nurbs
    108     $(MAKE_CMD) clean
    109     cd ..
    110 
    111 
     69#
    11270# Includes the common rules.
     71#
    11372!include $(PDWIN32_INCLUDE)/pdwin32.post
    11473
  • 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 
  • 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 
  • trunk/src/opengl/glu/util/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:15 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.. -I..\..\mesa -I..\include -I..\..\mesa\GL
    28 CFLAGS      = $(CFLAGS) $(CINCLUDE) -Tdp -DNDEBUG
    29 CXXFLAGS    = $(CXXFLAGS) $(CINCLUDE)  -Tdp -DNDEBUG
     32#
     33# Flag overloads.
     34#
     35CINCLUDES   = $(CINCLUDES) -I.. -I..\..\mesa -I..\include -I..\..\mesa\GL
     36CDEFINES    = $(CDEFINES) -DNDEBUG
     37CFLAGS      = $(CFLAGS) -Tdp
     38CXXFLAGS    = $(CXXFLAGS) -Tdp
     39!ifdef WAT
     40!error "Compiler not supported yet!"
     41!endif
    3042
    3143
    32 # Object files. All objects should be prefixed with $(OBJDIR)!
     44#
     45# Object files. Prefix with OBJDIR and one space before the '\'.
     46#
    3347OBJS = \
    3448$(OBJDIR)\error.obj \
     
    4054
    4155
     56#
    4257# Target name - name of the library without extention and path.
     58#
    4359TARGET = util
    4460
    4561
    46 # Create all libraries (not importlibraries)
    47 all:    $(OBJDIR) \
    48         $(OBJDIR)\$(TARGET).lib
     62#
     63# Includes the common rules.
     64#
     65!include $(PDWIN32_INCLUDE)/pdwin32.post
    4966
    5067
    51 # Create all libraries (not importlibraries)
    52 libs: all
    53 
    54 
    55 # Lib rule - build importlibrary (and evt. other libs)
    56 $(OBJDIR)\$(TARGET).lib: $(OBJS)
    57     $(RM) $@
    58     $(ILIB) $(ILIBFLAGS) $@ $(OBJS);
    59 
    60 
    61 # Dep rule - makes depenencies for C, C++ and Asm files.
    62 dep:
    63     $(DEPEND) $(CINCLUDE) *.c *.cpp *.h *.asm *.inc \
     68#
     69# Additional dep rule - adds dependencies for some additional headers.
     70#
     71mydep:
     72    $(DEPEND) -a $(CINCLUDES) \
    6473        ..\include\*.h ..\..\mesa\*.h ..\*.h
    6574
    66 
    67 # Includes the common rules.
    68 !include $(PDWIN32_INCLUDE)/pdwin32.post
    69 
Note: See TracChangeset for help on using the changeset viewer.