Makefile.am
author Ozkan Sezer <sezeroz@gmail.com>
Thu, 18 Oct 2018 11:57:19 +0300
changeset 612 ca95d0e31aec
parent 549 66bf925397f4
child 622 741cb996b30a
permissions -rw-r--r--
use less ancient versions of autofoo scripts
     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 	Xcode			\
    43 	Xcode-iOS		\
    44 	IMG_xxx.c		\
    45 	$(srcdir)/*.m		\
    46 	SDL2_image.spec		\
    47 	gcc-fat.sh		\
    48 	autogen.sh		\
    49 	$(srcdir)/*.txt
    50 
    51 if USE_VERSION_RC
    52 libSDL2_image_la_LDFLAGS = 	\
    53 	-no-undefined		\
    54 	-release $(LT_RELEASE)	\
    55 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -Wl,version.o
    56 libSDL2_image_la_LIBADD = $(IMG_LIBS)
    57 libSDL2_image_la_DEPENDENCIES = version.o
    58 else
    59 libSDL2_image_la_LDFLAGS = 	\
    60 	-no-undefined		\
    61 	-release $(LT_RELEASE)	\
    62 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    63 libSDL2_image_la_LIBADD = $(IMG_LIBS)
    64 endif
    65 
    66 pkgconfigdir = $(libdir)/pkgconfig
    67 pkgconfig_DATA = SDL2_image.pc
    68 
    69 %.o : %.rc
    70 	$(WINDRES) $< $@
    71 
    72 noinst_PROGRAMS = showimage
    73 
    74 showimage_LDADD = libSDL2_image.la
    75 
    76 # Rule to build tar-gzipped distribution package
    77 $(PACKAGE)-$(VERSION).tar.gz: distcheck
    78 
    79 # Rule to build RPM distribution package
    80 rpm: $(PACKAGE)-$(VERSION).tar.gz
    81 	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
    82