FVWM_SRCDIR = ../..
#include "../../Fvwm.tmpl"

BINDIR = /usr/X11/lib/fvwm2


LOCAL_LIBRARIES = $(FVWM_LIBS) $(XLIB)

PROGRAMS = FvwmConsole FvwmConsoleC FCtest
CCOPTIONS = -Wall

SRCS1 = FvwmConsole.c 
OBJS1 = FvwmConsole.o 

/*FvwmModuleTarget(FvwmConsole)*/
ComplexProgramTarget_1(FvwmConsole,$(LOCAL_LIBRARIES),) 
SRCS3 = FCtest.c 
OBJS3 = FCtest.o 

/*FvwmModuleTarget(FCtest)*/
ComplexProgramTarget_3(FCtest,$(LOCAL_LIBRARIES),) 

/***************************************************************************
 * #define HAVE_READLINE
 *
 * To add builtin support for the readline library.  Also make sure that the 
 * include and lib settings are correct for your readline library installation.
 * This currently only effects the FvwmConsole module.
 ***************************************************************************/
#define HAVE_READLINE

#ifdef HAVE_READLINE
#define READLINE_LIBRARIES -lreadline
/* #define  READLINE_INCLUDES -I/usr/local/include */
#endif
#ifndef READLINE_INCLUDES
#define READLINE_INCLUDES
#endif
#ifndef READLINE_LIBRARIES
#define READLINE_LIBRARIES

#endif
#ifdef HAVE_READLINE
ADD_INCLUDE = READLINE_INCLUDES
ADD_LIB = READLINE_LIBRARIES -ltermcap
EXTRA_DEFINES = -DHAVE_READLINE
#endif

SRCS2 = FvwmConsoleC.c getline.c
OBJS2 = FvwmConsoleC.o getline.o
/*FvwmModuleTarget(FvwmConsoleC)                           */
ComplexProgramTarget_2(FvwmConsoleC,$(LOCAL_LIBRARIES) $(ADD_LIB),) 
