Makefile.am
author Sam Lantinga <slouken@libsdl.org>
Tue, 10 Nov 2009 06:00:59 +0000
changeset 237 d1a4fae44bd0
parent 225 d48383268d11
child 259 7d759f423084
permissions -rw-r--r--
In the process of tracking down bug #868, made ImageIO the default for building using command line tools, and cleaned up the ImageIO image loading code.
     1 # Makefile.am for the SDL sample image loading library and viewer
     2 
     3 lib_LTLIBRARIES = libSDL_image.la
     4 
     5 libSDL_imageincludedir = $(includedir)/SDL
     6 libSDL_imageinclude_HEADERS =	\
     7 	SDL_image.h
     8 
     9 libSDL_image_la_SOURCES =		\
    10 	IMG.c			\
    11 	IMG_bmp.c		\
    12 	IMG_gif.c		\
    13 	IMG_jpg.c		\
    14 	IMG_lbm.c		\
    15 	IMG_pcx.c		\
    16 	IMG_png.c		\
    17 	IMG_pnm.c		\
    18 	IMG_tga.c		\
    19 	IMG_tif.c		\
    20 	IMG_xcf.c		\
    21 	IMG_xpm.c		\
    22 	IMG_xv.c		\
    23 	IMG_ImageIO.c
    24 
    25 EXTRA_DIST =			\
    26 	CHANGES			\
    27 	version.rc		\
    28 	VisualC.zip		\
    29 	VisualCE.zip		\
    30 	Xcode.tar.gz		\
    31 	Xcode_iPhone.tar.gz	\
    32 	MPWmake.sea.bin		\
    33 	Watcom-OS2.zip		\
    34 	IMG_xxx.c		\
    35 	IMG_UIImage.m		\
    36 	SDL_image.spec		\
    37 	gcc-fat.sh		\
    38 	autogen.sh
    39 
    40 if USE_VERSION_RC
    41 libSDL_image_la_LDFLAGS = 	\
    42 	-no-undefined		\
    43 	-release $(LT_RELEASE)	\
    44 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -Wl,version.o
    45 libSDL_image_la_LIBADD = $(IMG_LIBS)
    46 libSDL_image_la_DEPENDENCIES = version.o
    47 else
    48 libSDL_image_la_LDFLAGS = 	\
    49 	-no-undefined		\
    50 	-release $(LT_RELEASE)	\
    51 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    52 libSDL_image_la_LIBADD = $(IMG_LIBS)
    53 endif
    54 
    55 pkgconfigdir = $(libdir)/pkgconfig
    56 pkgconfig_DATA = SDL_image.pc
    57 
    58 %.o : %.rc
    59 	$(WINDRES) $< $@
    60 
    61 noinst_PROGRAMS = showimage
    62 
    63 showimage_LDADD = libSDL_image.la
    64 
    65 # Rule to build tar-gzipped distribution package
    66 $(PACKAGE)-$(VERSION).tar.gz: distcheck
    67 
    68 # Rule to build RPM distribution package
    69 rpm: $(PACKAGE)-$(VERSION).tar.gz
    70 	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
    71