Makefile.am
author Sam Lantinga <slouken@libsdl.org>
Sun, 01 Jan 2017 18:50:51 -0800
changeset 496 6332f9425dcc
parent 402 8b88bd84840e
child 524 b4b49635cbd8
permissions -rw-r--r--
Updated copyright for 2017
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@0
    22
	IMG_tga.c		\
slouken@7
    23
	IMG_tif.c		\
slouken@26
    24
	IMG_xcf.c		\
slouken@119
    25
	IMG_xpm.c		\
slouken@237
    26
	IMG_xv.c		\
slouken@294
    27
	IMG_webp.c		\
slouken@397
    28
	$(IMAGEIO_SOURCE)	\
slouken@397
    29
	miniz.h
slouken@0
    30
slouken@0
    31
EXTRA_DIST =			\
slouken@259
    32
	Android.mk		\
slouken@353
    33
	debian			\
slouken@401
    34
	external		\
slouken@164
    35
	version.rc		\
slouken@269
    36
	VisualC			\
slouken@280
    37
	VisualCE		\
slouken@280
    38
	Xcode			\
slouken@295
    39
	Xcode-iOS		\
slouken@0
    40
	IMG_xxx.c		\
slouken@402
    41
	$(srcdir)/*.m		\
slouken@321
    42
	SDL2_image.spec		\
slouken@131
    43
	gcc-fat.sh		\
slouken@372
    44
	autogen.sh		\
slouken@373
    45
	$(srcdir)/*.txt
slouken@0
    46
slouken@164
    47
if USE_VERSION_RC
slouken@321
    48
libSDL2_image_la_LDFLAGS = 	\
slouken@164
    49
	-no-undefined		\
slouken@164
    50
	-release $(LT_RELEASE)	\
slouken@164
    51
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -Wl,version.o
slouken@321
    52
libSDL2_image_la_LIBADD = $(IMG_LIBS)
slouken@321
    53
libSDL2_image_la_DEPENDENCIES = version.o
slouken@164
    54
else
slouken@321
    55
libSDL2_image_la_LDFLAGS = 	\
slouken@94
    56
	-no-undefined		\
slouken@37
    57
	-release $(LT_RELEASE)	\
slouken@0
    58
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
slouken@321
    59
libSDL2_image_la_LIBADD = $(IMG_LIBS)
slouken@164
    60
endif
slouken@164
    61
slouken@196
    62
pkgconfigdir = $(libdir)/pkgconfig
slouken@321
    63
pkgconfig_DATA = SDL2_image.pc
slouken@196
    64
slouken@164
    65
%.o : %.rc
slouken@164
    66
	$(WINDRES) $< $@
slouken@0
    67
slouken@77
    68
noinst_PROGRAMS = showimage
slouken@0
    69
slouken@321
    70
showimage_LDADD = libSDL2_image.la
slouken@0
    71
slouken@0
    72
# Rule to build tar-gzipped distribution package
slouken@37
    73
$(PACKAGE)-$(VERSION).tar.gz: distcheck
slouken@0
    74
slouken@0
    75
# Rule to build RPM distribution package
slouken@0
    76
rpm: $(PACKAGE)-$(VERSION).tar.gz
slouken@178
    77
	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
slouken@0
    78