Makefile.am
author Sam Lantinga <slouken@libsdl.org>
Mon, 10 Jan 2011 12:09:57 -0800
changeset 259 7d759f423084
parent 237 d1a4fae44bd0
child 269 52e4bd687039
permissions -rw-r--r--
Include the Android Makefile in the distribution files
slouken@0
     1
# Makefile.am for the SDL sample image loading library and viewer
slouken@0
     2
slouken@0
     3
lib_LTLIBRARIES = libSDL_image.la
slouken@0
     4
slouken@0
     5
libSDL_imageincludedir = $(includedir)/SDL
slouken@0
     6
libSDL_imageinclude_HEADERS =	\
slouken@0
     7
	SDL_image.h
slouken@0
     8
slouken@0
     9
libSDL_image_la_SOURCES =		\
slouken@0
    10
	IMG.c			\
slouken@0
    11
	IMG_bmp.c		\
slouken@0
    12
	IMG_gif.c		\
slouken@0
    13
	IMG_jpg.c		\
slouken@45
    14
	IMG_lbm.c		\
slouken@0
    15
	IMG_pcx.c		\
slouken@0
    16
	IMG_png.c		\
slouken@25
    17
	IMG_pnm.c		\
slouken@0
    18
	IMG_tga.c		\
slouken@7
    19
	IMG_tif.c		\
slouken@26
    20
	IMG_xcf.c		\
slouken@119
    21
	IMG_xpm.c		\
slouken@237
    22
	IMG_xv.c		\
slouken@237
    23
	IMG_ImageIO.c
slouken@0
    24
slouken@0
    25
EXTRA_DIST =			\
slouken@259
    26
	Android.mk		\
slouken@0
    27
	CHANGES			\
slouken@164
    28
	version.rc		\
slouken@0
    29
	VisualC.zip		\
slouken@212
    30
	VisualCE.zip		\
slouken@107
    31
	Xcode.tar.gz		\
slouken@224
    32
	Xcode_iPhone.tar.gz	\
slouken@30
    33
	MPWmake.sea.bin		\
slouken@136
    34
	Watcom-OS2.zip		\
slouken@0
    35
	IMG_xxx.c		\
slouken@223
    36
	IMG_UIImage.m		\
slouken@37
    37
	SDL_image.spec		\
slouken@131
    38
	gcc-fat.sh		\
slouken@0
    39
	autogen.sh
slouken@0
    40
slouken@164
    41
if USE_VERSION_RC
slouken@164
    42
libSDL_image_la_LDFLAGS = 	\
slouken@164
    43
	-no-undefined		\
slouken@164
    44
	-release $(LT_RELEASE)	\
slouken@164
    45
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -Wl,version.o
slouken@164
    46
libSDL_image_la_LIBADD = $(IMG_LIBS)
slouken@164
    47
libSDL_image_la_DEPENDENCIES = version.o
slouken@164
    48
else
slouken@94
    49
libSDL_image_la_LDFLAGS = 	\
slouken@94
    50
	-no-undefined		\
slouken@37
    51
	-release $(LT_RELEASE)	\
slouken@0
    52
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
slouken@137
    53
libSDL_image_la_LIBADD = $(IMG_LIBS)
slouken@164
    54
endif
slouken@164
    55
slouken@196
    56
pkgconfigdir = $(libdir)/pkgconfig
slouken@196
    57
pkgconfig_DATA = SDL_image.pc
slouken@196
    58
slouken@164
    59
%.o : %.rc
slouken@164
    60
	$(WINDRES) $< $@
slouken@0
    61
slouken@77
    62
noinst_PROGRAMS = showimage
slouken@0
    63
slouken@0
    64
showimage_LDADD = libSDL_image.la
slouken@0
    65
slouken@0
    66
# Rule to build tar-gzipped distribution package
slouken@37
    67
$(PACKAGE)-$(VERSION).tar.gz: distcheck
slouken@0
    68
slouken@0
    69
# Rule to build RPM distribution package
slouken@0
    70
rpm: $(PACKAGE)-$(VERSION).tar.gz
slouken@178
    71
	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
slouken@0
    72