[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Target in Makefile

From: Ralf Wildenhues
Subject: Re: Target in Makefile
Date: Sun, 6 Nov 2005 17:22:53 +0100
User-agent: Mutt/1.5.9i

Hi Michael,

* Michael Schulz wrote on Sun, Nov 06, 2005 at 04:12:39PM CET:
> bin_PROGRAMS =  moll moll_fb
> moll_fb_SOURCES = $(moll_SOURCES) \
>            fb_view.m fb_view.h \
>            fb_display.m \
>            fb_resize.m \
>            fb_bmp.m \
>            fb_png.m \
>            fb_gif.m \
>            fb_jpeg.m
> moll_fb_LIBS = $(LIBS) $(LIBS_IMAGE)

Educated guess: this should be
  moll_fb_LDADD = $(LIBS_IMAGE)
right?  No need to add $(LIBS), they are added by default anyway.

> EXTRA_DIST  =   $(moll_fb_SOURCES)

This line should not be necessary at all.

> The varible $(moll_fb_LIBS) seems to have only $(LIBS).
> $(LIBS_IMAGE) was defined in with AC_SUBST(-lpng -lungif 
> -ljpeg).

Typo in your mail?  That should be
  AC_SUBST([LIBS_IMAGE], [-lpng -lungif -ljpeg])

but most likely you'd want to add a couple of tests with AC_CHECK_LIB
for availability of the libraries.  If you don't know how to do this,
be sure to read the docs and look at how other packages do this.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]