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

    r3011 r3031  
    1 # $Id: makefile,v 1.2 2000-03-04 20:03:43 bird Exp $
     1# $Id: makefile,v 1.3 2000-03-06 23:33:44 bird Exp $
     2
    23#
    3 # PD-Win32 API
     4# Odin32 API
    45#
    5 #       Glide makefile
     6#       sst1\Glide makefile
    67#
    78
     9# Directory macros.
    810PDWIN32_INCLUDE = ..\..\..\..\include
    911PDWIN32_LIB = ..\..\..\..\lib
     
    1113PDWIN32_TOOLS = ..\..\..\..\tools\bin
    1214
     15
     16# Have extra clean rule.
     17CLEAN2 = 1
     18
     19# Compiler, tools, and interference rules.
     20!include $(PDWIN32_INCLUDE)/pdwin32.mk
     21
     22
     23# Object files. All objects should be prefixed with $(OBJDIR)!
     24OBJS = \
     25$(OBJDIR)\initterm.obj
     26
     27
     28# Target name - name of the dll without extention and path.
    1329TARGET = glide2x
    1430
    15 !include $(PDWIN32_INCLUDE)/pdwin32.mk
    1631
    17 CFLAGS = $(CFLAGS)  -I$(PDWIN32_INCLUDE)
    18 CXXFLAGS = $(CXXFLAGS)  -I$(PDWIN32_INCLUDE)
     32# All rule - build objs, target dll, copies dll to bin and makes libs.
     33all:    $(OBJDIR) \
     34        libs \
     35        $(OBJDIR)\$(TARGET).dll \
     36        $(PDWIN32_BIN)\$(TARGET).dll \
     37        lib
    1938
    20 OBJS =  initterm.obj \
    21         glideres.obj \
    22         ..\swlibs\pcilib\pcilib.lib \
    23         texus\texus.lib \
    24         init\init.lib \
    25         glide\glide.lib \
    2639
    27 all: ..\swlibs\pcilib\pcilib.lib init\init.lib texus\texus.lib glide\glide.lib $(TARGET).dll $(TARGET).lib
     40# Lib rule - build importlibrary (and evt. other libs)
     41lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    2842
    29 ..\swlibs\pcilib\pcilib.lib:
     43
     44# Libs rule - Make (sub) libraries. (Not import libraries!)
     45libs:
    3046    cd ..\swlibs\pcilib
    31     $(MAKE_CMD)
    32     cd ..\..\sst1
    33 
    34 init\init.lib:
    35     cd init
    36     $(MAKE_CMD)
     47    $(MAKE_CMD) $@
     48    cd ..\..\sst1\init
     49    $(MAKE_CMD) $@
     50    cd ..\glide
     51    $(MAKE_CMD) $@
     52    cd ..\texus
     53    $(MAKE_CMD) $@
    3754    cd ..
    3855
    39 glide\glide.lib:
    40     cd glide
    41     $(MAKE_CMD)
    42     cd ..
    43 
    44 texus\texus.lib:
    45     cd texus
    46     $(MAKE_CMD)
    47     cd ..
    4856
    4957$(TARGET).dll: $(OBJS) $(TARGET).def
     
    5159          $(PDWIN32_LIB)/kernel32.lib \
    5260          $(PDWIN32_LIB)/odincrt.lib OS2386.LIB $(RTLLIB_O)
    53     $(CP) $@ $(PDWIN32_BIN)\Glide\Voodoo1
    5461
    55 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
    5662
    57 $(PDWIN32_LIB)\$(TARGET).lib: $(TARGET).lib
     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
     75texus\$(OBJDIR)\texus.lib
     76init\$(OBJDIR)\init.lib
     77glide\$(OBJDIR)\glide.lib
     78$(PDWIN32_LIB)\kernel32.lib
     79$(PDWIN32_LIB)\odincrt.lib
     80OS2386.LIB
     81$(RTLLIB_O)
     82$(TARGET).def
     83<<keep
     84
     85
     86# Copy rule.
     87$(PDWIN32_BIN)\Glide\Voodoo1\$(TARGET).dll: $(OBJDIR)\$(TARGET).dll
    5888    $(CP) $** $@
    5989
    60 $(TARGET).lib: $(TARGET).def
    61     $(IMPLIB) $(IMPLIBFLAGS) $@ $(TARGET).def
    62     $(CP) $@ $(PDWIN32_LIB)
    6390
    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 
     91# Dep rule - makes depenencies for C, C++ and Asm files.
    7192dep:
    7293    $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
    7394        *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    7495    cd ..\swlibs\pcilib
    75     $(MAKE_CMD) dep
    76     cd ..\..\sst1\glide
    77     $(MAKE_CMD) dep
    78     cd ..\init
    79     $(MAKE_CMD) dep
     96    $(MAKE_CMD) $@
     97    cd ..\..\sst1\init
     98    $(MAKE_CMD) $@
     99    cd ..\glide
     100    $(MAKE_CMD) $@
    80101    cd ..\texus
    81     $(MAKE_CMD) dep
     102    $(MAKE_CMD) $@
    82103    cd ..
    83104
    84 !ifndef NODEP
    85 !include .depend
    86 !endif
    87105
    88 clean:
    89     $(RM) *.obj *.pch
    90     $(RM) *.map *.dll
    91     $(RM) *.lib
    92     $(RM) glideres.asm
     106# Includes the common rules.
     107!include $(PDWIN32_INCLUDE)/pdwin32.post
     108
     109
     110# Extra clean rule
     111clean2:
    93112    cd ..\swlibs\pcilib
    94113    $(MAKE_CMD) clean
    95     cd ..\..\sst1\glide
     114    cd ..\..\sst1\init
    96115    $(MAKE_CMD) clean
    97     cd ..\init
     116    cd ..\glide
    98117    $(MAKE_CMD) clean
    99118    cd ..\texus
Note: See TracChangeset for help on using the changeset viewer.