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