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/cvg/makefile

    r3011 r3031  
    1 # $Id: makefile,v 1.6 2000-03-04 20:03:43 bird Exp $
     1# $Id: makefile,v 1.7 2000-03-06 23:33:43 bird Exp $
     2
    23#
    3 # PD-Win32 API
     4# Odin32 API
    45#
    5 #       Glide makefile
     6#       Glide\cvg 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
     15
     16# Have extra clean rule.
     17CLEAN2 = 1
     18
     19
     20# Compiler, tools, and interference rules.
     21!include $(PDWIN32_INCLUDE)/pdwin32.mk
     22
     23
     24# Flag overloads and local macros.
     25CLEANEXTRAS = rsrc.asm
     26
     27
     28# Object files. All objects should be prefixed with $(OBJDIR)!
     29OBJS = \
     30$(OBJDIR)\initterm.obj
     31
     32
     33# Target name - name of the dll without extention and path.
    1334TARGET = glide2x
    1435
    15 !include $(PDWIN32_INCLUDE)/pdwin32.mk
    1636
    17 CFLAGS = $(CFLAGS)  -I$(PDWIN32_INCLUDE)
    18 CXXFLAGS = $(CXXFLAGS)  -I$(PDWIN32_INCLUDE)
     37# All rule - build objs, target dll, copies dll to bin and makes libs.
     38all:    $(OBJDIR) \
     39        $(OBJDIR)\$(TARGET).dll \
     40        $(PDWIN32_BIN)\$(TARGET).dll \
     41        lib
    1942
    20 OBJS =  initterm.obj \
    21         glideres.obj \
    22         ..\swlibs\pcilib\pcilib.lib \
    23         texus\texus.lib \
    24         init\init.lib \
    25         glide\glide.lib \
    2643
    27 all: ..\swlibs\pcilib\pcilib.lib init\init.lib texus\texus.lib glide\glide.lib $(TARGET).dll $(TARGET).lib
     44# Lib rule - build importlibrary (and evt. other libs)
     45lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    2846
    29 ..\swlibs\pcilib\pcilib.lib:
     47
     48
     49# Libs rule - Make (sub) libraries. (Not import libraries!)
     50libs:
    3051    cd ..\swlibs\pcilib
    31     $(MAKE_CMD)
    32     cd ..\..\cvg
    33 
    34 init\init.lib:
    35     cd init
    36     $(MAKE_CMD)
     52    $(MAKE_CMD) $@
     53    cd ..\..\cvg\init
     54    $(MAKE_CMD) $@
     55    cd ..\glide
     56    $(MAKE_CMD) $@
     57    cd ..\texus
     58    $(MAKE_CMD) $@
    3759    cd ..
    3860
    39 glide\glide.lib:
    40     cd glide
    41     $(MAKE_CMD)
    42     cd ..
    4361
    44 texus\texus.lib:
    45     cd texus
    46     $(MAKE_CMD)
    47     cd ..
     62# Dll rule - builds the target dll.
     63$(OBJDIR)\$(TARGET).dll: $(OBJS) libs $(TARGET).def $(OBJDIR)\$(TARGET).lrf
     64    $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    4865
    49 $(TARGET).dll: $(OBJS) $(TARGET).def
    50     $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \
    51           $(PDWIN32_LIB)/kernel32.lib \
    52           $(PDWIN32_LIB)/odincrt.lib OS2386.LIB $(RTLLIB_O)
    53     $(CP) $@ $(PDWIN32_BIN)\Glide\Voodoo2
    5466
    55 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
     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
     74texus\$(OBJDIR)\texus.lib
     75init\$(OBJDIR)\init.lib
     76glide\$(OBJDIR)\glide.lib
     77$(PDWIN32_LIB)\kernel32.lib
     78$(PDWIN32_LIB)\odincrt.lib
     79OS2386.LIB
     80$(RTLLIB_O)
     81$(TARGET).def
     82<<keep
    5683
    57 $(PDWIN32_LIB)\$(TARGET).lib: $(TARGET).lib
     84
     85# Copy rule - copies the dll.
     86$(PDWIN32_BIN)\Glide\Voodoo2\$(TARGET).dll: $(OBJDIR)\$(TARGET).dll
    5887    $(CP) $** $@
    5988
    60 $(TARGET).lib: $(TARGET).def
    61     $(IMPLIB) $(IMPLIBFLAGS) $@ $(TARGET).def
    62     $(CP) $@ $(PDWIN32_LIB)
    6389
    64 RCFLAGS = $(RCFLAGS) -I..\swlibs\fxmisc -Iglide
    65 
    66 glideres.asm: glide\glide.rc
    67     $(RC) $(RCFLAGS) -o glideres.asm glide\glide.rc
    68 
    69 initterm.obj: initterm.cpp
    70 
     90# Dep rule - makes depenencies for C, C++ and Asm files.
    7191dep:
    7292    $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    7393        *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    7494    cd ..\swlibs\pcilib
    75     $(MAKE_CMD) dep
    76     cd ..\..\cvg\glide
    77     $(MAKE_CMD) dep
    78     cd ..\init
    79     $(MAKE_CMD) dep
     95    $(MAKE_CMD) $@
     96    cd ..\..\cvg\init
     97    $(MAKE_CMD) $@
     98    cd ..\glide
     99    $(MAKE_CMD) $@
    80100    cd ..\texus
    81     $(MAKE_CMD) dep
     101    $(MAKE_CMD) $@
    82102    cd ..
    83103
    84 !ifndef NODEP
    85 !include .depend
    86 !endif
    87104
    88 clean:
    89     $(RM) *.obj *.pch
    90     $(RM) *.map *.dll
    91     $(RM) *.lib
    92     $(RM) glideres.asm
     105# Extra cleanrule.
     106clean2:
    93107    cd ..\swlibs\pcilib
    94108    $(MAKE_CMD) clean
     
    101115    cd ..
    102116
     117
     118# Includes the common rules.
     119!include $(PDWIN32_INCLUDE)/pdwin32.post
     120
     121
     122
Note: See TracChangeset for help on using the changeset viewer.