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/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.