Makefile.am
author Sam Lantinga <slouken@libsdl.org>
Sun, 11 Oct 2009 17:33:53 +0000
changeset 224 0299a47b41e6
parent 223 197f972148e1
child 225 d48383268d11
permissions -rw-r--r--
Missing the iPhone project
     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 
    24 EXTRA_DIST =			\
    25 	CHANGES			\
    26 	version.rc		\
    27 	VisualC.zip		\
    28 	VisualCE.zip		\
    29 	Xcode.tar.gz		\
    30 	Xcode_iPhone.tar.gz	\
    31 	MPWmake.sea.bin		\
    32 	Watcom-OS2.zip		\
    33 	IMG_xxx.c		\
    34 	IMG_ImageIO.c		\
    35 	IMG_UIImage.m		\
    36 	SDL_image.spec		\
    37 	SDL_image.spec.in	\
    38 	gcc-fat.sh		\
    39 	autogen.sh
    40 
    41 if USE_VERSION_RC
    42 libSDL_image_la_LDFLAGS = 	\
    43 	-no-undefined		\
    44 	-release $(LT_RELEASE)	\
    45 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -Wl,version.o
    46 libSDL_image_la_LIBADD = $(IMG_LIBS)
    47 libSDL_image_la_DEPENDENCIES = version.o
    48 else
    49 libSDL_image_la_LDFLAGS = 	\
    50 	-no-undefined		\
    51 	-release $(LT_RELEASE)	\
    52 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    53 libSDL_image_la_LIBADD = $(IMG_LIBS)
    54 endif
    55 
    56 pkgconfigdir = $(libdir)/pkgconfig
    57 pkgconfig_DATA = SDL_image.pc
    58 
    59 %.o : %.rc
    60 	$(WINDRES) $< $@
    61 
    62 noinst_PROGRAMS = showimage
    63 
    64 showimage_LDADD = libSDL_image.la
    65 
    66 # Rule to build tar-gzipped distribution package
    67 $(PACKAGE)-$(VERSION).tar.gz: distcheck
    68 
    69 # Rule to build RPM distribution package
    70 rpm: $(PACKAGE)-$(VERSION).tar.gz
    71 	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
    72