rename os2 makefile so that 'make dist' catches it; update it a bit.
parent
da56cefa8b
commit
c49ecf6f7c
|
@ -1,14 +1,22 @@
|
||||||
# Open Watcom Makefile to build a minimal OS/2 SDL2.dll
|
# Open Watcom makefile to build SDL2.dll for OS/2:
|
||||||
|
# wmake -f Makefile.os2
|
||||||
|
|
||||||
DLLFILE = SDL2.dll
|
LIBNAME = SDL2
|
||||||
IMPLIB = SDL2.lib
|
VERSION = 2.0.9
|
||||||
MAPFILE = SDL2.map
|
DESCRIPTION = Simple DirectMedia Layer 2
|
||||||
EXPFILE = SDL2.exp
|
|
||||||
LNKFILE = SDL2.lnk
|
LIBHOME = .
|
||||||
|
LIBPATH = $(LIBHOME)/lib
|
||||||
|
DLLFILE = $(LIBHOME)/$(LIBNAME).dll
|
||||||
|
LIBFILE = $(LIBHOME)/$(LIBNAME).lib
|
||||||
|
LNKFILE = $(LIBNAME).lnk
|
||||||
|
|
||||||
INCPATH = -I"$(%WATCOM)/h/os2" -I"$(%WATCOM)/h"
|
INCPATH = -I"$(%WATCOM)/h/os2" -I"$(%WATCOM)/h"
|
||||||
|
INCPATH+= -I"$(LIBHOME)/h"
|
||||||
INCPATH+= -Iinclude
|
INCPATH+= -Iinclude
|
||||||
|
|
||||||
|
LIBS = mmpm2.lib libuls.lib libconv.lib
|
||||||
|
|
||||||
CFLAGS = -bt=os2 -d0 -q -bm -5s -fp5 -fpi87 -sg -oteanbmier -ei
|
CFLAGS = -bt=os2 -d0 -q -bm -5s -fp5 -fpi87 -sg -oteanbmier -ei
|
||||||
# max warnings:
|
# max warnings:
|
||||||
CFLAGS+= -wx
|
CFLAGS+= -wx
|
||||||
|
@ -52,14 +60,18 @@ OBJS = $(SRCS:.c=.obj)
|
||||||
.extensions:
|
.extensions:
|
||||||
.extensions: .lib .dll .obj .c .asm
|
.extensions: .lib .dll .obj .c .asm
|
||||||
|
|
||||||
.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;
|
.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;
|
||||||
|
.c: ./src/haptic/dummy;./src/joystick/dummy;./src/audio/dummy;./src/video/dummy;./src/sensor/dummy;
|
||||||
|
.c: ./src/loadso/dummy;./src/filesystem/dummy;./src/timer/dummy;./src/thread/generic;
|
||||||
|
|
||||||
all: $(DLLFILE) $(LIBFILE) .symbolic
|
all: $(DLLFILE) $(LIBFILE) .symbolic
|
||||||
|
|
||||||
$(DLLFILE): $(OBJS) $(LNKFILE)
|
$(DLLFILE): $(OBJS) $(LNKFILE)
|
||||||
|
@echo * Linking: $@
|
||||||
wlink @$(LNKFILE)
|
wlink @$(LNKFILE)
|
||||||
|
|
||||||
$(IMPLIB): $(DLLFILE)
|
$(LIBFILE): $(DLLFILE)
|
||||||
|
@echo * Creating LIB file: $@
|
||||||
wlib -q -b -n -c -pa -s -t -zld -ii -io $* $(DLLFILE)
|
wlib -q -b -n -c -pa -s -t -zld -ii -io $* $(DLLFILE)
|
||||||
|
|
||||||
.c.obj:
|
.c.obj:
|
||||||
|
@ -84,13 +96,17 @@ SDL_RLEaccel.obj: SDL_RLEaccel.c
|
||||||
wcc386 $(CFLAGS) -wcd=201 -fo=$^@ $<
|
wcc386 $(CFLAGS) -wcd=201 -fo=$^@ $<
|
||||||
|
|
||||||
$(LNKFILE):
|
$(LNKFILE):
|
||||||
|
@echo * Creating linker file: $@
|
||||||
@%create $@
|
@%create $@
|
||||||
@%append $@ SYSTEM os2v2_dll INITINSTANCE TERMINSTANCE
|
@%append $@ SYSTEM os2v2_dll INITINSTANCE TERMINSTANCE
|
||||||
@%append $@ NAME $(DLLFILE)
|
@%append $@ NAME $(DLLFILE)
|
||||||
@for %i in ($(OBJS)) do @%append $@ FILE %i
|
@for %i in ($(OBJS)) do @%append $@ FILE %i
|
||||||
|
@%append $@ LIBPATH $(%LIB);$(LIBPATH)
|
||||||
|
@for %i in ($(LIBS)) do @%append $@ LIB %i
|
||||||
@%append $@ OPTION QUIET
|
@%append $@ OPTION QUIET
|
||||||
@%append $@ OPTION IMPF=$(EXPFILE)
|
@%append $@ OPTION IMPF=$(LIBHOME)/$^&.exp
|
||||||
@%append $@ OPTION MAP=$(MAPFILE)
|
@%append $@ OPTION MAP=$(LIBHOME)/$^&.map
|
||||||
|
@%append $@ OPTION DESCRIPTION '@$#libsdl org:$(VERSION)$#@$(DESCRIPTION)'
|
||||||
@%append $@ OPTION QUIET
|
@%append $@ OPTION QUIET
|
||||||
@%append $@ OPTION ELIMINATE
|
@%append $@ OPTION ELIMINATE
|
||||||
@%append $@ OPTION MANYAUTODATA
|
@%append $@ OPTION MANYAUTODATA
|
||||||
|
@ -104,7 +120,7 @@ clean: .SYMBOLIC
|
||||||
@if exist $(LNKFILE) rm $(LNKFILE)
|
@if exist $(LNKFILE) rm $(LNKFILE)
|
||||||
|
|
||||||
distclean: .SYMBOLIC clean
|
distclean: .SYMBOLIC clean
|
||||||
@if exist $(MAPFILE) rm $(MAPFILE)
|
@if exist $(LIBHOME)/*.exp rm $(LIBHOME)/*.exp
|
||||||
@if exist $(EXPFILE) rm $(EXPFILE)
|
@if exist $(LIBHOME)/*.map rm $(LIBHOME)/*.map
|
||||||
@if exist $(IMPLIB) rm $(IMPLIB)
|
@if exist $(LIBFILE) rm $(LIBFILE)
|
||||||
@if exist $(DLLFILE) rm $(DLLFILE)
|
@if exist $(DLLFILE) rm $(DLLFILE)
|
Loading…
Reference in New Issue