MATHPADHOME= /usr/local/mathpad/lib 
DEL_BACK_SWITCH= 1
#CC=gcc
EXTRA_DEFINES=


SYS_LIBRARIES= $(XLIB) -lm
SRCS =  buffer.c button.c debug.c default.c edit.c events.c find.c \
        getstring.c intstack.c keymap.c menu.c message.c notadef.c \
        notation.c notatype.c output.c remark.c scrollbar.c sources.c \
        symbol.c system.c flex.c fileread.c fstate.c fileselc.c popup.c \
	funcs.c helpfile.c checkbox.c leaftree.c match.c \
        editor.cc editwindow.cc mark.cc marker.cc mathpad.cc node.cc select.cc
OBJS =  buffer.o button.o debug.o default.o edit.o events.o find.o \
        getstring.o intstack.o keymap.o menu.o message.o notadef.o \
        notation.o notatype.o output.o remark.o scrollbar.o sources.o \
        symbol.o system.o flex.o fileread.o fstate.o fileselc.o popup.o \
	funcs.o helpfile.o checkbox.o leaftree.o match.o \
        editor.o editwindow.o mark.o marker.o mathpad.o node.o select.o

ComplexProgramTarget(mathpad)

config: config.h depend

config.h: Imakefile
	$(RM) config.h
	echo '#define MATHPADHOME "'$(MATHPADHOME)'"' > config.h
	echo '#define DEL_BACK_SWITCH '$(DEL_BACK_SWITCH) >> config.h

