Makefile.am
changeset 164 4da51f0c28e4
parent 137 b42b657ab1ac
child 178 57dcb4f3081e
     1.1 --- a/Makefile.am	Wed Jul 18 03:07:37 2007 +0000
     1.2 +++ b/Makefile.am	Wed Jul 18 04:00:40 2007 +0000
     1.3 @@ -23,6 +23,7 @@
     1.4  
     1.5  EXTRA_DIST =			\
     1.6  	CHANGES			\
     1.7 +	version.rc		\
     1.8  	VisualC.zip		\
     1.9  	Xcode.tar.gz		\
    1.10  	MPWmake.sea.bin		\
    1.11 @@ -33,11 +34,23 @@
    1.12  	gcc-fat.sh		\
    1.13  	autogen.sh
    1.14  
    1.15 +if USE_VERSION_RC
    1.16 +libSDL_image_la_LDFLAGS = 	\
    1.17 +	-no-undefined		\
    1.18 +	-release $(LT_RELEASE)	\
    1.19 +	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -Wl,version.o
    1.20 +libSDL_image_la_LIBADD = $(IMG_LIBS)
    1.21 +libSDL_image_la_DEPENDENCIES = version.o
    1.22 +else
    1.23  libSDL_image_la_LDFLAGS = 	\
    1.24  	-no-undefined		\
    1.25  	-release $(LT_RELEASE)	\
    1.26  	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    1.27  libSDL_image_la_LIBADD = $(IMG_LIBS)
    1.28 +endif
    1.29 +
    1.30 +%.o : %.rc
    1.31 +	$(WINDRES) $< $@
    1.32  
    1.33  noinst_PROGRAMS = showimage
    1.34