automake
[Top][All Lists]
Advanced

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

Target in Makefile.am - help newbe!


From: Michael Schulz
Subject: Target in Makefile.am - help newbe!
Date: Sat, 05 Nov 2005 17:23:30 +0100
User-agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.5) Gecko/20041217

Hello!

I'm newbe to autoconf, automake.
I try to make a target in Makefile.am that compiles the base source code with some extra code and extra libs.
But a 'make fb' only compiles the base source code. Makefile.am:



bin_PROGRAMS =  moll

#########################
#       m-files         #
#########################
moll_m_files =  moll.m \
       common.m \
       Database.m \
       Collection.m \
       Item.m \
       Interface.m \
       Top.m \
       Message.m \
       Option.m \
       Menu.m \
       Form.m \
       Button.m \
       Image.m \
       Info.m \
       Description.m \
       Dialog.m \
       CollectionChoice.m

moll_fb_m_files = fb_view.m \
           fb_display.m \
           fb_resize.m \
           fb_bmp.m \
           fb_png.m \
           fb_gif.m \
           fb_jpeg.m

moll_svga_m_files = svga_view.m

moll_vgl_m_files = vgl_view.m

#########################
#       h-files         #
#########################
moll_h_files =  common.h \
       Retain.h \
       Database.h \
       Collection.h \
       Item.h \
       Interface.h \
       Top.h \
       Message.h \
       Option.h \
       Menu.h \
       Form.h \
       Button.h \
       Image.h \
       Info.h \
       Description.h \
       Dialog.h \
       CollectionChoice.h

moll_fb_h_files = fb_view.h

moll_svga_h_files = svga_view.h

moll_vgl_h_files = vgl_view.h


###########################
#  Put them all together  #
###########################

moll_SOURCES =  $(moll_m_files) $(moll_h_files)

moll_fb_sources = $(moll_fb_m_files) $(moll_fb_h_files)

moll_svga_sources = $(moll_svga_m_files) $(moll_svga_h_files)

moll_vgl_sources = $(moll_vgl_m_files) $(moll_vgl_h_files)

EXTRA_DIST  =   $(moll_fb_sources) \
       $(moll_svga_sources) \
       $(moll_vgl_sources)

fb:
   @if test "$(LINUX_FRAMEBUFFER)" = "yes"; then \
echo -e "\n*** Compile moll with image support via Linux framebuffer! ***\n"; \ echo -e "\n/* Define to 1 if you have Linux framebuffer. */\n#define HAVE_LINUX_FB 1" >> $(srcdir)/config.h; \
       SOURCES="$(SOURCES) $(moll_fb_sources)"; \
       LIBS="$(LIBS) $(LIBS_IMAGE)"; \
       $(MAKE) all; \
   else \
       echo -e "\nNo support for Linux framebuffer!\n"; \
   fi





reply via email to

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