# Generated automatically from Makefile.in by configure.
###/* This file is part of
###* ======================================================
###*
###*           LyX, the High Level Word Processor
###*
###*           Copyright (C) 1995 Matthias Ettrich
###*
###*======================================================*/
###
###
### Makefile by Jean-Marc Lasgouttes (Jean-Marc.Lasgouttes@inria.fr)
###


# Common prefix for all directories.
prefix = /usr/local
exec_prefix = ${prefix}

# For the lyx binary
LYX_BINDIR = ${exec_prefix}/bin

# For all LyX support files
LYX_DIR = ${exec_prefix}/lib/lyx

# For LyX's man page
LYX_MANDIR = ${prefix}/man

# For lyx.sty LaTeX style file. This should be on LaTeX's search path.
TEX_STY_DIR = ${TEXMF}/tex/latex/misc

# C++ compiler and flags (you may replace CXXFLAGS by `-O2' if you want 
# a faster executable without debug information. This can also be done
# by setting the CXXFLAGS environment variable before running configure. 
CXX = c++
CXXFLAGS = -g -O -Wall -Wno-unused

# Libraries for linking and flags for the C preprocessor. If you need to
# modify this to compile LyX, please send a bug report so that we can 
# improve configure.
LIBS = -lforms -lXpm  -lSM -lICE -L/afs/informatik.uni-tuebingen.de/home/ettrich/xforms/FORMS/  -lc -lm  -L/usr/local/X11R6/lib -lX11  -lnsl
CPPFLAGS = -I/afs/informatik.uni-tuebingen.de/home/ettrich/xforms/FORMS/   -I/usr/local/X11R6/include -I./images

###################################################################
# You should not need to change anything below this line.

# The GNU coding standards recommends this. Don't ask me why...
SHELL = /bin/sh
.SUFFIXES:
.SUFFIXES: .C .o

# Various commands
MKINSTALLDIRS = ./mkinstalldirs
INSTALL = /usr/local/bin/install -c
RM = rm -f
MANSUFFIX = 1

SRCS =	lyx.C lyx_cb.C lyx_main.C inset.C lyxfont.C file.C paragraph.C \
	layout.C screen.C text.C text2.C spellchecker.C kbmap.C \
	lyxserver.C bmtable.C math_symbols.C keybind.C credits.C docu.C \
	menus.C intl.C form1.C

OBJS =	lyx.o lyx_cb.o lyx_main.o inset.o lyxfont.o file.o paragraph.o \
	layout.o screen.o text.o text2.o spellchecker.o kbmap.o \
	lyxserver.o bmtable.o math_symbols.o keybind.o credits.o docu.o \
	menus.o intl.o form1.o

DEFS =  layouts/*.layout layouts/textclass.def

DOC =   doc/*.lyx

KBD =   kbd/*.kmap 

TEMPL = templates/*.lyx


lyx: $(OBJS)
	$(CXX) -o lyx $(OBJS) $(LIBS)

all: 	depend lyx

# Target to use purify on LyX. You will nedd to adapt it to your configuration.
purify: $(OBJS)
	purify -g++ -logfile=purify.log -cache-dir=/tmp/purify \
	   -always-use-cache-dir -optimize-save-o7=no \
	   -collector=/usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3/2.7.2/ld \
           $(CXX) -o lyx $(OBJS) $(LIBS)
.C.o: 
	$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) $< 

depend: gnudepend

gnudepend:
	sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
	$(CXX) $(CXXCFLAGS) $(CPPFLAGS) -MM $(SRCS) >> tmp_make
	mv tmp_make Makefile

xdepend:
	makedepend $(CPPFLAGS) $(SRCS)

installdirs:
	$(MKINSTALLDIRS) $(LYX_BINDIR) \
               $(TEX_STY_DIR) \
               $(LYX_MANDIR)/man$(MANSUFFIX) \
               $(LYX_DIR)/doc $(LYX_DIR)/layouts \
               $(LYX_DIR)/templates $(LYX_DIR)/kbd

install:  lyx installdirs
	${INSTALL} lyx $(LYX_BINDIR)/lyx
	${INSTALL} -m 644 tex/lyx.sty $(TEX_STY_DIR)/lyx.sty
	${INSTALL} -m 644 lyxrc $(LYX_DIR)/lyxrc
	${INSTALL} -m 644 CREDITS $(LYX_DIR)/CREDITS
	for i in $(DOC); do \
	   ${INSTALL} -m 644 $$i $(LYX_DIR)/$$i ; \
	done
	for i in $(DEFS); do \
	  ${INSTALL} -m 644 $$i $(LYX_DIR)/$$i ; \
	done
	for i in $(TEMPL); do \
	  ${INSTALL} -m 644 $$i $(LYX_DIR)/$$i ; \
	done
	for i in $(KBD); do \
	  ${INSTALL} -m 644 $$i $(LYX_DIR)/$$i ; \
	done
	${INSTALL} -m 644 lyx.man $(LYX_MANDIR)/man$(MANSUFFIX)/lyx.$(MANSUFFIX)

clean:
	$(RM) lyx *.o core

distclean:	clean
	$(RM) config.log config.cache config.status \
              Makefile *.orig *.rej *~ TAGS *.bak

### Dependencies

