Makefile.am
author Sam Lantinga <slouken@libsdl.org>
Sun, 11 Oct 2009 16:59:14 +0000
changeset 223 197f972148e1
parent 212 70b189221deb
child 224 0299a47b41e6
permissions -rw-r--r--
Whoops, missing some dist files!
     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 	MPWmake.sea.bin		\
    31 	Watcom-OS2.zip		\
    32 	IMG_xxx.c		\
    33 	IMG_ImageIO.c		\
    34 	IMG_UIImage.m		\
    35 	SDL_image.spec		\
    36 	SDL_image.spec.in	\
    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