Makefile.am
author Thomas Bernard <miniupnp@free.fr>
Fri, 30 Nov 2018 11:04:15 +0100
branchSDL-1.2
changeset 634 68f958f43339
parent 295 58fe012f40be
child 319 e7feb0dbe64f
permissions -rw-r--r--
IMG_xcf.c: Avoid infinite loop in read_xcf_header()
slouken@0
     1
# Makefile.am for the SDL sample image loading library and viewer
slouken@0
     2
slouken@0
     3
lib_LTLIBRARIES = libSDL_image.la
slouken@0
     4
slouken@0
     5
libSDL_imageincludedir = $(includedir)/SDL
slouken@0
     6
libSDL_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@294
    13
libSDL_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@30
    38
	MPWmake.sea.bin		\
slouken@136
    39
	Watcom-OS2.zip		\
slouken@0
    40
	IMG_xxx.c		\
slouken@223
    41
	IMG_UIImage.m		\
slouken@37
    42
	SDL_image.spec		\
slouken@131
    43
	gcc-fat.sh		\
slouken@0
    44
	autogen.sh
slouken@0
    45
slouken@164
    46
if USE_VERSION_RC
slouken@164
    47
libSDL_image_la_LDFLAGS = 	\
slouken@164
    48
	-no-undefined		\
slouken@164
    49
	-release $(LT_RELEASE)	\
slouken@164
    50
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -Wl,version.o
slouken@164
    51
libSDL_image_la_LIBADD = $(IMG_LIBS)
slouken@164
    52
libSDL_image_la_DEPENDENCIES = version.o
slouken@164
    53
else
slouken@94
    54
libSDL_image_la_LDFLAGS = 	\
slouken@94
    55
	-no-undefined		\
slouken@37
    56
	-release $(LT_RELEASE)	\
slouken@0
    57
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
slouken@137
    58
libSDL_image_la_LIBADD = $(IMG_LIBS)
slouken@164
    59
endif
slouken@164
    60
slouken@196
    61
pkgconfigdir = $(libdir)/pkgconfig
slouken@196
    62
pkgconfig_DATA = SDL_image.pc
slouken@196
    63
slouken@164
    64
%.o : %.rc
slouken@164
    65
	$(WINDRES) $< $@
slouken@0
    66
slouken@77
    67
noinst_PROGRAMS = showimage
slouken@0
    68
slouken@0
    69
showimage_LDADD = libSDL_image.la
slouken@0
    70
slouken@0
    71
# Rule to build tar-gzipped distribution package
slouken@37
    72
$(PACKAGE)-$(VERSION).tar.gz: distcheck
slouken@0
    73
slouken@0
    74
# Rule to build RPM distribution package
slouken@0
    75
rpm: $(PACKAGE)-$(VERSION).tar.gz
slouken@178
    76
	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
slouken@0
    77