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/sst1/texus/makefile

    r3031 r4624  
    1 # $Id: makefile,v 1.2 2000-03-06 23:33:47 bird Exp $
     1# $Id: makefile,v 1.3 2000-11-19 08:58:12 bird Exp $
    22
    33#
    44# Odin32 API
    55#
    6 #       Texus makefile
     6#       sst1/Texus makefile
    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!include ..\3dfx.mak
    2331
    24 # Flag overloads and local macros.
    25 CLEANEXTRAS =
    2632
    27 CINCLUDE    = -I..\incsrc;..\..\swlibs\fxmisc;..\init\initvg;..\init;..\glide;..\..\swlibs\pcilib
    28 CFLAGS      = $(CFLAGS) $(CINCLUDE)
    29 CXXFLAGS    = $(CXXFLAGS) $(CINCLUDE)
     33#
     34# Flag overloads.
     35#
     36CINCLUDES   = $(CINCLUDES) -I..\incsrc;..\..\swlibs\fxmisc;..\init\initvg;..\init;..\glide;..\..\swlibs\pcilib
    3037
    3138
    32 # Object files. All objects should be prefixed with $(OBJDIR)!
     39#
     40# Object files. Prefix with OBJDIR and one space before the '\'.
     41#
    3342OBJS = \
    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
     43$(OBJDIR)\3df.obj \
     44$(OBJDIR)\clamp.obj \
     45$(OBJDIR)\dequant.obj \
     46$(OBJDIR)\diffuse.obj \
     47$(OBJDIR)\gldutil.obj \
     48$(OBJDIR)\mipmap.obj \
     49$(OBJDIR)\ncc.obj \
     50$(OBJDIR)\nccnnet.obj \
     51$(OBJDIR)\pal256.obj \
     52$(OBJDIR)\ppm.obj \
     53$(OBJDIR)\quantize.obj \
     54$(OBJDIR)\read.obj \
     55$(OBJDIR)\resample.obj \
     56$(OBJDIR)\rgt.obj \
     57$(OBJDIR)\texuslib.obj \
     58$(OBJDIR)\tga.obj \
     59$(OBJDIR)\util.obj \
     60$(OBJDIR)\view.obj \
     61$(OBJDIR)\write.obj
    5362
    5463
     64#
    5565# Target name - name of the library without extention and path.
     66#
    5667TARGET  = texus
    5768
    5869
    59 # All rule - build objs and target library.
    60 all:    $(OBJDIR) \
    61         $(OBJDIR)\$(TARGET).lib
     70#
     71# Includes the common rules.
     72#
     73!include $(PDWIN32_INCLUDE)/pdwin32.post
    6274
    6375
    64 # Create all libraries (not importlibraries)
    65 libs: all
    66 
    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 \
     76#
     77# Additional dep rule - adds dependencies for some additional headers.
     78#
     79mydep:
     80    $(DEPEND) -a $(CINCLUDES) \
    7881        ..\incsrc\*.h ..\..\swlibs\fxmisc*.h ..\init\initvg\*.h \
    7982        ..\glide\*.h ..\init\*.h ..\..\swlibs\pcilib\*.h
    8083
    81 
    82 # Includes the common rules.
    83 !include $(PDWIN32_INCLUDE)/pdwin32.post
    84 
Note: See TracChangeset for help on using the changeset viewer.