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