Ignore:
Timestamp:
Nov 19, 2000, 10:27:40 AM (25 years ago)
Author:
bird
Message:

New makefile style.

Location:
trunk/src/opengl/glide/sst1
Files:
5 edited

Legend:

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

    r3031 r4624  
    1 # $Id: makefile,v 1.2 2000-03-06 23:33:45 bird Exp $
     1# $Id: makefile,v 1.3 2000-11-19 08:58:11 bird Exp $
    22#
    33# Odin32 API
    44#
    5 #       Glide makefile
     5#       sst1/Glide makefile
    66#
    77
     8
     9#
    810# Directory macros.
     11#
    912PDWIN32_INCLUDE = ..\..\..\..\..\include
    1013PDWIN32_LIB     = ..\..\..\..\..\lib
     
    1215PDWIN32_TOOLS   = ..\..\..\..\..\tools\bin
    1316
    14 # Local cleanup only.
    15 LOCALCLEAN = 1
    1617
     18#
     19# Tell buildenvironmet to build an object library and to invoke additional dep rule.
     20#
     21LIBTARGET = 1
     22ADDITIONAL_DEP = mydep
     23
     24
     25#
    1726# Compiler, tools, and interference rules.
     27#
    1828!include $(PDWIN32_INCLUDE)/pdwin32.mk
    1929!include ..\3dfx.mak
    2030
    2131
    22 # Flag overloads and local macros.
    23 CLEANEXTRAS = glidersrc.asm
    24 
    25 CINCLUDE    = -I..\incsrc;..\..\swlibs\fxmisc;..\init\initvg;..\init;..\texus;..\..\swlibs\pcilib;
    26 CFLAGS      = $(CFLAGS) $(CINCLUDE)
    27 CXXFLAGS    = $(CXXFLAGS) $(CINCLUDE)
    28 RCFLAGS     = $(RCFLAGS) $(CINCLUDE)
     32#
     33# Flag overloads.
     34#
     35CINCLUDES   = $(CINCLUDES) -I..\incsrc;..\..\swlibs\fxmisc;..\init\initvg;..\init;..\texus;..\..\swlibs\pcilib;
    2936
    3037
    31 # Object files. All objects should be prefixed with $(OBJDIR)!
     38#
     39# Object files. Prefix with OBJDIR and one space before the '\'.
     40#
    3241OBJS = \
    33 $(OBJDIR)\CPUDTECT.OBJ \
    34 $(OBJDIR)\DDGUMP.OBJ \
    35 $(OBJDIR)\DIGLIDE.OBJ \
    36 $(OBJDIR)\DIGUTEX.OBJ \
    37 $(OBJDIR)\DISST.OBJ \
    38 $(OBJDIR)\DITEX.OBJ \
    39 $(OBJDIR)\G3DF.OBJ \
    40 $(OBJDIR)\GAA.OBJ \
    41 $(OBJDIR)\GBANNER.OBJ \
    42 $(OBJDIR)\GDRAW.OBJ \
    43 $(OBJDIR)\GERROR.OBJ \
    44 $(OBJDIR)\GGLIDE.OBJ \
    45 $(OBJDIR)\GLFB.OBJ \
    46 $(OBJDIR)\GMOVIE.OBJ \
    47 $(OBJDIR)\GPCI.OBJ \
    48 $(OBJDIR)\GSPLASH.OBJ \
    49 $(OBJDIR)\GSST.OBJ \
    50 $(OBJDIR)\GTEX.OBJ \
    51 $(OBJDIR)\GTEXDL.OBJ \
    52 $(OBJDIR)\GU.OBJ \
    53 $(OBJDIR)\GUCLIP.OBJ \
    54 $(OBJDIR)\GUMP.OBJ \
    55 $(OBJDIR)\GUTEX.OBJ \
    56 $(OBJDIR)\GXDRAW.OBJ \
    57 $(OBJDIR)\P6FENCE.OBJ \
    58 $(OBJDIR)\SST96.OBJ \
     42$(OBJDIR)\cpudtect.obj \
     43$(OBJDIR)\ddgump.obj \
     44$(OBJDIR)\diglide.obj \
     45$(OBJDIR)\digutex.obj \
     46$(OBJDIR)\disst.obj \
     47$(OBJDIR)\ditex.obj \
     48$(OBJDIR)\g3df.obj \
     49$(OBJDIR)\gaa.obj \
     50$(OBJDIR)\gbanner.obj \
     51$(OBJDIR)\gdraw.obj \
     52$(OBJDIR)\gerror.obj \
     53$(OBJDIR)\gglide.obj \
     54$(OBJDIR)\glfb.obj \
     55$(OBJDIR)\gmovie.obj \
     56$(OBJDIR)\gpci.obj \
     57$(OBJDIR)\gsplash.obj \
     58$(OBJDIR)\gsst.obj \
     59$(OBJDIR)\gtex.obj \
     60$(OBJDIR)\gtexdl.obj \
     61$(OBJDIR)\gu.obj \
     62$(OBJDIR)\guclip.obj \
     63$(OBJDIR)\gump.obj \
     64$(OBJDIR)\gutex.obj \
     65$(OBJDIR)\gxdraw.obj \
     66$(OBJDIR)\p6fence.obj \
     67$(OBJDIR)\sst96.obj \
    5968$(OBJDIR)\glidersrc.obj
    6069
    6170
     71#
    6272# Target name - name of the library without extention and path.
     73#
    6374TARGET  = glide
    6475
    65 # All rule - build objs and target library.
    66 all:    $(OBJDIR) \
    67         $(OBJDIR)\$(TARGET).lib
     76
     77#
     78# Includes the common rules.
     79#
     80!include $(PDWIN32_INCLUDE)/pdwin32.post
    6881
    6982
    70 # Create all libraries (not importlibraries)
    71 libs: all
     83#
     84# Additional dep rule - adds dependencies for some additional headers.
     85#
     86mydep:
     87    $(DEPEND) -a $(CINCLUDES) \
     88        ..\incsrc\*.h ..\..\swlibs\fxmisc\*.h ..\init\initvg\*.h \
     89        ..\init\*.h ..\texus\*.h ..\..\swlibs\pcilib\*.h
    7290
    73 
    74 # Lib rule - build importlibrary (and evt. other libs)
    75 $(OBJDIR)\$(TARGET).lib: $(OBJS)
    76     $(RM) $@
    77     $(ILIB) $(ILIBFLAGS) $@ $(OBJS);
    78 
    79 
    80 # Dep rule - makes depenencies for C, C++ and Asm files.
    81 dep:
    82     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win $(CINCLUDE) \
    83         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h \
    84         ..\incsrc\*.h ..\..\swlibs\fxmisc\*.h ..\init\initvg\*.h ..\init\*.h ..\texus\*.h ..\..\swlibs\pcilib\*.h
    85 
    86 
    87 # Includes the common rules.
    88 !include $(PDWIN32_INCLUDE)/pdwin32.post
    89 
  • trunk/src/opengl/glide/sst1/init/initvg/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# PD-Win32 API
    44#
    5 #       Glide makefile
     5#       sst1/init/inivg makefile
    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 ..\..\3dfx.mak
    2230
    2331
    24 # Flag overloads and local macros.
    25 CLEANEXTRAS = glide.asm
    26 
    27 CINCLUDE    = -I..\..\incsrc;..\..\..\swlibs\fxmisc;..\..\init;..\..\glide;..\..\texus;..\..\..\swlibs\pcilib
    28 CFLAGS      = $(CFLAGS) $(CINCLUDE)
    29 CXXFLAGS    = $(CXXFLAGS) $(CINCLUDE)
     32#
     33# Flag overloads.
     34#
     35CINCLUDES   = $(CINCLUDES) -I..\..\incsrc;..\..\..\swlibs\fxmisc;..\..\init;..\..\glide;..\..\texus;..\..\..\swlibs\pcilib
    3036
    3137
    32 # Object files. All objects should be prefixed with $(OBJDIR)!
     38#
     39# Object files. Prefix with OBJDIR and one space before the '\'.
     40#
    3341OBJS = \
    34 $(OBJDIR)\DAC.OBJ \
    35 $(OBJDIR)\GAMMA.OBJ \
    36 $(OBJDIR)\GDEBUG.OBJ \
    37 $(OBJDIR)\INFO.OBJ \
    38 $(OBJDIR)\PARSE.OBJ \
    39 $(OBJDIR)\PRINT.OBJ \
    40 $(OBJDIR)\SLI.OBJ \
    41 $(OBJDIR)\SST1INIT.OBJ \
    42 $(OBJDIR)\UTIL.OBJ \
    43 $(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
    4452
    4553
    46 # All - rule make all objects.
    47 all:    $(OBJDIR) \
    48         $(OBJS)
     54#
     55# Target name - name of the library without extention and path.
     56#
     57TARGET  = initvg
    4958
    5059
    51 # Dep rule - makes depenencies for C, C++ and Asm files.
    52 dep:
    53     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win $(CINCLUDE) \
    54         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h \
     60#
     61# Includes the common rules.
     62#
     63!include $(PDWIN32_INCLUDE)/pdwin32.post
     64
     65
     66#
     67# Additional dep rule - adds depenencies for some additional headers.
     68#
     69mydep:
     70    $(DEPEND) -a $(CINCLUDES) \
    5571        ..\..\incsrc\*.h ..\..\..\swlibs\fxmisc\*.h ..\*.h ..\..\glide\*.h \
    5672        ..\..\texus\*.h ..\..\..\swlibs\pcilib\*.h
    5773
    58 
    59 # Includes the common rules.
    60 !include $(PDWIN32_INCLUDE)/pdwin32.post
    61 
  • trunk/src/opengl/glide/sst1/init/makefile

    r3031 r4624  
    1 # $Id: makefile,v 1.3 2000-03-06 23:33:46 bird Exp $
     1# $Id: makefile,v 1.4 2000-11-19 08:58:11 bird Exp $
    22#
    33# Odin32 API
     
    66#
    77
     8
     9#
    810# Directory macros.
     11#
    912PDWIN32_INCLUDE = ..\..\..\..\..\include
    1013PDWIN32_LIB     = ..\..\..\..\..\lib
     
    1215PDWIN32_TOOLS   = ..\..\..\..\..\tools\bin
    1316
    14 # Local cleanup only and extra cleanrule.
    15 LOCALCLEAN = 1
    16 CLEAN2     = 1
    1717
     18#
     19# Tell buildenvironmet to build an object library and to invoke additional dep rule.
     20#
     21LIBTARGET = 1
     22ADDITIONAL_DEP = mydep
     23
     24
     25#
    1826# Compiler, tools, and interference rules.
     27#
    1928!include $(PDWIN32_INCLUDE)/pdwin32.mk
    2029!include ..\3dfx.mak
    2130
    2231
    23 # Flag overloads and local macros.
    24 CLEANEXTRAS =
    25 
    26 CINCLUDE    = -I..\incsrc;..\..\swlibs\fxmisc;initvg;..\glide;..\texus;..\..\swlibs\pcilib
    27 CFLAGS      = $(CFLAGS) $(CINCLUDE)
    28 CXXFLAGS    = $(CXXFLAGS) $(CINCLUDE)
     32#
     33# Flag overloads.
     34#
     35CINCLUDES   = $(CINCLUDES) -I..\incsrc;..\..\swlibs\fxmisc;initvg;..\glide;..\texus;..\..\swlibs\pcilib
    2936
    3037
    31 # Object files. All objects should be prefixed with $(OBJDIR)!
     38#
     39# Subdirectories to travers.
     40#
     41SUBDIRS = \
     42initvg
     43
     44
     45#
     46# Object files. Prefix with OBJDIR and one space before the '\'.
     47#
    3248INITSUB = initvg
    3349OBJS = \
    34 $(OBJDIR)\H3DRVR.OBJ \
    35 $(OBJDIR)\INIT.OBJ \
    36 $(OBJDIR)\VG96DRVR.OBJ \
    37 $(OBJDIR)\VGDRVR.OBJ
    38 
    39 # More object files
    40 OBJSSUB = \
    41 $(INITSUB)\$(OBJDIR)\DAC.OBJ \
    42 $(INITSUB)\$(OBJDIR)\GAMMA.OBJ \
    43 $(INITSUB)\$(OBJDIR)\GDEBUG.OBJ \
    44 $(INITSUB)\$(OBJDIR)\INFO.OBJ \
    45 $(INITSUB)\$(OBJDIR)\PARSE.OBJ \
    46 $(INITSUB)\$(OBJDIR)\PRINT.OBJ \
    47 $(INITSUB)\$(OBJDIR)\SLI.OBJ \
    48 $(INITSUB)\$(OBJDIR)\SST1INIT.OBJ \
    49 $(INITSUB)\$(OBJDIR)\UTIL.OBJ \
    50 $(INITSUB)\$(OBJDIR)\VIDEO.OBJ
     50$(OBJDIR)\h3drvr.obj \
     51$(OBJDIR)\init.obj \
     52$(OBJDIR)\vg96drvr.obj \
     53$(OBJDIR)\vgdrvr.obj
    5154
    5255
     56#
    5357# Target name - name of the library without extention and path.
     58#
    5459TARGET  = init
    5560
    5661
    57 # All rule - build objs and target library.
    58 all:    $(OBJDIR) \
    59         initsub \
    60         $(OBJDIR)\$(TARGET).lib \
    61 
    62 
    63 # Make objectfiles in subdirectories.
    64 initsub:
    65     cd $(INITSUB)
    66     $(MAKE_CMD) all
    67     cd ..
    68 
    69 
    70 # Create all libraries (not importlibraries)
    71 libs: all
    72 
    73 
    74 # Lib rule - build importlibrary (and evt. other libs)
    75 $(OBJDIR)\$(TARGET).lib: $(OBJS)
    76     $(RM) $@
    77     $(ILIB) $(ILIBFLAGS) $@ $(OBJS) $(OBJSSUB);
    78 
    79 
    80 # Dep rule - makes depenencies for C, C++ and Asm files.
    81 dep:
    82     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win $(CINCLUDE) \
    83         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h \
    84         ..\incsrc\*.h ..\..\swlibs\fxmisc\*.h initvg\*.h ..\glide\*.h ..\texus\*.h ..\..\swlibs\pcilib\*.h
    85     cd initvg
    86     $(MAKE_CMD) $@
    87     cd ..
    88 
    89 
     62#
    9063# Includes the common rules.
     64#
    9165!include $(PDWIN32_INCLUDE)/pdwin32.post
    9266
    9367
    94 # extra clean rule
    95 clean2:
    96     cd initvg
    97     $(MAKE_CMD) clean
    98     cd ..
     68#
     69# Additional dep rule - adds depenencies for some additional headers.
     70#
     71mydep:
     72    $(DEPEND) -a $(CINCLUDES) \
     73        ..\incsrc\*.h ..\..\swlibs\fxmisc\*.h initvg\*.h ..\glide\*.h \
     74        ..\texus\*.h ..\..\swlibs\pcilib\*.h
     75
  • trunk/src/opengl/glide/sst1/makefile

    r3864 r4624  
    1 # $Id: makefile,v 1.7 2000-07-19 19:05:14 sandervl Exp $
     1# $Id: makefile,v 1.8 2000-11-19 08:58:11 bird Exp $
    22
    33#
     
    77#
    88
     9
     10#
    911# Directory macros.
     12#
    1013PDWIN32_INCLUDE = ..\..\..\..\include
    1114PDWIN32_LIB     = ..\..\..\..\lib
    12 PDWIN32_BIN     = ..\..\..\..\$(OBJDIR)
     15PDWIN32_BIN     = ..\..\..\..\$(OBJDIR)\Glide\Voodoo1
    1316PDWIN32_TOOLS   = ..\..\..\..\tools\bin
    1417
    1518
    16 # Have extra clean rule.
    17 CLEAN2 = 1
     19#
     20# Tell buildenvironment that we should not copy this into /bin.
     21#
     22NO_MAIN_BIN_COPY = 1
    1823
     24
     25#
    1926# Compiler, tools, and interference rules.
     27#
    2028!include $(PDWIN32_INCLUDE)/pdwin32.mk
    2129
    2230
    23 # Object files. All objects should be prefixed with $(OBJDIR)!
     31#
     32# Subdirectories to travers.
     33#
     34SUBDIRS = \
     35.\..\swlibs\pcilib \
     36.\init \
     37.\glide \
     38.\texus
     39
     40
     41#
     42# Object files. Prefix with OBJDIR and one space before the '\'.
     43#
    2444OBJS = \
    2545$(OBJDIR)\initterm.obj
    2646
    2747
     48#
     49# Libraries. One space before the '\'.
     50#
     51LIBS = \
     52..\swlibs\pcilib/$(OBJDIR)/pcilib.lib \
     53texus/$(OBJDIR)/texus.lib \
     54init/$(OBJDIR)/init.lib \
     55init/initvg/$(OBJDIR)/initvg.lib \
     56glide/$(OBJDIR)/glide.lib \
     57$(PDWIN32_LIB)/kernel32.lib \
     58$(PDWIN32_LIB)/$(ODINCRT).lib \
     59OS2386.LIB \
     60$(RTLLIB_O)
     61
     62
     63#
    2864# Target name - name of the dll without extention and path.
     65#
    2966TARGET = glide2x
    3067
    3168
    32 # All rule - build objs, target dll, copies dll to bin and makes libs.
    33 all:    $(OBJDIR) \
    34         libs \
    35         $(OBJDIR)\$(TARGET).dll \
    36         $(PDWIN32_BIN)\Glide\Voodoo1\$(TARGET).dll \
    37         lib
    38 
    39 
    40 # Lib rule - build importlibrary (and evt. other libs)
    41 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    42 
    43 
    44 # Libs rule - Make (sub) libraries. (Not import libraries!)
    45 libs:
    46     cd ..\swlibs\pcilib
    47     $(MAKE_CMD) $@
    48     cd ..\..\sst1\init
    49     $(MAKE_CMD) $@
    50     cd ..\glide
    51     $(MAKE_CMD) $@
    52     cd ..\texus
    53     $(MAKE_CMD) $@
    54     cd ..
    55 
    56 
    57 $(TARGET).dll: $(OBJS) $(TARGET).def
    58     $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \
    59           $(PDWIN32_LIB)/kernel32.lib \
    60           $(PDWIN32_LIB)/odincrt.lib OS2386.LIB $(RTLLIB_O)
    61 
    62 
    63 # Dll rule - builds the target dll.
    64 $(OBJDIR)\$(TARGET).dll: $(OBJS) libs $(TARGET).def $(OBJDIR)\$(TARGET).lrf
    65     $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    66 
    67 
    68 # Linker file - creates the parameter file passed on to the linker.
    69 $(OBJDIR)\$(TARGET).lrf: makefile
    70     @echo Creating file <<$@
    71 /OUT:$(OBJDIR)\$(TARGET).dll
    72 /MAP:$(OBJDIR)\$(TARGET).map
    73 $(OBJS)
    74 ..\swlibs\pcilib\$(OBJDIR)\pcilib.lib
    75 texus\$(OBJDIR)\texus.lib
    76 init\$(OBJDIR)\init.lib
    77 glide\$(OBJDIR)\glide.lib
    78 $(PDWIN32_LIB)\kernel32.lib
    79 $(PDWIN32_LIB)/$(ODINCRT).lib
    80 OS2386.LIB
    81 $(RTLLIB_O)
    82 $(TARGET).def
    83 <<keep
    84 
    85 
    86 # Copy rule.
    87 $(PDWIN32_BIN)\Glide\Voodoo1\$(TARGET).dll: $(OBJDIR)\$(TARGET).dll
    88     -mkdir $(PDWIN32_BIN)\Glide > nul 2>&1
    89     -mkdir $(PDWIN32_BIN)\Glide\Voodoo1 > nul 2>&1
    90     $(CP) $** $@
    91     $(CP) $** ..\..\..\..\bin\Glide\Voodoo1\$(TARGET).dll
    92 
    93 
    94 # Dep rule - makes depenencies for C, C++ and Asm files.
    95 dep:
    96     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    97         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    98     cd ..\swlibs\pcilib
    99     $(MAKE_CMD) $@
    100     cd ..\..\sst1\init
    101     $(MAKE_CMD) $@
    102     cd ..\glide
    103     $(MAKE_CMD) $@
    104     cd ..\texus
    105     $(MAKE_CMD) $@
    106     cd ..
    107 
    108 
     69#
    10970# Includes the common rules.
     71#
    11072!include $(PDWIN32_INCLUDE)/pdwin32.post
    11173
    112 
    113 # Extra clean rule
    114 clean2:
    115     cd ..\swlibs\pcilib
    116     $(MAKE_CMD) clean
    117     cd ..\..\sst1\init
    118     $(MAKE_CMD) clean
    119     cd ..\glide
    120     $(MAKE_CMD) clean
    121     cd ..\texus
    122     $(MAKE_CMD) clean
    123     cd ..
    124 
  • 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.