Makefile.am
author Ozkan Sezer <sezeroz@gmail.com>
Thu, 11 Jul 2019 01:10:28 +0300
changeset 682 6950f1d21f82
parent 622 741cb996b30a
permissions -rw-r--r--
consistently use IMG_SetError() instead of SDL_SetError.
     1 # Makefile.am for the SDL sample image loading library and viewer
     2 
     3 lib_LTLIBRARIES = libSDL2_image.la
     4 
     5 libSDL2_imageincludedir = $(includedir)/SDL2
     6 libSDL2_imageinclude_HEADERS =	\
     7 	SDL_image.h
     8 
     9 if USE_IMAGEIO
    10 IMAGEIO_SOURCE = IMG_ImageIO.m
    11 endif
    12 
    13 libSDL2_image_la_SOURCES =	\
    14 	IMG.c			\
    15 	IMG_bmp.c		\
    16 	IMG_gif.c		\
    17 	IMG_jpg.c		\
    18 	IMG_lbm.c		\
    19 	IMG_pcx.c		\
    20 	IMG_png.c		\
    21 	IMG_pnm.c		\
    22 	IMG_svg.c		\
    23 	IMG_tga.c		\
    24 	IMG_tif.c		\
    25 	IMG_xcf.c		\
    26 	IMG_xpm.c		\
    27 	IMG_xv.c		\
    28 	IMG_webp.c		\
    29 	IMG_WIC.c		\
    30 	$(IMAGEIO_SOURCE)	\
    31 	miniz.h			\
    32 	nanosvg.h		\
    33 	nanosvgrast.h
    34 
    35 EXTRA_DIST =			\
    36 	Android.mk		\
    37 	debian			\
    38 	external		\
    39 	version.rc		\
    40 	VisualC			\
    41 	VisualCE		\
    42 	VisualC-WinRT	\
    43 	Xcode			\
    44 	Xcode-iOS		\
    45 	IMG_xxx.c		\
    46 	$(srcdir)/*.m		\
    47 	SDL2_image.spec		\
    48 	gcc-fat.sh		\
    49 	autogen.sh		\
    50 	$(srcdir)/*.txt
    51 
    52 if USE_VERSION_RC
    53 libSDL2_image_la_LDFLAGS = 	\
    54 	-no-undefined		\
    55 	-release $(LT_RELEASE)	\
    56 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -Wl,version.o
    57 libSDL2_image_la_LIBADD = $(IMG_LIBS)
    58 libSDL2_image_la_DEPENDENCIES = version.o
    59 else
    60 libSDL2_image_la_LDFLAGS = 	\
    61 	-no-undefined		\
    62 	-release $(LT_RELEASE)	\
    63 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    64 libSDL2_image_la_LIBADD = $(IMG_LIBS)
    65 endif
    66 
    67 pkgconfigdir = $(libdir)/pkgconfig
    68 pkgconfig_DATA = SDL2_image.pc
    69 
    70 %.o : %.rc
    71 	$(WINDRES) $< $@
    72 
    73 noinst_PROGRAMS = showimage
    74 
    75 showimage_LDADD = libSDL2_image.la
    76 
    77 # Rule to build tar-gzipped distribution package
    78 $(PACKAGE)-$(VERSION).tar.gz: distcheck
    79 
    80 # Rule to build RPM distribution package
    81 rpm: $(PACKAGE)-$(VERSION).tar.gz
    82 	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
    83