Makefile.am
author Sam Lantinga <slouken@libsdl.org>
Sat, 21 Jul 2007 05:27:30 +0000
changeset 178 57dcb4f3081e
parent 164 4da51f0c28e4
child 196 1d7af2dd0c17
permissions -rw-r--r--
Use rpmbuild instead of older versions of rpm
     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_lbm.c		\
    15 	IMG_pcx.c		\
    16 	IMG_png.c		\
    17 	IMG_pnm.c		\
    18 	IMG_tga.c		\
    19 	IMG_tif.c		\
    20 	IMG_xcf.c		\
    21 	IMG_xpm.c		\
    22 	IMG_xv.c
    23 
    24 EXTRA_DIST =			\
    25 	CHANGES			\
    26 	version.rc		\
    27 	VisualC.zip		\
    28 	Xcode.tar.gz		\
    29 	MPWmake.sea.bin		\
    30 	Watcom-OS2.zip		\
    31 	IMG_xxx.c		\
    32 	SDL_image.spec		\
    33 	SDL_image.spec.in	\
    34 	gcc-fat.sh		\
    35 	autogen.sh
    36 
    37 if USE_VERSION_RC
    38 libSDL_image_la_LDFLAGS = 	\
    39 	-no-undefined		\
    40 	-release $(LT_RELEASE)	\
    41 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -Wl,version.o
    42 libSDL_image_la_LIBADD = $(IMG_LIBS)
    43 libSDL_image_la_DEPENDENCIES = version.o
    44 else
    45 libSDL_image_la_LDFLAGS = 	\
    46 	-no-undefined		\
    47 	-release $(LT_RELEASE)	\
    48 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    49 libSDL_image_la_LIBADD = $(IMG_LIBS)
    50 endif
    51 
    52 %.o : %.rc
    53 	$(WINDRES) $< $@
    54 
    55 noinst_PROGRAMS = showimage
    56 
    57 showimage_LDADD = libSDL_image.la
    58 
    59 # Rule to build tar-gzipped distribution package
    60 $(PACKAGE)-$(VERSION).tar.gz: distcheck
    61 
    62 # Rule to build RPM distribution package
    63 rpm: $(PACKAGE)-$(VERSION).tar.gz
    64 	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
    65