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
     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_tga.c		\
    23 	IMG_tif.c		\
    24 	IMG_xcf.c		\
    25 	IMG_xpm.c		\
    26 	IMG_xv.c		\
    27 	IMG_webp.c		\
    28 	$(IMAGEIO_SOURCE)	\
    29 	miniz.h
    30 
    31 EXTRA_DIST =			\
    32 	Android.mk		\
    33 	debian			\
    34 	external		\
    35 	version.rc		\
    36 	VisualC			\
    37 	VisualCE		\
    38 	Xcode			\
    39 	Xcode-iOS		\
    40 	IMG_xxx.c		\
    41 	$(srcdir)/*.m		\
    42 	SDL2_image.spec		\
    43 	gcc-fat.sh		\
    44 	autogen.sh		\
    45 	$(srcdir)/*.txt
    46 
    47 if USE_VERSION_RC
    48 libSDL2_image_la_LDFLAGS = 	\
    49 	-no-undefined		\
    50 	-release $(LT_RELEASE)	\
    51 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -Wl,version.o
    52 libSDL2_image_la_LIBADD = $(IMG_LIBS)
    53 libSDL2_image_la_DEPENDENCIES = version.o
    54 else
    55 libSDL2_image_la_LDFLAGS = 	\
    56 	-no-undefined		\
    57 	-release $(LT_RELEASE)	\
    58 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    59 libSDL2_image_la_LIBADD = $(IMG_LIBS)
    60 endif
    61 
    62 pkgconfigdir = $(libdir)/pkgconfig
    63 pkgconfig_DATA = SDL2_image.pc
    64 
    65 %.o : %.rc
    66 	$(WINDRES) $< $@
    67 
    68 noinst_PROGRAMS = showimage
    69 
    70 showimage_LDADD = libSDL2_image.la
    71 
    72 # Rule to build tar-gzipped distribution package
    73 $(PACKAGE)-$(VERSION).tar.gz: distcheck
    74 
    75 # Rule to build RPM distribution package
    76 rpm: $(PACKAGE)-$(VERSION).tar.gz
    77 	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
    78