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/texus/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#
    33# PD-Win32 API
     
    66#
    77
     8#
    89# Directory macros.
     10#
    911PDWIN32_INCLUDE = ..\..\..\..\..\include
    1012PDWIN32_LIB     = ..\..\..\..\..\lib
     
    1315
    1416
    15 # Local cleanup only.
    16 LOCALCLEAN = 1
     17#
     18# Tell buildenvironmet to build an object library and to invoke additional dep rule.
     19#
     20LIBTARGET = 1
     21ADDITIONAL_DEP = mydep
    1722
    1823
     24#
    1925# Compiler, tools, and interference rules.
     26#
    2027!include $(PDWIN32_INCLUDE)/pdwin32.mk
    2128!include ..\3dfx.mak
    2229
    2330
    24 # Flag overloads and local macros.
    25 CLEANEXTRAS =
    26 
    27 CINCLUDE    = -I..\incsrc;..\..\swlibs\fxmisc;..\init;..\glide;..\..\swlibs\pcilib
    28 CFLAGS      = $(CFLAGS) $(CINCLUDE)
    29 CXXFLAGS    = $(CXXFLAGS) $(CINCLUDE)
     31#
     32# Flag overloads.
     33#
     34CINCLUDES   = $(CINCLUDES) -I..\incsrc;..\..\swlibs\fxmisc;..\init;..\glide;..\..\swlibs\pcilib
    3035
    3136
    32 # Object files. All objects should be prefixed with $(OBJDIR)!
     37#
     38# Object files. Prefix with OBJDIR and one space before the '\'.
     39#
    3340OBJS = \
    34 $(OBJDIR)\3DF.OBJ \
    35 $(OBJDIR)\CLAMP.OBJ \
    36 $(OBJDIR)\DEQUANT.OBJ \
    37 $(OBJDIR)\DIFFUSE.OBJ \
    38 $(OBJDIR)\GLDUTIL.OBJ \
    39 $(OBJDIR)\MIPMAP.OBJ \
    40 $(OBJDIR)\NCC.OBJ \
    41 $(OBJDIR)\NCCNNET.OBJ \
    42 $(OBJDIR)\PAL256.OBJ \
    43 $(OBJDIR)\PPM.OBJ \
    44 $(OBJDIR)\QUANTIZE.OBJ \
    45 $(OBJDIR)\READ.OBJ \
    46 $(OBJDIR)\RESAMPLE.OBJ \
    47 $(OBJDIR)\RGT.OBJ \
    48 $(OBJDIR)\TEXUSLIB.OBJ \
    49 $(OBJDIR)\TGA.OBJ \
    50 $(OBJDIR)\UTIL.OBJ \
    51 $(OBJDIR)\VIEW.OBJ \
    52 $(OBJDIR)\WRITE.OBJ
     41$(OBJDIR)\3df.obj \
     42$(OBJDIR)\clamp.obj \
     43$(OBJDIR)\dequant.obj \
     44$(OBJDIR)\diffuse.obj \
     45$(OBJDIR)\gldutil.obj \
     46$(OBJDIR)\mipmap.obj \
     47$(OBJDIR)\ncc.obj \
     48$(OBJDIR)\nccnnet.obj \
     49$(OBJDIR)\pal256.obj \
     50$(OBJDIR)\ppm.obj \
     51$(OBJDIR)\quantize.obj \
     52$(OBJDIR)\read.obj \
     53$(OBJDIR)\resample.obj \
     54$(OBJDIR)\rgt.obj \
     55$(OBJDIR)\texuslib.obj \
     56$(OBJDIR)\tga.obj \
     57$(OBJDIR)\util.obj \
     58$(OBJDIR)\view.obj \
     59$(OBJDIR)\write.obj
    5360
    5461
     62#
    5563# Target name - name of the library without extention and path.
    56 TARGET = texus
     64#
     65TARGET  = texus
    5766
    5867
    59 # All rule - build objs and target library.
    60 all:    $(OBJDIR) \
    61         $(OBJDIR)\$(TARGET).lib
     68#
     69# Includes the common rules.
     70#
     71!include $(PDWIN32_INCLUDE)/pdwin32.post
    6272
    6373
    64 # Create all libraries (not importlibraries)
    65 libs: all
     74#
     75# Additional dep rule - adds depenencies for some additional headers.
     76#
     77mydep:
     78    $(DEPEND) -a $(CINCLUDES) \
     79        ..\incsrc\*.h ..\..\swlibs\fxmisc*.h ..\glide\*.h ..\init\*.h \
     80        ..\..\swlibs\pcilib\*.h
    6681
    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) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win $(CINCLUDE) \
    77         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h \
    78         ..\incsrc\*.h ..\..\swlibs\fxmisc*.h ..\glide\*.h ..\init\*.h ..\..\swlibs\pcilib\*.h
    79 
    80 
    81 # Includes the common rules.
    82 !include $(PDWIN32_INCLUDE)/pdwin32.post
    83 
Note: See TracChangeset for help on using the changeset viewer.