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/cvg/init/makefile

    r3031 r4624  
    1 # $Id: makefile,v 1.2 2000-03-06 23:33:44 bird Exp $
     1# $Id: makefile,v 1.3 2000-11-19 08:58:11 bird Exp $
    22#
    3 # PD-Win32 API
     3# Odin32 API
    44#
    5 #       Init makefile
     5#       cvg\Init makefile
    66#
    77
     8
     9#
    810# Directory macros.
     11#
    912PDWIN32_INCLUDE = ..\..\..\..\..\include
    1013PDWIN32_LIB = ..\..\..\..\..\lib
     
    1316
    1417
     18#
     19# Tell buildenvironmet to build an object library and to invoke additional dep rule.
     20#
     21LIBTARGET = 1
     22ADDITIONAL_DEP = mydep
     23
     24
     25#
    1526# Compiler, tools, and interference rules.
    16 LOCALCLEAN  = 1
     27#
    1728!include $(PDWIN32_INCLUDE)/pdwin32.mk
    1829!include ..\3dfx.mak
    1930
    20 # Flag overloads and local macros.
    21 CLEANEXTRAS =
    2231
    23 CINCLUDE    = -I..\incsrc;..\..\swlibs\fxmisc;..\glide;..\texus;..\..\swlibs\pcilib
    24 CFLAGS      = $(CFLAGS) $(CINCLUDE)
    25 CXXFLAGS    = $(CXXFLAGS) $(CINCLUDE)
     32#
     33# Flag overloads.
     34#
     35CINCLUDES = $(CINCLUDES) -I..\incsrc;..\..\swlibs\fxmisc;..\glide;..\texus;..\..\swlibs\pcilib
    2636
    2737
    28 # Object files. All objects should be prefixed with $(OBJDIR)!
     38#
     39# Object files. Prefix with OBJDIR and one space before the '\'.
     40#
    2941OBJS = \
    30 $(OBJDIR)\DAC.OBJ \
    31 $(OBJDIR)\GAMMA.OBJ \
    32 $(OBJDIR)\GDEBUG.OBJ \
    33 $(OBJDIR)\INFO.OBJ \
    34 $(OBJDIR)\PARSE.OBJ \
    35 $(OBJDIR)\PRINT.OBJ \
    36 $(OBJDIR)\SLI.OBJ \
    37 $(OBJDIR)\SST1INIT.OBJ \
    38 $(OBJDIR)\UTIL.OBJ \
    39 $(OBJDIR)\VIDEO.OBJ
     42$(OBJDIR)\dac.obj \
     43$(OBJDIR)\gamma.obj \
     44$(OBJDIR)\gdebug.obj \
     45$(OBJDIR)\info.obj \
     46$(OBJDIR)\parse.obj \
     47$(OBJDIR)\print.obj \
     48$(OBJDIR)\sli.obj \
     49$(OBJDIR)\sst1init.obj \
     50$(OBJDIR)\util.obj \
     51$(OBJDIR)\video.obj
    4052
    4153
    42 # Target name - name of the dll without extention and path.
     54#
     55# Target name - name of the library without extention and path.
     56#
    4357TARGET  = init
    4458
    4559
    46 # All rule - build objs, target dll, copies dll to bin and makes libs.
    47 all:    $(OBJDIR) \
    48         $(OBJDIR)\$(TARGET).lib
     60#
     61# Includes the common rules.
     62#
     63!include $(PDWIN32_INCLUDE)/pdwin32.post
    4964
    5065
    51 # Create all libraries (not importlibraries)
    52 libs: all
     66#
     67# Additional dep rule - adds dependencies for some additional headers.
     68#
     69mydep:
     70    $(DEPEND) -a $(CINCLUDES) \
     71        ..\incsrc\*.h ..\..\swlibs\fxmisc\*.h ..\glide\*.h ..\texus\*.h \
     72        ..\..\swlibs\pcilib\*.h
    5373
    54 
    55 # Lib target rule - builds the library.
    56 $(OBJDIR)\$(TARGET).lib: $(OBJS)
    57     $(RM) $@
    58     $(ILIB) $(ILIBFLAGS) $@ $(OBJS);
    59 
    60 
    61 
    62 # Dep rule - makes depenencies for C, C++ and Asm files.
    63 dep:
    64     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win $(CINCLUDE) \
    65         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h \
    66         ..\incsrc\*.h ..\..\swlibs\fxmisc\*.h ..\glide\*.h ..\texus\*.h ..\..\swlibs\pcilib\*.h
    67 
    68 
    69 # Includes the common rules.
    70 !include $(PDWIN32_INCLUDE)/pdwin32.post
    71 
Note: See TracChangeset for help on using the changeset viewer.