src/Makefile.wat
author Sam Lantinga <slouken@libsdl.org>
Wed, 01 Feb 2006 06:32:25 +0000
changeset 1312 c9b51268668f
parent 1190 173c063d4f55
permissions -rw-r--r--
Updated copyright information and removed rcs id lines (problematic in branch merges)
I batch edited these files, so please let me know if I've accidentally removed anybody's
credit here.
icculus@1190
     1
#=============================================================================
icculus@1190
     2
#          This is a Watcom makefile to build SDL.DLL for OS/2
icculus@1190
     3
#
icculus@1190
     4
#
icculus@1190
     5
#=============================================================================
icculus@1190
     6
icculus@1190
     7
dllname=SDL
icculus@1190
     8
icculus@1190
     9
audioobjs = audio\SDL_audio.obj audio\SDL_audiocvt.obj audio\SDL_audiomem.obj &
icculus@1190
    10
            audio\SDL_mixer.obj audio\SDL_mixer_MMX_VC.obj audio\SDL_wave.obj &
icculus@1190
    11
            audio\SDL_dart.obj
icculus@1190
    12
cdromobjs = cdrom\SDL_cdrom.obj cdrom\SDL_syscdrom.obj
icculus@1190
    13
cpuinfoobjs = cpuinfo\SDL_cpuinfo.obj
icculus@1190
    14
endianobjs = endian\SDL_endian.obj
icculus@1190
    15
eventsobjs = events\SDL_active.obj events\SDL_events.obj events\SDL_expose.obj &
icculus@1190
    16
             events\SDL_keyboard.obj events\SDL_mouse.obj events\SDL_quit.obj &
icculus@1190
    17
             events\SDL_resize.obj
icculus@1190
    18
fileobjs = file\SDL_rwops.obj
icculus@1190
    19
hermesobjs = hermes\mmx_main.obj hermes\mmxp2_32.obj hermes\x86_main.obj &
icculus@1190
    20
             hermes\x86p_16.obj hermes\x86p_32.obj
icculus@1190
    21
joystickobjs = joystick\SDL_joystick.obj joystick\SDL_sysjoystick.obj
icculus@1190
    22
threadobjs = thread\SDL_thread.obj thread\SDL_sysmutex.obj &
icculus@1190
    23
             thread\SDL_syssem.obj thread\SDL_systhread.obj &
icculus@1190
    24
             thread\SDL_syscond.obj
icculus@1190
    25
timerobjs = timer\SDL_timer.obj timer\SDL_systimer.obj
icculus@1190
    26
videoobjs = video\SDL_blit.obj video\SDL_blit_0.obj video\SDL_blit_1.obj &
icculus@1190
    27
            video\SDL_blit_A.obj video\SDL_blit_N.obj video\SDL_bmp.obj &
icculus@1190
    28
            video\SDL_cursor.obj video\SDL_gamma.obj video\SDL_pixels.obj &
icculus@1190
    29
            video\SDL_RLEaccel.obj video\SDL_stretch.obj video\SDL_surface.obj &
icculus@1190
    30
            video\SDL_video.obj video\SDL_yuv.obj video\SDL_yuv_mmx.obj &
icculus@1190
    31
            video\SDL_yuv_sw.obj video\SDL_os2fslib.obj
icculus@1190
    32
icculus@1190
    33
object_files= SDL.obj SDL_error.obj SDL_fatal.obj SDL_getenv.obj &
icculus@1190
    34
              SDL_loadso.obj $(audioobjs) $(cpuinfoobjs) $(endianobjs) &
icculus@1190
    35
              $(eventsobjs) $(fileobjs) $(joystickobjs) &
icculus@1190
    36
              $(threadobjs) $(timerobjs) $(videoobjs) $(cdromobjs)
icculus@1190
    37
	      
icculus@1190
    38
icculus@1190
    39
# Extra stuffs to pass to C compiler:
icculus@1190
    40
ExtraCFlags=
icculus@1190
    41
icculus@1190
    42
#
icculus@1190
    43
#==============================================================================
icculus@1190
    44
#
icculus@1190
    45
!include ..\Watcom.mif
icculus@1190
    46
icculus@1190
    47
.before
icculus@1190
    48
    @set include=$(%os2tk)\h;$(%include);../include;./thread;./thread/os2;./video;./cdrom;./cdrom/os2;./joystick;./joystick/os2;
icculus@1190
    49
icculus@1190
    50
all : check_subdir_objects $(dllname).dll $(dllname).lib
icculus@1190
    51
icculus@1190
    52
$(dllname).dll : $(dllname).lnk $(object_files)
icculus@1190
    53
    wlink @$(dllname)
icculus@1190
    54
icculus@1190
    55
check_subdir_objects: .always .symbolic
icculus@1190
    56
    @cd audio
icculus@1190
    57
    @wmake -h -f Makefile.wat
icculus@1190
    58
    @cd ..\cdrom
