Makefile.am
author Sam Lantinga <slouken@lokigames.com>
Thu, 10 Aug 2000 06:05:39 +0000
changeset 0 76be7dab668c
child 7 e1b6443ffb6b
permissions -rw-r--r--
Initial revision
     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_ppm.c		\
    17 	IMG_tga.c		\
    18 	IMG_tif.c
    19 
    20 EXTRA_DIST =			\
    21 	CHANGES			\
    22 	VisualC.zip		\
    23 	MPWmake.sea.hqx		\
    24 	IMG_xxx.c		\
    25 	autogen.sh
    26 
    27 libSDL_image_la_LDFLAGS = 		\
    28         -release $(LT_RELEASE)	\
    29 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    30 libSDL_image_la_LIBADD = @IMG_LIBS@
    31 
    32 bin_PROGRAMS = showimage
    33 
    34 showimage_LDADD = libSDL_image.la
    35 
    36 # Rule to build tar-gzipped distribution package
    37 $(PACKAGE)-$(VERSION).tar.gz: dist
    38 
    39 # Rule to build RPM distribution package
    40 rpm: $(PACKAGE)-$(VERSION).tar.gz
    41 	cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/redhat/SOURCES
    42 	rpm -ba $(PACKAGE).spec
    43