Ignore:
Timestamp:
Mar 7, 2000, 12:39:20 AM (25 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/swlibs/pcilib/makefile

    r2967 r3031  
    1 # $Id: makefile,v 1.2 2000-03-02 13:22:02 sandervl Exp $
     1# $Id: makefile,v 1.3 2000-03-06 23:33:47 bird Exp $
    22#
    3 # PD-Win32 API
     3# Odin32 API
    44#
    5 #       Glide makefile
     5#       swlibs\pcilib makefile
    66#
    77
     8# Directory macros.
    89PDWIN32_INCLUDE = ..\..\..\..\..\include
    9 PDWIN32_LIB = ..\..\..\..\..\lib
    10 PDWIN32_BIN = ..\..\..\..\..\bin
    11 PDWIN32_TOOLS = ..\..\..\..\..\tools\bin
     10PDWIN32_LIB     = ..\..\..\..\..\lib
     11PDWIN32_BIN     = ..\..\..\..\..\$(OBJDIR)
     12PDWIN32_TOOLS   = ..\..\..\..\..\tools\bin
    1213
    13 TARGET=pcilib
    1414
     15# Local cleanup only.
     16LOCALCLEAN = 1
     17
     18
     19# Compiler, tools, and interference rules.
    1520!include $(PDWIN32_INCLUDE)/pdwin32.mk
    1621!include ..\..\sst1\3dfx.mak
     22
     23
     24# Flag overloads and local macros.
     25CLEANEXTRAS =
    1726
    1827CINCLUDE=-I..\..\sst1\incsrc;..\fxmisc;..\..\sst1\init\initvg;..\..\sst1\glide;..\..\sst1\texus;..\..\sst1\init;$(PDWIN32_INCLUDE)
     
    2130CXXFLAGS = $(CXXFLAGS) $(CINCLUDE)
    2231
    23 OBJS = fxos2.obj fxpci.obj sst1_pci.obj fxinfo.obj
    2432
    25 all: $(TARGET).lib
     33# Object files. All objects should be prefixed with $(OBJDIR)!
     34OBJS = \
     35$(OBJDIR)\fxos2.obj \
     36$(OBJDIR)\fxpci.obj \
     37$(OBJDIR)\sst1_pci.obj \
     38$(OBJDIR)\fxinfo.obj
    2639
    27 $(TARGET).lib: $(OBJS)
    28         $(RM) $(TARGET).lib
    29         $(ILIB) $(ILIBFLAGS) $(TARGET).lib $(OBJS) ,,
    3040
     41# Target name - name of the library without extention and path.
     42TARGET  = pcilib
     43
     44
     45# All rule - build objs and target library.
     46all:    $(OBJDIR) \
     47        $(OBJDIR)\$(TARGET).lib
     48
     49
     50# Create all libraries (not importlibraries)
     51libs: all
     52
     53
     54# Lib rule - build importlibrary (and evt. other libs)
     55$(OBJDIR)\$(TARGET).lib: $(OBJS)
     56    $(RM) $@
     57    $(ILIB) $(ILIBFLAGS) $@ $(OBJS);
     58
     59
     60# Dep rule - makes depenencies for C, C++ and Asm files.
    3161dep:
    3262    $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win $(CINCLUDE) \
    3363        *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h \
    34         ..\..\sst1\incsrc\*.h ..\fxmisc\*.h ..\..\sst1\init\initvg\*.h ..\..\sst1\glide*.h ..\..\sst1\texus\*.h ..\..\sst1\init\*.h
     64        ..\..\sst1\incsrc\*.h ..\fxmisc\*.h ..\..\sst1\init\initvg\*.h \
     65        ..\..\sst1\glide*.h ..\..\sst1\texus\*.h ..\..\sst1\init\*.h
    3566
    36 !ifndef NODEP
    37 !include .depend
    38 !endif
    3967
    40 clean:
    41     $(RM) *.obj *.pch
    42     $(RM) *.lib
     68# Includes the common rules.
     69!include $(PDWIN32_INCLUDE)/pdwin32.post
    4370
Note: See TracChangeset for help on using the changeset viewer.