[Top][All Lists]

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

Creting extra executables.

From: Dr. David Kirkby
Subject: Creting extra executables.
Date: Tue, 23 Apr 2002 09:21:56 +0100

I've an application that has a directory structure like this. 


In the non_gui directory there are about 6 binaries, which will build easily one
any system. In the gui directory, there is currently one (probably more later)
binaries that require all sorts of libraries to be installed. 

I want the configure script to accept

configure --with-gui

before it will build the bits in gui. 

How is the *best* way to go about this. I have failed miserably. The main
problem seems to be that src/ either has to have 

# This is src/, which is proceed by automake
SUBDIRS = non_gui  gui

in which case a makefile src/gui/Makefile is expected to be made. I've
configured the so the makefile does not get made by ending it with

if test "x$with_gui" = "xyes"; then
AC_OUTPUT([ Makefile src/Makefile src/gui/Makefile src/ non_gui/Makeile])
AC_OUTPUT([ Makefile src/Makefile src/ non_gui/Makeile])

Rather than ask how to tweak my method so it does work, can anyone tell me the
best way to implement a system so that make will only try to build files in one
particular directory if a certain option is given to configure. 

Dr. David Kirkby PhD,
email: address@hidden 
web page:
Amateur radio callsign: G8WRB

reply via email to

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