File: Makefile.os2

package info (click to toggle)
libsdl2-image 2.8.8%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,868 kB
  • sloc: ansic: 23,468; python: 1,280; sh: 603; makefile: 246
file content (40 lines) | stat: -rw-r--r-- 1,089 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# change DEPS_INC in order to point to the dependency headers.
DEPS_INC=-IC:\SDL2DEV\h\SDL2
# change DEPS_LIB in order to point to the dependency libraries.
DEPS_LIB=C:\SDL2DEV\lib

TARGETS = testimage.exe

OBJS = $(TARGETS:.exe=.obj)

all: $(TARGETS)

INCPATH = -I$(%WATCOM)/h/os2 -I$(%WATCOM)/h -I.. $(DEPS_INC)
CFLAGS_DEF = $(INCPATH) -bt=os2 -d0 -q -bm -5s -fp5 -fpi87 -sg -oteanbmier
CFLAGS_EXE = $(CFLAGS_DEF)
CFLAGS = $(CFLAGS_EXE) -ei -5s

CFLAGS+= -DLOAD_JPG -DLOAD_PNG -DLOAD_BMP -DLOAD_GIF -DLOAD_LBM &
         -DLOAD_PCX -DLOAD_PNM -DLOAD_TGA -DLOAD_XCF -DLOAD_XPM &
         -DLOAD_XV -DLOAD_SVG -DLOAD_TIF -DLOAD_WEBP -DLOAD_QOI

#CFLAGS+= -DLOAD_AVIF
#CFLAGS+= -DLOAD_JXL
CFLAGS+= -DSDL_IMAGE_SAVE_JPG=1
CFLAGS+= -DSDL_IMAGE_SAVE_PNG=1

LIBPATH = ..
LIBS = SDL2img.lib SDL2test.lib SDL2.lib

.obj.exe:
  wlink SYS os2v2 libpath $(LIBPATH) libpath $(DEPS_LIB) lib {$(LIBS)} op q file {$<} N $*

testimage.obj: main.c
  wcc386 $(CFLAGS) -fo=$^@ $<

clean: .SYMBOLIC
  @if exist *.obj rm *.obj
  @if exist *.err rm *.err

distclean: clean .SYMBOLIC
  @if exist *.exe rm *.exe