Ignore:
Timestamp:
Mar 7, 2000, 12:39:20 AM (26 years ago)
Author:
bird
Message:

Makefiles are updated to new style.
Odin32 resource files are renamed to *.orc and most have changed name to avoid
name clashes for object files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/opengl/glide/sst1/texus/makefile

    r2885 r3031  
    1 # $Id: makefile,v 1.1 2000-02-25 00:31:37 sandervl Exp $
     1# $Id: makefile,v 1.2 2000-03-06 23:33:47 bird Exp $
     2
    23#
    3 # PD-Win32 API
     4# Odin32 API
    45#
    5 #       Glide makefile
     6#       Texus makefile
    67#
    78
     9# Directory macros.
    810PDWIN32_INCLUDE = ..\..\..\..\..\include
    9 PDWIN32_LIB = ..\..\..\..\..\lib
    10 PDWIN32_BIN = ..\..\..\..\..\bin
    11 PDWIN32_TOOLS = ..\..\..\..\..\tools\bin
     11PDWIN32_LIB     = ..\..\..\..\..\lib
     12PDWIN32_BIN     = ..\..\..\..\..\$(OBJDIR)
     13PDWIN32_TOOLS   = ..\..\..\..\..\tools\bin
    1214
    13 TARGET=TEXUS
    1415
     16# Local cleanup only.
     17LOCALCLEAN = 1
     18
     19
     20# Compiler, tools, and interference rules.
    1521!include $(PDWIN32_INCLUDE)/pdwin32.mk
    1622!include ..\3dfx.mak
    1723
    18 CINCLUDE=-I..\incsrc;..\..\swlibs\fxmisc;..\init\initvg;..\init;..\glide;..\..\swlibs\pcilib
     24# Flag overloads and local macros.
     25CLEANEXTRAS =
    1926
    20 CFLAGS = $(CFLAGS) $(CINCLUDE)
    21 CXXFLAGS = $(CXXFLAGS) $(CINCLUDE)
     27CINCLUDE    = -I..\incsrc;..\..\swlibs\fxmisc;..\init\initvg;..\init;..\glide;..\..\swlibs\pcilib
     28CFLAGS      = $(CFLAGS) $(CINCLUDE)
     29CXXFLAGS    = $(CXXFLAGS) $(CINCLUDE)
    2230
    23 OBJS =  3DF.OBJ         CLAMP.OBJ       DEQUANT.OBJ     DIFFUSE.OBJ     GLDUTIL.OBJ \
    24         MIPMAP.OBJ      NCC.OBJ         NCCNNET.OBJ     PAL256.OBJ      PPM.OBJ \
    25         QUANTIZE.OBJ    READ.OBJ        RESAMPLE.OBJ    RGT.OBJ         TEXUSLIB.OBJ \
    26         TGA.OBJ         UTIL.OBJ        VIEW.OBJ        WRITE.OBJ
    2731
    28 all: $(TARGET).lib
     32# Object files. All objects should be prefixed with $(OBJDIR)!
     33OBJS = \
     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
    2953
    30 $(TARGET).lib: $(OBJS)
    31         $(RM) $(TARGET).lib
    32         $(ILIB) $(ILIBFLAGS) $(TARGET).lib $(OBJS) ,,
    3354
     55# Target name - name of the library without extention and path.
     56TARGET  = texus
     57
     58
     59# All rule - build objs and target library.
     60all:    $(OBJDIR) \
     61        $(OBJDIR)\$(TARGET).lib
     62
     63
     64# Create all libraries (not importlibraries)
     65libs: 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.
    3475dep:
    3576    $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win $(CINCLUDE) \
    3677        *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h \
    37         ..\incsrc\*.h ..\..\swlibs\fxmisc*.h ..\init\initvg\*.h ..\glide\*.h ..\init\*.h ..\..\swlibs\pcilib\*.h
     78        ..\incsrc\*.h ..\..\swlibs\fxmisc*.h ..\init\initvg\*.h \
     79        ..\glide\*.h ..\init\*.h ..\..\swlibs\pcilib\*.h
    3880
    39 !ifndef NODEP
    40 !include .depend
    41 !endif
    4281
    43 clean:
    44     $(RM) *.obj *.lib
     82# Includes the common rules.
     83!include $(PDWIN32_INCLUDE)/pdwin32.post
    4584
Note: See TracChangeset for help on using the changeset viewer.