Makefile.am
author Sam Lantinga <slouken@lokigames.com>
Sat, 28 Apr 2001 19:56:31 +0000
changeset 37 93db822816cd
parent 30 d3248d17a4a6
child 43 c904a1959598
permissions -rw-r--r--
Paul Jenner - Sat, 14 Apr 2001 09:20:38 -0700 (PDT)
* Added support for building RPM directly from tar archive
     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_pcx.c		\
    15 	IMG_png.c		\
    16 	IMG_pnm.c		\
    17 	IMG_tga.c		\
    18 	IMG_tif.c		\
    19 	IMG_xcf.c		\
    20 	IMG_xpm.c
    21 
    22 EXTRA_DIST =			\
    23 	CHANGES			\
    24 	VisualC.zip		\
    25 	MPWmake.sea.bin		\
    26 	IMG_xxx.c		\
    27 	SDL_image.spec		\
    28 	SDL_image.spec.in	\
    29 	autogen.sh
    30 
    31 libSDL_image_la_LDFLAGS = 		\
    32 	-release $(LT_RELEASE)	\
    33 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    34 libSDL_image_la_LIBADD = @IMG_LIBS@
    35 
    36 bin_PROGRAMS = showimage
    37 
    38 showimage_LDADD = libSDL_image.la
    39 
    40 # Rule to build tar-gzipped distribution package
    41 $(PACKAGE)-$(VERSION).tar.gz: distcheck
    42 
    43 # Rule to build RPM distribution package
    44 rpm: $(PACKAGE)-$(VERSION).tar.gz
    45 	rpm -ta $(PACKAGE)-$(VERSION).tar.gz
    46