rename os2 makefile so that 'make dist' catches it; update it a bit. release-2.0.9
authorOzkan Sezer <sezeroz@gmail.com>
Tue, 30 Oct 2018 20:11:02 +0300
changeset 123738feb5da6f2fb
parent 12372 bced4041fcc0
child 12374 0f9e74a94e62
rename os2 makefile so that 'make dist' catches it; update it a bit.
Makefile.os2
OWMakefile.os2
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile.os2	Tue Oct 30 20:11:02 2018 +0300
     1.3 @@ -0,0 +1,126 @@
     1.4 +# Open Watcom makefile to build SDL2.dll for OS/2:
     1.5 +# wmake -f Makefile.os2
     1.6 +
     1.7 +LIBNAME = SDL2
     1.8 +VERSION = 2.0.9
     1.9 +DESCRIPTION = Simple DirectMedia Layer 2
    1.10 +
    1.11 +LIBHOME = .
    1.12 +LIBPATH = $(LIBHOME)/lib
    1.13 +DLLFILE = $(LIBHOME)/$(LIBNAME).dll
    1.14 +LIBFILE = $(LIBHOME)/$(LIBNAME).lib
    1.15 +LNKFILE = $(LIBNAME).lnk
    1.16 +
    1.17 +INCPATH = -I"$(%WATCOM)/h/os2" -I"$(%WATCOM)/h"
    1.18 +INCPATH+= -I"$(LIBHOME)/h"
    1.19 +INCPATH+= -Iinclude
    1.20 +
    1.21 +LIBS = mmpm2.lib libuls.lib libconv.lib
    1.22 +
    1.23 +CFLAGS = -bt=os2 -d0 -q -bm -5s -fp5 -fpi87 -sg -oteanbmier -ei
    1.24 +# max warnings:
    1.25 +CFLAGS+= -wx
    1.26 +# building dll:
    1.27 +CFLAGS+= -bd
    1.28 +# the include paths :
    1.29 +CFLAGS+= $(INCPATH)
    1.30 +# building SDL itself:
    1.31 +CFLAGS+= -DBUILD_SDL
    1.32 +
    1.33 +SRCS = SDL.c SDL_assert.c SDL_error.c SDL_log.c SDL_dataqueue.c SDL_hints.c
    1.34 +SRCS+= SDL_getenv.c SDL_iconv.c SDL_malloc.c SDL_qsort.c SDL_stdlib.c SDL_string.c
    1.35 +SRCS+= SDL_cpuinfo.c SDL_atomic.c SDL_spinlock.c SDL_thread.c SDL_timer.c
    1.36 +SRCS+= SDL_rwops.c SDL_power.c
    1.37 +SRCS+= SDL_audio.c SDL_audiocvt.c SDL_audiodev.c SDL_audiotypecvt.c SDL_mixer.c SDL_wave.c
    1.38 +SRCS+= SDL_events.c SDL_quit.c SDL_keyboard.c SDL_mouse.c SDL_windowevents.c &
    1.39 +       SDL_clipboardevents.c SDL_dropevents.c SDL_displayevents.c SDL_gesture.c &
    1.40 +       SDL_sensor.c SDL_touch.c
    1.41 +SRCS+= SDL_haptic.c SDL_gamecontroller.c SDL_joystick.c
    1.42 +SRCS+= SDL_render.c yuv_rgb.c SDL_yuv.c SDL_yuv_sw.c SDL_blendfillrect.c &
    1.43 +       SDL_blendline.c SDL_blendpoint.c SDL_drawline.c SDL_drawpoint.c &
    1.44 +       SDL_render_sw.c SDL_rotate.c
    1.45 +SRCS+= SDL_blit.c SDL_blit_0.c SDL_blit_1.c SDL_blit_A.c SDL_blit_auto.c &
    1.46 +       SDL_blit_copy.c SDL_blit_N.c SDL_blit_slow.c SDL_fillrect.c SDL_bmp.c &
    1.47 +       SDL_pixels.c SDL_rect.c SDL_RLEaccel.c SDL_shape.c SDL_stretch.c &
    1.48 +       SDL_surface.c SDL_video.c SDL_clipboard.c SDL_vulkan_utils.c SDL_egl.c
    1.49 +
    1.50 +SRCS+= SDL_syscond.c SDL_sysmutex.c SDL_syssem.c SDL_systhread.c SDL_systls.c
    1.51 +SRCS+= SDL_systimer.c
    1.52 +SRCS+= SDL_sysloadso.c
    1.53 +SRCS+= SDL_sysfilesystem.c
    1.54 +SRCS+= SDL_syshaptic.c SDL_sysjoystick.c
    1.55 +SRCS+= SDL_dummyaudio.c SDL_diskaudio.c
    1.56 +SRCS+= SDL_nullvideo.c SDL_nullframebuffer.c SDL_nullevents.c
    1.57 +SRCS+= SDL_dummysensor.c
    1.58 +
    1.59 +SRCS+= SDL_dynapi.c
    1.60 +
    1.61 +OBJS = $(SRCS:.c=.obj)
    1.62 +
    1.63 +.extensions:
    1.64 +.extensions: .lib .dll .obj .c .asm
    1.65 +
    1.66 +.c: ./src;./src/dynapi;./src/audio;./src/cpuinfo;./src/events;./src/file;./src/haptic;./src/joystick;./src/power;./src/render;./src/render/software;./src/sensor;./src/stdlib;./src/thread;./src/timer;./src/video;./src/video/yuv2rgb;./src/atomic;./src/audio/disk;
    1.67 +.c: ./src/haptic/dummy;./src/joystick/dummy;./src/audio/dummy;./src/video/dummy;./src/sensor/dummy;
    1.68 +.c: ./src/loadso/dummy;./src/filesystem/dummy;./src/timer/dummy;./src/thread/generic;
    1.69 +
    1.70 +all: $(DLLFILE) $(LIBFILE) .symbolic
    1.71 +
    1.72 +$(DLLFILE): $(OBJS) $(LNKFILE)
    1.73 +    @echo * Linking: $@
    1.74 +    wlink @$(LNKFILE)
    1.75 +
    1.76 +$(LIBFILE): $(DLLFILE)
    1.77 +    @echo * Creating LIB file: $@
    1.78 +    wlib -q -b -n -c -pa -s -t -zld -ii -io $* $(DLLFILE)
    1.79 +
    1.80 +.c.obj:
    1.81 +    wcc386 $(CFLAGS) -fo=$^@ $<
    1.82 +
    1.83 +SDL_cpuinfo.obj: SDL_cpuinfo.c
    1.84 +    wcc386 $(CFLAGS) -wcd=200 -fo=$^@ $<
    1.85 +
    1.86 +SDL_rwops.obj: SDL_rwops.c
    1.87 +    wcc386 $(CFLAGS) -wcd=136 -fo=$^@ $<
    1.88 +
    1.89 +SDL_blendfillrect.obj: SDL_blendfillrect.c
    1.90 +    wcc386 $(CFLAGS) -wcd=200 -fo=$^@ $<
    1.91 +
    1.92 +SDL_blendline.obj: SDL_blendline.c
    1.93 +    wcc386 $(CFLAGS) -wcd=200 -fo=$^@ $<
    1.94 +
    1.95 +SDL_blendpoint.obj: SDL_blendpoint.c
    1.96 +    wcc386 $(CFLAGS) -wcd=200 -fo=$^@ $<
    1.97 +
    1.98 +SDL_RLEaccel.obj: SDL_RLEaccel.c
    1.99 +    wcc386 $(CFLAGS) -wcd=201 -fo=$^@ $<
   1.100 +
   1.101 +$(LNKFILE):
   1.102 +    @echo * Creating linker file: $@
   1.103 +    @%create $@
   1.104 +    @%append $@ SYSTEM os2v2_dll INITINSTANCE TERMINSTANCE
   1.105 +    @%append $@ NAME $(DLLFILE)
   1.106 +    @for %i in ($(OBJS)) do @%append $@ FILE %i
   1.107 +    @%append $@ LIBPATH $(%LIB);$(LIBPATH)
   1.108 +    @for %i in ($(LIBS)) do @%append $@ LIB %i
   1.109 +    @%append $@ OPTION QUIET
   1.110 +    @%append $@ OPTION IMPF=$(LIBHOME)/$^&.exp
   1.111 +    @%append $@ OPTION MAP=$(LIBHOME)/$^&.map
   1.112 +    @%append $@ OPTION DESCRIPTION '@$#libsdl org:$(VERSION)$#@$(DESCRIPTION)'
   1.113 +    @%append $@ OPTION QUIET
   1.114 +    @%append $@ OPTION ELIMINATE
   1.115 +    @%append $@ OPTION MANYAUTODATA
   1.116 +    @%append $@ OPTION OSNAME='OS/2 and eComStation'
   1.117 +    @%append $@ OPTION SHOWDEAD
   1.118 +
   1.119 +clean: .SYMBOLIC
   1.120 +    @ echo * Clean: $(LIBNAME)
   1.121 +    @if exist *.obj rm *.obj
   1.122 +    @if exist *.err rm *.err
   1.123 +    @if exist $(LNKFILE) rm $(LNKFILE)
   1.124 +
   1.125 +distclean: .SYMBOLIC clean
   1.126 +    @if exist $(LIBHOME)/*.exp rm $(LIBHOME)/*.exp
   1.127 +    @if exist $(LIBHOME)/*.map rm $(LIBHOME)/*.map
   1.128 +    @if exist $(LIBFILE) rm $(LIBFILE)
   1.129 +    @if exist $(DLLFILE) rm $(DLLFILE)
     2.1 --- a/OWMakefile.os2	Tue Oct 30 07:00:03 2018 -0700
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,110 +0,0 @@
     2.4 -# Open Watcom Makefile to build a minimal OS/2 SDL2.dll
     2.5 -
     2.6 -DLLFILE = SDL2.dll
     2.7 -IMPLIB  = SDL2.lib
     2.8 -MAPFILE = SDL2.map
     2.9 -EXPFILE = SDL2.exp
    2.10 -LNKFILE = SDL2.lnk
    2.11 -
    2.12 -INCPATH = -I"$(%WATCOM)/h/os2" -I"$(%WATCOM)/h"
    2.13 -INCPATH+= -Iinclude
    2.14 -
    2.15 -CFLAGS = -bt=os2 -d0 -q -bm -5s -fp5 -fpi87 -sg -oteanbmier -ei
    2.16 -# max warnings:
    2.17 -CFLAGS+= -wx
    2.18 -# building dll:
    2.19 -CFLAGS+= -bd
    2.20 -# the include paths :
    2.21 -CFLAGS+= $(INCPATH)
    2.22 -# building SDL itself:
    2.23 -CFLAGS+= -DBUILD_SDL
    2.24 -
    2.25 -SRCS = SDL.c SDL_assert.c SDL_error.c SDL_log.c SDL_dataqueue.c SDL_hints.c
    2.26 -SRCS+= SDL_getenv.c SDL_iconv.c SDL_malloc.c SDL_qsort.c SDL_stdlib.c SDL_string.c
    2.27 -SRCS+= SDL_cpuinfo.c SDL_atomic.c SDL_spinlock.c SDL_thread.c SDL_timer.c
    2.28 -SRCS+= SDL_rwops.c SDL_power.c
    2.29 -SRCS+= SDL_audio.c SDL_audiocvt.c SDL_audiodev.c SDL_audiotypecvt.c SDL_mixer.c SDL_wave.c
    2.30 -SRCS+= SDL_events.c SDL_quit.c SDL_keyboard.c SDL_mouse.c SDL_windowevents.c &
    2.31 -       SDL_clipboardevents.c SDL_dropevents.c SDL_displayevents.c SDL_gesture.c &
    2.32 -       SDL_sensor.c SDL_touch.c
    2.33 -SRCS+= SDL_haptic.c SDL_gamecontroller.c SDL_joystick.c
    2.34 -SRCS+= SDL_render.c yuv_rgb.c SDL_yuv.c SDL_yuv_sw.c SDL_blendfillrect.c &
    2.35 -       SDL_blendline.c SDL_blendpoint.c SDL_drawline.c SDL_drawpoint.c &
    2.36 -       SDL_render_sw.c SDL_rotate.c
    2.37 -SRCS+= SDL_blit.c SDL_blit_0.c SDL_blit_1.c SDL_blit_A.c SDL_blit_auto.c &
    2.38 -       SDL_blit_copy.c SDL_blit_N.c SDL_blit_slow.c SDL_fillrect.c SDL_bmp.c &
    2.39 -       SDL_pixels.c SDL_rect.c SDL_RLEaccel.c SDL_shape.c SDL_stretch.c &
    2.40 -       SDL_surface.c SDL_video.c SDL_clipboard.c SDL_vulkan_utils.c SDL_egl.c
    2.41 -
    2.42 -SRCS+= SDL_syscond.c SDL_sysmutex.c SDL_syssem.c SDL_systhread.c SDL_systls.c
    2.43 -SRCS+= SDL_systimer.c
    2.44 -SRCS+= SDL_sysloadso.c
    2.45 -SRCS+= SDL_sysfilesystem.c
    2.46 -SRCS+= SDL_syshaptic.c SDL_sysjoystick.c
    2.47 -SRCS+= SDL_dummyaudio.c SDL_diskaudio.c
    2.48 -SRCS+= SDL_nullvideo.c SDL_nullframebuffer.c SDL_nullevents.c
    2.49 -SRCS+= SDL_dummysensor.c
    2.50 -
    2.51 -SRCS+= SDL_dynapi.c
    2.52 -
    2.53 -OBJS = $(SRCS:.c=.obj)
    2.54 -
    2.55 -.extensions:
    2.56 -.extensions: .lib .dll .obj .c .asm
    2.57 -
    2.58 -.c: ./src;./src/dynapi;./src/audio;./src/cpuinfo;./src/events;./src/file;./src/haptic;./src/joystick;./src/power;./src/render;./src/render/software;./src/sensor;./src/stdlib;./src/thread;./src/timer;./src/video;./src/video/yuv2rgb;./src/haptic/dummy;./src/joystick/dummy;./src/loadso/dummy;./src/filesystem/dummy;./src/thread/generic;./src/timer/dummy;./src/power;./src/power/os2;./src/atomic;./src/audio/dummy;./src/audio/disk;./src/video/dummy;./src/sensor/dummy;./src/test;
    2.59 -
    2.60 -all: $(DLLFILE) $(LIBFILE) .symbolic
    2.61 -
    2.62 -$(DLLFILE): $(OBJS) $(LNKFILE)
    2.63 -    wlink @$(LNKFILE)
    2.64 -
    2.65 -$(IMPLIB): $(DLLFILE)
    2.66 -    wlib -q -b -n -c -pa -s -t -zld -ii -io $* $(DLLFILE)
    2.67 -
    2.68 -.c.obj:
    2.69 -    wcc386 $(CFLAGS) -fo=$^@ $<
    2.70 -
    2.71 -SDL_cpuinfo.obj: SDL_cpuinfo.c
    2.72 -    wcc386 $(CFLAGS) -wcd=200 -fo=$^@ $<
    2.73 -
    2.74 -SDL_rwops.obj: SDL_rwops.c
    2.75 -    wcc386 $(CFLAGS) -wcd=136 -fo=$^@ $<
    2.76 -
    2.77 -SDL_blendfillrect.obj: SDL_blendfillrect.c
    2.78 -    wcc386 $(CFLAGS) -wcd=200 -fo=$^@ $<
    2.79 -
    2.80 -SDL_blendline.obj: SDL_blendline.c
    2.81 -    wcc386 $(CFLAGS) -wcd=200 -fo=$^@ $<
    2.82 -
    2.83 -SDL_blendpoint.obj: SDL_blendpoint.c
    2.84 -    wcc386 $(CFLAGS) -wcd=200 -fo=$^@ $<
    2.85 -
    2.86 -SDL_RLEaccel.obj: SDL_RLEaccel.c
    2.87 -    wcc386 $(CFLAGS) -wcd=201 -fo=$^@ $<
    2.88 -
    2.89 -$(LNKFILE):
    2.90 -    @%create $@
    2.91 -    @%append $@ SYSTEM os2v2_dll INITINSTANCE TERMINSTANCE
    2.92 -    @%append $@ NAME $(DLLFILE)
    2.93 -    @for %i in ($(OBJS)) do @%append $@ FILE %i
    2.94 -    @%append $@ OPTION QUIET
    2.95 -    @%append $@ OPTION IMPF=$(EXPFILE)
    2.96 -    @%append $@ OPTION MAP=$(MAPFILE)
    2.97 -    @%append $@ OPTION QUIET
    2.98 -    @%append $@ OPTION ELIMINATE
    2.99 -    @%append $@ OPTION MANYAUTODATA
   2.100 -    @%append $@ OPTION OSNAME='OS/2 and eComStation'
   2.101 -    @%append $@ OPTION SHOWDEAD
   2.102 -
   2.103 -clean: .SYMBOLIC
   2.104 -    @ echo * Clean: $(LIBNAME)
   2.105 -    @if exist *.obj rm *.obj
   2.106 -    @if exist *.err rm *.err
   2.107 -    @if exist $(LNKFILE) rm $(LNKFILE)
   2.108 -
   2.109 -distclean: .SYMBOLIC clean
   2.110 -    @if exist $(MAPFILE) rm $(MAPFILE)
   2.111 -    @if exist $(EXPFILE) rm $(EXPFILE)
   2.112 -    @if exist $(IMPLIB) rm $(IMPLIB)
   2.113 -    @if exist $(DLLFILE) rm $(DLLFILE)