Makefile.am
author Sam Lantinga <slouken@libsdl.org>
Fri, 02 Oct 2009 12:36:25 +0000
changeset 212 70b189221deb
parent 196 1d7af2dd0c17
child 223 197f972148e1
permissions -rw-r--r--
mosfet 2009-05-05 11:59:42 PDT

Pocket PC Visual Project
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@30
    30
	MPWmake.sea.bin		\
slouken@136
    31
	Watcom-OS2.zip		\
slouken@0
    32
	IMG_xxx.c		\
slouken@37
    33
	SDL_image.spec		\
slouken@37
    34
	SDL_image.spec.in	\
slouken@131
    35
	gcc-fat.sh		\
slouken@0
    36
	autogen.sh
slouken@0
    37
slouken@164
    38
if USE_VERSION_RC
slouken@164
    39
libSDL_image_la_LDFLAGS = 	\
slouken@164
    40
	-no-undefined		\
slouken@164
    41
	-release $(LT_RELEASE)	\
slouken@164
    42
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -Wl,version.o
slouken@164
    43
libSDL_image_la_LIBADD = $(IMG_LIBS)
slouken@164
    44
libSDL_image_la_DEPENDENCIES = version.o
slouken@164
    45
else
slouken@94
    46
libSDL_image_la_LDFLAGS = 	\
slouken@94
    47
	-no-undefined		\
slouken@37
    48
	-release $(LT_RELEASE)	\
slouken@0
    49
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
slouken@137
    50
libSDL_image_la_LIBADD = $(IMG_LIBS)
slouken@164
    51
endif
slouken@164
    52
slouken@196
    53
pkgconfigdir = $(libdir)/pkgconfig
slouken@196
    54
pkgconfig_DATA = SDL_image.pc
slouken@196
    55
slouken@164
    56
%.o : %.rc
slouken@164
    57
	$(WINDRES) $< $@
slouken@0
    58
slouken@77
    59
noinst_PROGRAMS = showimage
slouken@0
    60
slouken@0
    61
showimage_LDADD = libSDL_image.la
slouken@0
    62
slouken@0
    63
# Rule to build tar-gzipped distribution package
slouken@37
    64
$(PACKAGE)-$(VERSION).tar.gz: distcheck
slouken@0
    65
slouken@0
    66
# Rule to build RPM distribution package
slouken@0
    67
rpm: $(PACKAGE)-$(VERSION).tar.gz
slouken@178
    68
	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
slouken@0
    69