Makefile.am
author Sam Lantinga <slouken@libsdl.org>
Sun, 10 Dec 2017 09:11:46 -0800
changeset 549 66bf925397f4
parent 538 a57da139d196
child 622 741cb996b30a
permissions -rw-r--r--
Fixed bug 3998 - IMG_WIC.c is not part of SDL_image 2.0.2 but it's still present in Android.mk

Krzysztof Klinikowski

It seems that IMG_WIC.c file is not a part of SDL2_image-2.0.2.tar.gz release anymore (but it is in HG repository?).
slouken@0
     1
# Makefile.am for the SDL sample image loading library and viewer
slouken@0
     2
slouken@321
     3
lib_LTLIBRARIES = libSDL2_image.la
slouken@0
     4
slouken@321
     5
libSDL2_imageincludedir = $(includedir)/SDL2
slouken@321
     6
libSDL2_imageinclude_HEADERS =	\
slouken@0
     7
	SDL_image.h
slouken@0
     8
slouken@294
     9
if USE_IMAGEIO
slouken@294
    10
IMAGEIO_SOURCE = IMG_ImageIO.m
slouken@294
    11
endif
slouken@294
    12
slouken@321
    13
libSDL2_image_la_SOURCES =	\
slouken@0
    14
	IMG.c			\
slouken@0
    15
	IMG_bmp.c		\
slouken@0
    16
	IMG_gif.c		\
slouken@0
    17
	IMG_jpg.c		\
slouken@45
    18
	IMG_lbm.c		\
slouken@0
    19
	IMG_pcx.c		\
slouken@0
    20
	IMG_png.c		\
slouken@25
    21
	IMG_pnm.c		\
slouken@524
    22
	IMG_svg.c		\
slouken@0
    23
	IMG_tga.c		\
slouken@7
    24
	IMG_tif.c		\
slouken@26
    25
	IMG_xcf.c		\
slouken@119
    26
	IMG_xpm.c		\
slouken@237
    27
	IMG_xv.c		\
slouken@294
    28
	IMG_webp.c		\
slouken@549
    29
	IMG_WIC.c		\
slouken@397
    30
	$(IMAGEIO_SOURCE)	\
slouken@538
    31
	miniz.h			\
slouken@538
    32
	nanosvg.h		\
slouken@538
    33
	nanosvgrast.h
slouken@0
    34
slouken@0
    35
EXTRA_DIST =			\
slouken@259
    36
	Android.mk		\
slouken@353
    37
	debian			\
slouken@401
    38
	external		\
slouken@164
    39
	version.rc		\
slouken@269
    40
	VisualC			\
slouken@280
    41
	VisualCE		\
slouken@280
    42
	Xcode			\
slouken@295
    43
	Xcode-iOS		\
slouken@0
    44
	IMG_xxx.c		\
slouken@402
    45
	$(srcdir)/*.m		\
slouken@321
    46
	SDL2_image.spec		\
slouken@131
    47
	gcc-fat.sh		\
slouken@372
    48
	autogen.sh		\
slouken@373
    49
	$(srcdir)/*.txt
slouken@0
    50
slouken@164
    51
if USE_VERSION_RC
slouken@321
    52
libSDL2_image_la_LDFLAGS = 	\
slouken@164
    53
	-no-undefined		\
slouken@164
    54
	-release $(LT_RELEASE)	\
slouken@164
    55
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -Wl,version.o
slouken@321
    56
libSDL2_image_la_LIBADD = $(IMG_LIBS)
slouken@321
    57
libSDL2_image_la_DEPENDENCIES = version.o
slouken@164
    58
else
slouken@321
    59
libSDL2_image_la_LDFLAGS = 	\
slouken@94
    60
	-no-undefined		\
slouken@37
    61
	-release $(LT_RELEASE)	\
slouken@0
    62
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
slouken@321
    63
libSDL2_image_la_LIBADD = $(IMG_LIBS)
slouken@164
    64
endif
slouken@164
    65
slouken@196
    66
pkgconfigdir = $(libdir)/pkgconfig
slouken@321
    67
pkgconfig_DATA = SDL2_image.pc
slouken@196
    68
slouken@164
    69
%.o : %.rc
slouken@164
    70
	$(WINDRES) $< $@
slouken@0
    71
slouken@77
    72
noinst_PROGRAMS = showimage
slouken@0
    73
slouken@321
    74
showimage_LDADD = libSDL2_image.la
slouken@0
    75
slouken@0
    76
# Rule to build tar-gzipped distribution package
slouken@37
    77
$(PACKAGE)-$(VERSION).tar.gz: distcheck
slouken@0
    78
slouken@0
    79
# Rule to build RPM distribution package
slouken@0
    80
rpm: $(PACKAGE)-$(VERSION).tar.gz
slouken@178
    81
	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
slouken@0
    82