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/glide/swlibs/pcilib/makefile

    r3031 r4624  
    1 # $Id: makefile,v 1.3 2000-03-06 23:33:47 bird Exp $
     1# $Id: makefile,v 1.4 2000-11-19 08:58:12 bird Exp $
    22#
    33# Odin32 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!include ..\..\sst1\3dfx.mak
    2230
    2331
    24 # Flag overloads and local macros.
    25 CLEANEXTRAS =
    26 
    27 CINCLUDE=-I..\..\sst1\incsrc;..\fxmisc;..\..\sst1\init\initvg;..\..\sst1\glide;..\..\sst1\texus;..\..\sst1\init;$(PDWIN32_INCLUDE)
    28 
    29 CFLAGS = $(CFLAGS) $(CINCLUDE)
    30 CXXFLAGS = $(CXXFLAGS) $(CINCLUDE)
     32#
     33# Flag overloads.
     34#
     35CINCLUDES = $(CINCLUDES) -I..\..\sst1\incsrc;..\fxmisc;..\..\sst1\init\initvg;..\..\sst1\glide;..\..\sst1\texus;..\..\sst1\init
    3136
    3237
    33 # Object files. All objects should be prefixed with $(OBJDIR)!
     38#
     39# Object files. Prefix with OBJDIR and one space before the '\'.
     40#
    3441OBJS = \
    3542$(OBJDIR)\fxos2.obj \
     
    3946
    4047
     48#
    4149# Target name - name of the library without extention and path.
     50#
    4251TARGET  = pcilib
    4352
    4453
    45 # All rule - build objs and target library.
    46 all:    $(OBJDIR) \
    47         $(OBJDIR)\$(TARGET).lib
     54#
     55# Includes the common rules.
     56#
     57!include $(PDWIN32_INCLUDE)/pdwin32.post
    4858
    4959
    50 # Create all libraries (not importlibraries)
    51 libs: all
     60#
     61# Additional dep rule - adds depenencies for some additional headers.
     62#
     63mydep:
     64    $(DEPEND) -a $(CINCLUDES) \
     65        ..\..\sst1\incsrc\*.h ..\fxmisc\*.h ..\..\sst1\init\initvg\*.h \
     66        ..\..\sst1\glide\*.h ..\..\sst1\texus\*.h ..\..\sst1\init\*.h
    5267
    53 
    54 # Lib rule - build importlibrary (and evt. other libs)
    55 $(OBJDIR)\$(TARGET).lib: $(OBJS)
    56     $(RM) $@
    57     $(ILIB) $(ILIBFLAGS) $@ $(OBJS);
    58 
    59 
    60 # Dep rule - makes depenencies for C, C++ and Asm files.
    61 dep:
    62     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win $(CINCLUDE) \
    63         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h \
    64         ..\..\sst1\incsrc\*.h ..\fxmisc\*.h ..\..\sst1\init\initvg\*.h \
    65         ..\..\sst1\glide*.h ..\..\sst1\texus\*.h ..\..\sst1\init\*.h
    66 
    67 
    68 # Includes the common rules.
    69 !include $(PDWIN32_INCLUDE)/pdwin32.post
    70 
Note: See TracChangeset for help on using the changeset viewer.