#include "../Axe.tmpl"
#include "../Axe.rules"

SRCS = ${TABLE_SRCS} ${EXTN_SRCS} \
       AxeWindow.c AxeEditor.c AxeMenuBtn.c AxeSimMenu.c \
       AxeSmeBSB.c AxeCommand.c AxeTextDeck.c AxeText.c \
       AxeiiText.c AxeiiUndo.c AxeiiSink.c \
       FileNomWin.c FileNom.c ${R5ONLY_SRCS} ${R4ONLY_SRCS} ScrollText.c \
       NumericPad.c CtrlCodeSel.c Preference.c Confirmer.c \
       ${SCANDIR_SRCS} regexp.c insertfile.c match.c util.c

OBJS = ${TABLE_OBJS} ${EXTN_OBJS} \
       AxeWindow.o AxeEditor.o AxeMenuBtn.o AxeSimMenu.o \
       AxeSmeBSB.o AxeTextDeck.o AxeCommand.o AxeText.o \
       AxeiiText.o AxeiiUndo.o AxeiiSink.o \
       FileNomWin.o FileNom.o ${R5ONLY_OBJS} ${R4ONLY_OBJS} ScrollText.o \
       NumericPad.o CtrlCodeSel.o Preference.o Confirmer.o \
       ${SCANDIR_OBJS} regexp.o insertfile.o match.o util.o

/*
 * -I. comes after TABLE_INCLUDES to ensure that Table headers in ./X11/Xp
 * are not accessed instead of the locally installed ones, and before
 * EXTN_INCLUDES to ensure that the local regexp.h is used rather than
 * the one provided by Tcl, or any other.
 */
EXTRA_INCLUDES = ${TABLE_INCLUDES} -I. -I.. ${EXTN_INCLUDES} ${XAW3D_INCLUDES}

NormalLibraryObjectRule()
NormalLibraryTarget(axe,$(OBJS))
DependTarget()

#ifdef NODIRENT
SpecialObjectRule(FileNom.o,,-DNODIRENT)
#ifdef NOSCANDIR
SpecialObjectRule(scandir.o,,-DNODIRENT)
#endif
#endif

MakeXaw3d($(XAW3D_DEPS))
