Makefile.am
author Sam Lantinga <slouken@libsdl.org>
Sat, 31 Dec 2011 09:41:39 -0500
changeset 280 ec4ae96c100c
parent 279 e2fa9ff13b5d
child 294 66fc2d8ddfbc
permissions -rw-r--r--
Happy New Year!
     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_webp.c	\
    24 	IMG_ImageIO.m
    25 
    26 EXTRA_DIST =			\
    27 	Android.mk		\
    28 	CHANGES			\
    29 	version.rc		\
    30 	VisualC			\
    31 	VisualCE		\
    32 	Xcode			\
    33 	Xcode_iPhone		\
    34 	MPWmake.sea.bin		\
    35 	Watcom-OS2.zip		\
    36 	IMG_xxx.c		\
    37 	IMG_UIImage.m		\
    38 	SDL_image.spec		\
    39 	gcc-fat.sh		\
    40 	autogen.sh
    41 
    42 if USE_VERSION_RC
    43 libSDL_image_la_LDFLAGS = 	\
    44 	-no-undefined		\
    45 	-release $(LT_RELEASE)	\
    46 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -Wl,version.o
    47 libSDL_image_la_LIBADD = $(IMG_LIBS)
    48 libSDL_image_la_DEPENDENCIES = version.o
    49 else
    50 libSDL_image_la_LDFLAGS = 	\
    51 	-no-undefined		\
    52 	-release $(LT_RELEASE)	\
    53 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    54 libSDL_image_la_LIBADD = $(IMG_LIBS)
    55 endif
    56 
    57 pkgconfigdir = $(libdir)/pkgconfig
    58 pkgconfig_DATA = SDL_image.pc
    59 
    60 %.o : %.rc
    61 	$(WINDRES) $< $@
    62 
    63 noinst_PROGRAMS = showimage
    64 
    65 showimage_LDADD = libSDL_image.la
    66 
    67 # Rule to build tar-gzipped distribution package
    68 $(PACKAGE)-$(VERSION).tar.gz: distcheck
    69 
    70 # Rule to build RPM distribution package
    71 rpm: $(PACKAGE)-$(VERSION).tar.gz
    72 	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
    73