/*
 * Imakefile for fvwm 0.99
 * Thu Aug  5 11:21:36 MET DST 1993, mj@dfv.rwth-aachen.de
 *
 * fvwm.1 must be renamed to fvwm.man
 */
 
/*
 * If you want the Shaped window extensions, uncomment this line
 * Shaped window extensions seem to increase the window managers RSS
 * by about 60 Kbytes. They provide for leaving a title-bar on the window
 * without a border.
 * if you dont use shaped window extension, you can either make all your shaped
 * windows undecorated, or live with a border and backdrop around all
 * your shaped windows (oclock, xeyes)
 *
 * If you normally use a shaped window (xeyes or oclock), you might as
 * well compile this extension in, since the memory cost is  minimal in
 * this case (The shaped window shared libs will be loaded anyway. If you
 * don't normally use a shaped window, you have to decide for yourself 
 */

SHAPEFLAG = -DSHAPE /**/

/*
 * if you want color icons, you can uncomment these lines, and get libXpm
 * from sunsite.unc.edu. The following files are recommended in addition
 * to the fvwm package (from sunsite.unc.edu):
 *  /pub/X11/contrib/xpm-3.2g.tar.Z for the Xpm library, or
 *  /pub/Linux/X11/libs, file libXpm32g.tar.z. for a pre-compiled shared 
 *                       library of libXpm for Linux.
 * /pub/X11/contrib/xpm3icons.tar.Z, still more sample icons
 * /pub/X11/contrib/ctwm-3.0.tar.Z, pull out the icons. ctwm has really nice
 *                                  color icons.
 *this from ftp.x.org:
 * /contrib/icons.tar.gz, lots of sample icons
 *
 * For monochrome, Xpm icons still work, but they're no better than regular
 * pixmaps.
 */

/* XPMLIB = -lXpm
XPMFLAG = -DXPM /**/

/* (added by pete@tecc.co.uk)
 * If you want extra keyboard support in popup menus, uncomment
 * these. 
 *
 * MENU_HOTKEYS adds support for keyboard shortcuts using the &
 * prefix in the menu title.
 * WINDOWLIST_HOTKEYS (requires MENU_HOTKEYS) adds hotkeys to
 * the windowlist menu when it is displayed.
 *
 * Motif MWM emulation is now selectable at run-time. See the
 * Man page under MWMBorders, MWMMenus, MWMButtons.
 */
MENUFLAGS = -DMENU_HOTKEYS -DWINDOWLIST_HOTKEYS 



/* If you want to make a really small window manager,
 * uncomment some or all of these:
 *
 * NO_PAGER - Omits the code for the pager
 * NON_VIRTUAL - Omits the virtual desktop - requires NO_PAGER
 * NO_ICONS - Omits icon drawing (You have the use the window list) 
 * NO_SAVEUNDERS - tells thw WM not to request save unders for pop-up
 *                 menus. A quick test using monochrome X11 shows that save
 *                 unders cost about 4Kbytes RAM, but saves a lot of
 *                 window re-draws if you have windows that take a while
 *                 to refresh. For xcolor, I assume the cost is more like
 *                 4Kbytesx8 = 32kbytes (256 color). */

/*EF1 = -DNO_PAGER -DNON_VIRTUAL  -DNO_ICONS -DNO_SAVEUNDERS/**/

/* Here are some user preference configuration options:
 * 1. Stubborn Placement:
 *    If this flag is set, fvwm will not auto-place icons underneath active
 *    windows. Normally auto-placement igonores active windows, 
 *    but makes sure that icons don't overlap
 * 2. CurculateSkipIcons:
 *    Causes circulate Up/Down to skip over icons.
 * 3. Opaque Resize:
 *    Might be nice for fast servers
 */

EF2 = -DSTUBBORN_PLACEMENT -DCIRCULATESKIPICONS /* -DOPAQUE_RESIZE /**/

/* If your libraries don't have sysconf(), uncomment this line  */
/*EF3 = -DNO_SYSCONF /**/

/*If your libraries don't have strncasecmp(), uncomment this line */
/*EF4 = -DNEEDS_STRNCASECMP*/

/* if you don't want separate colors for sticky icons,
 * comment this out */
EF5 = -DMORE_COLORS


EXTRAFLAGS = $(EF1) $(EF2) $(EF3) $(EF4) $(EF5)

EXTRA_DEFINES = $(MORE_FLAGS) $(SHAPEFLAG) $(XPMFLAG) $(MENUFLAGS) $(EXTRAFLAGS) $(OTHERFLAGS) -DFVWMRC=\"$(FVWMDIR)/system.fvwmrc\"

DEPLIBS = $(DEPXLIB) 
LOCAL_LIBRARIES = $(XPMLIB) $(XLIB) 
LINTLIBS = $(LINTXLIB)

FVWMDIR = $(LIBDIR)/fvwm


SRCS = fvwm.c configure.c events.c borders.c menus.c functions.c resize.c\
       add_window.c pager.c move.c icons.c windows.c
 
OBJS = fvwm.o configure.o events.o borders.o menus.o functions.o resize.o\
       add_window.o pager.o move.o icons.o windows.o

ComplexProgramTarget(fvwm)
InstallNonExecFile(system.fvwmrc,$(FVWMDIR))
