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/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
Note: See TracChangeset for help on using the changeset viewer.