icculus@1190
    59
    @wmake -h -f Makefile.wat
icculus@1190
    60
    @cd ..\cpuinfo
icculus@1190
    61
    @wmake -h -f Makefile.wat
icculus@1190
    62
    @cd ..\endian
icculus@1190
    63
    @wmake -h -f Makefile.wat
icculus@1190
    64
    @cd ..\events
icculus@1190
    65
    @wmake -h -f Makefile.wat
icculus@1190
    66
    @cd ..\file
icculus@1190
    67
    @wmake -h -f Makefile.wat
icculus@1190
    68
    @cd ..\joystick
icculus@1190
    69
    @wmake -h -f Makefile.wat
icculus@1190
    70
    @cd ..\thread
icculus@1190
    71
    @wmake -h -f Makefile.wat
icculus@1190
    72
    @cd ..\timer
icculus@1190
    73
    @wmake -h -f Makefile.wat
icculus@1190
    74
    @cd ..\video
icculus@1190
    75
    @wmake -h -f Makefile.wat
icculus@1190
    76
    @cd ..
icculus@1190
    77
icculus@1190
    78
$(dllname).lnk :
icculus@1190
    79
    @echo Creating linker file ($(dllname).lnk)...
icculus@1190
    80
    @echo $#============================================================================= >$^@
icculus@1190
    81
    @echo $#              This is a linker file to build SDL.DLL for OS/2 >>$^@
icculus@1190
    82
    @echo $# >>$^@
icculus@1190
    83
    @echo $# Generated automatically by Makefile.wat >>$^@
icculus@1190
    84
    @echo $#============================================================================= >>$^@
icculus@1190
    85
    @echo SYSTEM 386 LX DLL INITINSTANCE TERMINSTANCE >>$^@
icculus@1190
    86
    @echo NAME $^& >>$^@
icculus@1190
    87
    @for %i in ($(object_files)) do @echo FILE %i >>$^@
icculus@1190
    88
    @echo LIBPATH %os2tk%\lib >>$^@
icculus@1190
    89
    @echo LIBPATH %fslib% >>$^@
icculus@1190
    90
    @echo LIB mmpm2.lib >>$^@
icculus@1190
    91
    @echo LIB fslib.lib >>$^@
icculus@1190
    92
    @echo OPTION QUIET >>$^@
icculus@1190
    93
    @echo OPTION MAP=$^&.map >>$^@
icculus@1190
    94
    @echo OPTION DESCRIPTION 'Simple DirectMedia Layer v1.2.7' >>$^@
icculus@1190
    95
    @echo OPTION ELIMINATE >>$^@
icculus@1190
    96
    @echo OPTION MANYAUTODATA >>$^@
icculus@1190
    97
    @echo OPTION OSNAME='OS/2 and eComStation' >>$^@
icculus@1190
    98
    @echo OPTION SHOWDEAD >>$^@
icculus@1190
    99
    @echo Linker file created!
icculus@1190
   100
icculus@1190
   101
$(dllname).lib : $(dllname).dll
icculus@1190
   102
    implib $(dllname).lib $(dllname).dll
icculus@1190
   103
icculus@1190
   104
clean : .SYMBOLIC
icculus@1190
   105
    @if exist *.dll del *.dll
icculus@1190
   106
    @if exist *.lib del *.lib
icculus@1190
   107
    @if exist *.obj del *.obj
icculus@1190
   108
    @if exist *.lnk del *.lnk
icculus@1190
   109
    @if exist *.map del *.map
icculus@1190
   110
    @if exist *.res del *.res
icculus@1190
   111
    @if exist *.lst del *.lst
icculus@1190
   112
    @cd audio
icculus@1190
   113
    @wmake -h -f Makefile.wat clean
icculus@1190
   114
    @cd ..\cdrom
icculus@1190
   115
    @wmake -h -f Makefile.wat clean
icculus@1190
   116
    @cd ..\cpuinfo
icculus@1190
   117
    @wmake -h -f Makefile.wat clean
icculus@1190
   118
    @cd ..\endian
icculus@1190
   119
    @wmake -h -f Makefile.wat clean
icculus@1190
   120
    @cd ..\events
icculus@1190
   121
    @wmake -h -f Makefile.wat clean
icculus@1190
   122
    @cd ..\file
icculus@1190
   123
    @wmake -h -f Makefile.wat clean
icculus@1190
   124
    @cd ..\joystick
icculus@1190
   125
    @wmake -h -f Makefile.wat clean
icculus@1190
   126
    @cd ..\thread
icculus@1190
   127
    @wmake -h -f Makefile.wat clean
icculus@1190
   128
    @cd ..\timer
icculus@1190
   129
    @wmake -h -f Makefile.wat clean
icculus@1190
   130
    @cd ..\video
icculus@1190
   131
    @wmake -h -f Makefile.wat clean
icculus@1190
   132
    @cd ..