Changeset 3031 for trunk/src/opengl/glut


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.

Location:
trunk/src/opengl/glut
Files:
1 added
1 deleted
1 edited

Legend:

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

    r3022 r3031  
    1 # $Id: Makefile,v 1.10 2000-03-05 10:19:37 jeroen Exp $
     1# $Id: Makefile,v 1.11 2000-03-06 23:33:11 bird Exp $
    22
    33#
    4 # PD-Win32 API
     4# Odin32 API
    55#
    66#       glut32.dll makefile
    77#
    88
     9# Directory macros.
    910PDWIN32_INCLUDE = ..\..\..\include
    10 PDWIN32_LIB = ..\..\..\lib
    11 PDWIN32_BIN = ..\..\..\bin
    12 PDWIN32_TOOLS = ..\..\..\tools\bin
     11PDWIN32_LIB     = ..\..\..\lib
     12PDWIN32_BIN     = ..\..\..\$(OBJDIR)
     13PDWIN32_TOOLS   = ..\..\..\tools\bin
    1314
    1415
     16# Compiler, tools, and interference rules.
    1517!include $(PDWIN32_INCLUDE)/pdwin32.mk
    1618
    1719
    18 CFLAGS   = -Tdp -I..\mesa\GL -I..\glu $(CFLAGS) -I$(PDWIN32_INCLUDE) -I..\mesa
    19 CXXFLAGS = -Tdp -I..\mesa\GL -I..\glu $(CXXFLAGS) -I$(PDWIN32_INCLUDE) -I..\mesa
     20# Flag overloads and local macros.
     21CLEANEXTRAS = 32rsrc.asm
    2022
    21 TARGET=GLUT32
    22 
    23 all: $(TARGET).DLL $(TARGET).LIB
    24 
    25 OBJS = glut_8x13.obj glut_9x15.obj glut_bitmap.obj glut_bwidth.obj glut_cindex.obj \
    26        glut_cmap.obj glut_cursor.obj glut_dials.obj glut_dstr.obj glut_event.obj \
    27        glut_ext.obj glut_fullscrn.obj glut_gamemode.obj glut_get.obj glut_hel10.obj \
    28        glut_hel12.obj glut_hel18.obj glut_init.obj glut_input.obj glut_joy.obj glut_key.obj \
    29        glut_keyctrl.obj glut_keyup.obj glut_mesa.obj glut_modifier.obj glut_mroman.obj \
    30        glut_overlay.obj glut_roman.obj glut_shapes.obj glut_space.obj glut_stroke.obj \
    31        glut_swap.obj glut_swidth.obj glut_tablet.obj glut_teapot.obj glut_tr10.obj \
    32        glut_tr24.obj glut_util.obj glut_vidresize.obj glut_warp.obj glut_win.obj \
    33        glut_winmisc.obj win32_glx.obj win32_menu.obj win32_util.obj win32_winproc.obj \
    34        win32_x11.obj glut_term.obj initterm.obj resource.obj
    35 
    36 all: $(TARGET).DLL
    37 
    38 $(TARGET).DLL: $(OBJS) $(TARGET).def $(TARGET).lrf
    39     $(LD2) $(LD2FLAGS) /FREE @$(TARGET).lrf
    40     $(CP) $@ $(PDWIN32_BIN)
     23CFLAGS      = -Tdp -I..\mesa\GL -I..\glu $(CFLAGS) -I..\mesa
     24CXXFLAGS    = -Tdp -I..\mesa\GL -I..\glu $(CXXFLAGS) -I..\mesa
    4125
    4226
    43 $(TARGET).lrf: makefile
    44     @echo Creating file <<$(@B).lrf
     27# Object files. All objects should be prefixed with $(OBJDIR)!
     28OBJS = \
     29$(OBJDIR)\glut_8x13.obj \
     30$(OBJDIR)\glut_9x15.obj \
     31$(OBJDIR)\glut_bitmap.obj \
     32$(OBJDIR)\glut_bwidth.obj \
     33$(OBJDIR)\glut_cindex.obj \
     34$(OBJDIR)\glut_cmap.obj \
     35$(OBJDIR)\glut_cursor.obj \
     36$(OBJDIR)\glut_dials.obj \
     37$(OBJDIR)\glut_dstr.obj \
     38$(OBJDIR)\glut_event.obj \
     39$(OBJDIR)\glut_ext.obj \
     40$(OBJDIR)\glut_fullscrn.obj \
     41$(OBJDIR)\glut_gamemode.obj \
     42$(OBJDIR)\glut_get.obj \
     43$(OBJDIR)\glut_hel10.obj \
     44$(OBJDIR)\glut_hel12.obj \
     45$(OBJDIR)\glut_hel18.obj \
     46$(OBJDIR)\glut_init.obj \
     47$(OBJDIR)\glut_input.obj \
     48$(OBJDIR)\glut_joy.obj \
     49$(OBJDIR)\glut_key.obj \
     50$(OBJDIR)\glut_keyctrl.obj \
     51$(OBJDIR)\glut_keyup.obj \
     52$(OBJDIR)\glut_mesa.obj \
     53$(OBJDIR)\glut_modifier.obj \
     54$(OBJDIR)\glut_mroman.obj \
     55$(OBJDIR)\glut_overlay.obj \
     56$(OBJDIR)\glut_roman.obj \
     57$(OBJDIR)\glut_shapes.obj \
     58$(OBJDIR)\glut_space.obj \
     59$(OBJDIR)\glut_stroke.obj \
     60$(OBJDIR)\glut_swap.obj \
     61$(OBJDIR)\glut_swidth.obj \
     62$(OBJDIR)\glut_tablet.obj \
     63$(OBJDIR)\glut_teapot.obj \
     64$(OBJDIR)\glut_tr10.obj \
     65$(OBJDIR)\glut_tr24.obj \
     66$(OBJDIR)\glut_util.obj \
     67$(OBJDIR)\glut_vidresize.obj \
     68$(OBJDIR)\glut_warp.obj \
     69$(OBJDIR)\glut_win.obj \
     70$(OBJDIR)\glut_winmisc.obj \
     71$(OBJDIR)\win32_glx.obj \
     72$(OBJDIR)\win32_menu.obj \
     73$(OBJDIR)\win32_util.obj \
     74$(OBJDIR)\win32_winproc.obj \
     75$(OBJDIR)\win32_x11.obj \
     76$(OBJDIR)\glut_term.obj \
     77$(OBJDIR)\initterm.obj \
     78$(OBJDIR)\glut32rsrc.obj
     79
     80
     81# Target name - name of the dll without extention and path.
     82TARGET  = glut32
     83
     84
     85# All rule - build objs, target dll, copies dll to bin and makes libs.
     86all:    $(OBJDIR) \
     87        $(OBJDIR)\$(TARGET).dll \
     88        $(PDWIN32_BIN)\$(TARGET).dll \
     89        lib
     90
     91
     92# Lib rule - build importlibrary (and evt. other libs)
     93lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
     94
     95
     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 <<$@
    45104$(OBJS)
    46 /OUT:$(TARGET).DLL /DLL
    47105$(PDWIN32_LIB)\ODINCRT.LIB
    48106$(RTLLIB_O)
     
    58116
    59117
    60 $(TARGET).lib: $(TARGET)exp.def
    61     $(IMPLIB) $(IMPLIBFLAGS) $@ $(TARGET)exp.def
    62     $(CP) $@ $(PDWIN32_LIB)
    63 
    64 $(TARGET)exp.def: $(TARGET).def
    65     $(IMPDEF) $** $@
    66 
    67 
    68 resource.asm: $(TARGET).rc
    69     $(RC) $(RCFLAGS) -o resource.asm $(TARGET).rc
    70 
    71 
     118# Dep rule - makes depenencies for C, C++ and Asm files.
    72119dep:
    73120    $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win -I..\mesa\GL \
    74121        *.c *.cpp *.asm *.inc $(PDWIN32_INCLUDE)\*.h
    75122
    76 !ifndef NODEP
    77 !include .depend
    78 !endif
    79123
     124# Includes the common rules.
     125!include $(PDWIN32_INCLUDE)/pdwin32.post
    80126
    81 clean:
    82     $(RM) *.obj *.lib *.dll *.map *.lrf *exp.def resource.asm \
    83         $(PDWIN32_BIN)\$(TARGET).dll $(PDWIN32_LIB)\$(TARGET).lib
Note: See TracChangeset for help on using the changeset viewer.