Changeset 4624 for trunk/src/opengl/glut


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

New makefile style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/opengl/glut/Makefile

    r3864 r4624  
    1 # $Id: Makefile,v 1.15 2000-07-19 19:05:15 sandervl Exp $
     1# $Id: Makefile,v 1.16 2000-11-19 08:58:15 bird Exp $
    22
    33#
     
    77#
    88
     9
     10#
    911# Directory macros.
     12#
    1013PDWIN32_INCLUDE = ..\..\..\include
    1114PDWIN32_LIB     = ..\..\..\lib
     
    1417
    1518
     19#
     20# Tell buildenvironmet to invoke additional dep rule.
     21#
     22ADDITIONAL_DEP = mydep
     23
     24
     25#
    1626# Compiler, tools, and interference rules.
     27#
    1728!include $(PDWIN32_INCLUDE)/pdwin32.mk
    1829
    1930
    20 # Flag overloads and local macros.
    21 CLEANEXTRAS = 32rsrc.asm
    22 
    23 CFLAGS      = -I..\mesa\GL -I..\glu $(CFLAGS_WIN32APP) -I..\mesa
    24 CXXFLAGS    = -I..\mesa\GL -I..\glu $(CXXFLAGS_WIN32APP) -I..\mesa
     31#
     32# Overrides
     33#
     34CINCLUDES   = -I..\mesa\GL -I..\glu $(CINCLUDES) -I..\mesa
     35CDEFINES    = $(CDEFINES_WIN32APP)
     36CFLAGS      = $(CFLAGS_WIN32APP)
     37CXXFLAGS    = $(CXXFLAGS_WIN32APP)
    2538
    2639
    27 # Object files. All objects should be prefixed with $(OBJDIR)!
     40#
     41# Object files. Prefix with OBJDIR and one space before the '\'.
     42#
    2843OBJS = \
    2944$(OBJDIR)\glut_8x13.obj \
     
    7994
    8095
    81 # Target name - name of the dll without extention and path.
    82 TARGET  = glut32
     96#
     97# Libraries. One space before the '\'.
     98#
     99LIBS = \
     100$(PDWIN32_LIB)/$(ODINCRT).lib \
     101$(RTLLIB_O) \
     102$(PDWIN32_LIB)\winmm.lib \
     103$(PDWIN32_LIB)\kernel32.lib \
     104$(PDWIN32_LIB)\gdi32.lib \
     105$(PDWIN32_LIB)\user32.lib \
     106$(PDWIN32_LIB)\glu32.lib \
     107$(PDWIN32_LIB)\opengl32.lib \
     108os2386.lib
    83109
    84110
    85 # All rule - build objs, target dll, copies dll to bin and makes libs.
    86 all:    $(OBJDIR) \
    87         $(OBJDIR)\$(TARGET).dll \
    88         $(PDWIN32_BIN)\$(TARGET).dll \
    89         lib
     111#
     112# Target name - name of the dll without extention and path.
     113#
     114TARGET = glut32
    90115
    91116
    92 # Lib rule - build importlibrary (and evt. other libs)
    93 lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
     117#
     118# Includes the common rules.
     119#
     120!include $(PDWIN32_INCLUDE)/pdwin32.post
    94121
    95122
    96 # Dll rule - builds the target dll.
    97 $(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
    98     $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
    99 
    100 
    101 # Linker file - creates the parameter file passed on to the linker.
    102 $(OBJDIR)\$(TARGET).lrf: makefile
    103     @echo Creating file <<$@
    104 /OUT:$(OBJDIR)\$(TARGET).dll
    105 /MAP:$(OBJDIR)\$(TARGET).map
    106 $(OBJS)
    107 $(PDWIN32_LIB)/$(ODINCRT).lib
    108 $(RTLLIB_O)
    109 $(PDWIN32_LIB)\WINMM.LIB
    110 $(PDWIN32_LIB)\KERNEL32.LIB
    111 $(PDWIN32_LIB)\GDI32.LIB
    112 $(PDWIN32_LIB)\USER32.LIB
    113 $(PDWIN32_LIB)\GLU32.LIB
    114 $(PDWIN32_LIB)\OPENGL32.LIB
    115 OS2386.LIB
    116 $(TARGET).def
    117 <<keep
    118 
    119 
    120 # Dep rule - makes depenencies for C, C++ and Asm files.
    121 dep:
    122     $(DEPEND) -I..\mesa\GL -I..\glu -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win -I..\mesa \
     123#
     124# Additional dep rule - adds dependencies for some additional headers.
     125#
     126mydep:
     127    $(DEPEND) -a $(CINCLUDES) \
    123128        *.c *.cpp *.asm *.inc $(PDWIN32_INCLUDE)\*.h ..\mesa\gl\*.h
    124129
    125 
    126 # Includes the common rules.
    127 !include $(PDWIN32_INCLUDE)/pdwin32.post
    128 
Note: See TracChangeset for help on using the changeset viewer.