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

New makefile style.

Location:
trunk/src/opengl/glide/cvg
Files:
4 edited

Legend:

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

    r3475 r4624  
    1 # $Id: makefile,v 1.4 2000-05-02 14:09:14 bird Exp $
     1# $Id: makefile,v 1.5 2000-11-19 08:58:11 bird Exp $
    22
    33#
     
    77#
    88
     9#
    910# Directory macros.
     11#
    1012PDWIN32_INCLUDE = ..\..\..\..\..\include
    1113PDWIN32_LIB     = ..\..\..\..\..\lib
     
    1315PDWIN32_TOOLS   = ..\..\..\..\..\tools\bin
    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 = glidersrc.asm
    26 
    27 CINCLUDE = -I..\incsrc -I..\..\swlibs\fxmisc -I..\init\initvg -I..\init -I..\texus -I..\..\swlibs\pcilib
    28 CFLAGS   = $(CFLAGS) $(CINCLUDE) /Os-
    29 CXXFLAGS = $(CXXFLAGS) $(CINCLUDE) /Os-
    30 RCFLAGS  = $(RCFLAGS) $(CINCLUDE)
     31#
     32# Flag overloads.
     33#
     34CINCLUDES   = $(CINCLUDES) -I..\incsrc -I..\..\swlibs\fxmisc -I..\init\initvg -I..\init -I..\texus -I..\..\swlibs\pcilib
     35CFLAGS      = $(CFLAGS)   /Os-
     36CXXFLAGS    = $(CXXFLAGS) /Os-
    3137
    3238
    33 # Object files. All objects should be prefixed with $(OBJDIR)!
     39#
     40# Object files. Prefix with OBJDIR and one space before the '\'.
     41#
    3442OBJS = \
    35 $(OBJDIR)\CPUDTECT.OBJ \
    36 $(OBJDIR)\DDGUMP.OBJ \
    37 $(OBJDIR)\DIGLIDE.OBJ \
    38 $(OBJDIR)\DIGUTEX.OBJ \
    39 $(OBJDIR)\DISST.OBJ \
    40 $(OBJDIR)\DITEX.OBJ \
    41 $(OBJDIR)\G3DF.OBJ \
    42 $(OBJDIR)\GAA.OBJ \
    43 $(OBJDIR)\GBANNER.OBJ \
    44 $(OBJDIR)\GDRAW.OBJ \
    45 $(OBJDIR)\GERROR.OBJ \
    46 $(OBJDIR)\GGLIDE.OBJ \
    47 $(OBJDIR)\GLFB.OBJ \
    48 $(OBJDIR)\GMOVIE.OBJ \
    49 $(OBJDIR)\GPCI.OBJ \
    50 $(OBJDIR)\GSPLASH.OBJ \
    51 $(OBJDIR)\GSST.OBJ \
    52 $(OBJDIR)\GTEX.OBJ \
    53 $(OBJDIR)\GTEXDL.OBJ \
    54 $(OBJDIR)\GU.OBJ \
    55 $(OBJDIR)\GUCLIP.OBJ \
    56 $(OBJDIR)\GUMP.OBJ \
    57 $(OBJDIR)\GUTEX.OBJ \
    58 $(OBJDIR)\GXDRAW.OBJ \
    59 $(OBJDIR)\P6FENCE.OBJ \
    60 $(OBJDIR)\FIFO.OBJ \
     43$(OBJDIR)\cpudtect.obj \
     44$(OBJDIR)\ddgump.obj \
     45$(OBJDIR)\diglide.obj \
     46$(OBJDIR)\digutex.obj \
     47$(OBJDIR)\disst.obj \
     48$(OBJDIR)\ditex.obj \
     49$(OBJDIR)\g3df.obj \
     50$(OBJDIR)\gaa.obj \
     51$(OBJDIR)\gbanner.obj \
     52$(OBJDIR)\gdraw.obj \
     53$(OBJDIR)\gerror.obj \
     54$(OBJDIR)\gglide.obj \
     55$(OBJDIR)\glfb.obj \
     56$(OBJDIR)\gmovie.obj \
     57$(OBJDIR)\gpci.obj \
     58$(OBJDIR)\gsplash.obj \
     59$(OBJDIR)\gsst.obj \
     60$(OBJDIR)\gtex.obj \
     61$(OBJDIR)\gtexdl.obj \
     62$(OBJDIR)\gu.obj \
     63$(OBJDIR)\guclip.obj \
     64$(OBJDIR)\gump.obj \
     65$(OBJDIR)\gutex.obj \
     66$(OBJDIR)\gxdraw.obj \
     67$(OBJDIR)\p6fence.obj \
     68$(OBJDIR)\fifo.obj \
    6169$(OBJDIR)\glidersrc.obj
    6270
    6371
     72#
    6473# Target name - name of the library without extention and path.
     74#
    6575TARGET  = glide
    6676
    6777
    68 # All rule - build objs and target library.
    69 all:    $(OBJDIR) \
    70         $(OBJDIR)\$(TARGET).lib
     78#
     79# Includes the common rules.
     80#
     81!include $(PDWIN32_INCLUDE)/pdwin32.post
    7182
    7283
    73 # Create all libraries (not importlibraries)
    74 libs: all
     84#
     85# Additional dep rule - adds depenencies for some additional headers.
     86#
     87mydep:
     88    $(DEPEND) -a $(CINCLUDES) \
     89        ..\incsrc\*.h ..\..\swlibs\fxmisc\*.h ..\init\initvg\*.h \
     90        ..\init\*.h ..\texus\*.h ..\..\swlibs\pcilib\*.h
    7591
    76 
    77 # Lib rule - build importlibrary (and evt. other libs)
    78 $(OBJDIR)\$(TARGET).lib: $(OBJS)
    79     $(RM) $@
    80     $(ILIB) $(ILIBFLAGS) $@ $(OBJS);
    81 
    82 
    83 # Dep rule - makes depenencies for C, C++ and Asm files.
    84 dep:
    85     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win $(CINCLUDE) \
    86         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h \
    87         ..\incsrc\*.h ..\..\swlibs\fxmisc\*.h ..\init\initvg\*.h ..\init\*.h ..\texus\*.h ..\..\swlibs\pcilib\*.h
    88 
    89 
    90 # Includes the common rules.
    91 !include $(PDWIN32_INCLUDE)/pdwin32.post
    92 
  • 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 
  • trunk/src/opengl/glide/cvg/makefile

    r3864 r4624  
    1 # $Id: makefile,v 1.10 2000-07-19 19:05:13 sandervl Exp $
     1# $Id: makefile,v 1.11 2000-11-19 08:58:10 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\Voodoo2
    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
    1924
     25#
    2026# Compiler, tools, and interference rules.
     27#
    2128!include $(PDWIN32_INCLUDE)/pdwin32.mk
    2229
    2330
    24 # Flag overloads and local macros.
    25 CLEANEXTRAS = rsrc.asm
     31#
     32# Subdirectories to travers.
     33#
     34SUBDIRS = \
     35.\..\swlibs\pcilib \
     36.\init \
     37.\glide \
     38.\texus
    2639
    2740
    28 # Object files. All objects should be prefixed with $(OBJDIR)!
     41#
     42# Object files. Prefix with OBJDIR and one space before the '\'.
     43#
    2944OBJS = \
    3045$(OBJDIR)\initterm.obj
    3146
    3247
     48#
     49# Libraries. One space before the '\'.
     50#
     51LIBS = \
     52..\swlibs\pcilib\$(OBJDIR)\pcilib.lib \
     53texus\$(OBJDIR)/texus.lib \
     54init\$(OBJDIR)/init.lib \
     55glide\$(OBJDIR)/glide.lib \
     56$(PDWIN32_LIB)/kernel32.lib \
     57$(PDWIN32_LIB)/$(ODINCRT).lib \
     58os2386.lib \
     59$(RTLLIB_O)
     60
     61
     62#
    3363# Target name - name of the dll without extention and path.
     64#
    3465TARGET = glide2x
    3566
    3667
    37 # All rule - build objs, target dll, copies dll to bin and makes libs.
    38 all:    $(OBJDIR) \
    39         $(OBJDIR)\$(TARGET).dll \
    40         $(PDWIN32_BIN)\Glide\Voodoo2\$(TARGET).dll \
    41         lib
    42 
    43 
    44 # Lib rule - build importlibrary (and evt. other libs)
    45 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    46 
    47 
    48 
    49 # Libs rule - Make (sub) libraries. (Not import libraries!)
    50 libs:
    51     cd ..\swlibs\pcilib
    52     $(MAKE_CMD) $@
    53     cd ..\..\cvg\init
    54     $(MAKE_CMD) $@
    55     cd ..\glide
    56     $(MAKE_CMD) $@
    57     cd ..\texus
    58     $(MAKE_CMD) $@
    59     cd ..
    60 
    61 
    62 # Dll rule - builds the target dll.
    63 $(OBJDIR)\$(TARGET).dll: $(OBJS) libs $(TARGET).def $(OBJDIR)\$(TARGET).lrf
    64     $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    65 
    66 
    67 # Linker file - creates the parameter file passed on to the linker.
    68 $(OBJDIR)\$(TARGET).lrf: makefile
    69     @echo Creating file <<$@
    70 /OUT:$(OBJDIR)\$(TARGET).dll
    71 /MAP:$(OBJDIR)\$(TARGET).map
    72 $(OBJS)
    73 ..\swlibs\pcilib\$(OBJDIR)\pcilib.lib
    74 texus\$(OBJDIR)\texus.lib
    75 init\$(OBJDIR)\init.lib
    76 glide\$(OBJDIR)\glide.lib
    77 $(PDWIN32_LIB)\kernel32.lib
    78 $(PDWIN32_LIB)/$(ODINCRT).lib
    79 OS2386.LIB
    80 $(RTLLIB_O)
    81 $(TARGET).def
    82 <<keep
    83 
    84 
    85 # Copy rule - copies the dll.
    86 $(PDWIN32_BIN)\Glide\Voodoo2\$(TARGET).dll: $(OBJDIR)\$(TARGET).dll
    87     -mkdir $(PDWIN32_BIN)\Glide > nul 2>&1
    88     -mkdir $(PDWIN32_BIN)\Glide\Voodoo2 > nul 2>&1
    89     $(CP) $** $@
    90     $(CP) $** ..\..\..\..\bin\Glide\Voodoo2\$(TARGET).dll
    91 
    92 
    93 # Dep rule - makes depenencies for C, C++ and Asm files.
    94 dep:
    95     $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    96         *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    97     cd ..\swlibs\pcilib
    98     $(MAKE_CMD) $@
    99     cd ..\..\cvg\init
    100     $(MAKE_CMD) $@
    101     cd ..\glide
    102     $(MAKE_CMD) $@
    103     cd ..\texus
    104     $(MAKE_CMD) $@
    105     cd ..
    106 
    107 
    108 # Extra cleanrule.
    109 clean2:
    110     cd ..\swlibs\pcilib
    111     $(MAKE_CMD) clean
    112     cd ..\..\cvg\glide
    113     $(MAKE_CMD) clean
    114     cd ..\init
    115     $(MAKE_CMD) clean
    116     cd ..\texus
    117     $(MAKE_CMD) clean
    118     cd ..
    119 
    120 
     68#
    12169# Includes the common rules.
     70#
    12271!include $(PDWIN32_INCLUDE)/pdwin32.post
    12372
    124 
    125 
  • 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.