Makefile.am
author Sam Lantinga <slouken@libsdl.org>
Fri, 15 Feb 2013 14:47:06 -0800
changeset 347 ad5034cad524
parent 321 fd488b9e71e0
child 353 f76414a56c93
permissions -rw-r--r--
Updated copyright year
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@294
    28
	$(IMAGEIO_SOURCE)
slouken@0
    29
slouken@0
    30
EXTRA_DIST =			\
slouken@259
    31
	Android.mk		\
slouken@0
    32
	CHANGES			\
slouken@164
    33
	version.rc		\
slouken@269
    34
	VisualC			\
slouken@280
    35
	VisualCE		\
slouken@280
    36
	Xcode			\
slouken@295
    37
	Xcode-iOS		\
slouken@0
    38
	IMG_xxx.c		\
slouken@223
    39
	IMG_UIImage.m		\
slouken@321
    40
	SDL2_image.spec		\
slouken@131
    41
	gcc-fat.sh		\
slouken@0
    42
	autogen.sh
slouken@0
    43
slouken@164
    44
if USE_VERSION_RC
slouken@321
    45
libSDL2_image_la_LDFLAGS = 	\
slouken@164
    46
	-no-undefined		\
slouken@164
    47
	-release $(LT_RELEASE)	\
slouken@164
    48
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -Wl,version.o
slouken@321
    49
libSDL2_image_la_LIBADD = $(IMG_LIBS)
slouken@321
    50
libSDL2_image_la_DEPENDENCIES = version.o
slouken@164
    51
else
slouken@321
    52
libSDL2_image_la_LDFLAGS = 	\
slouken@94
    53
	-no-undefined		\
slouken@37
    54
	-release $(LT_RELEASE)	\
slouken@0
    55
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
slouken@321
    56
libSDL2_image_la_LIBADD = $(IMG_LIBS)
slouken@164
    57
endif
slouken@164
    58
slouken@196
    59
pkgconfigdir = $(libdir)/pkgconfig
slouken@321
    60
pkgconfig_DATA = SDL2_image.pc
slouken@196
    61
slouken@164
    62
%.o : %.rc
slouken@164
    63
	$(WINDRES) $< $@
slouken@0
    64
slouken@77
    65
noinst_PROGRAMS = showimage
slouken@0
    66
slouken@321
    67
showimage_LDADD = libSDL2_image.la
slouken@0
    68
slouken@0
    69
# Rule to build tar-gzipped distribution package
slouken@37
    70
$(PACKAGE)-$(VERSION).tar.gz: distcheck
slouken@0
    71
slouken@0
    72
# Rule to build RPM distribution package
slouken@0
    73
rpm: $(PACKAGE)-$(VERSION).tar.gz
slouken@178
    74
	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
slouken@0
    75