# -*- Mode: makefile  -*-
#
# $Id$
#
# SUMMARY:      
# USAGE:        make <make-target>
#
# AUTHOR:       Christophe Prud'homme
# ORG:           
# E-MAIL:       Christophe.Prudhomme@asci.fr
#
# ORIG-DATE:     2-Nov-96 at 03:56:10
# LAST-MOD:      8-Feb-97 at 16:10:05 by Christophe Prud'homme
#
# DESCRIPTION:  
#  - Look in GNU Coding standards for further informations
#
# $Log$
# DESCRIP-END.	

# @CXXFLAGS@     : is set to -g -Wall (when debuging) or -O2 -Wall (when not)
# @all_includes@ : is set to all needed include paths for QT, KDE and X11
# -I.. 	         : needed for config.h
CXXFLAGS= @CXXFLAGS@ -g @all_includes@ -DHAVE_CONFIG_H -I..

# @LDFLAGS@    : is set to -s (when not debuging) for stripping
# @all_libra.@ : is set to all needed libraries paths for QT, KDE and X11
# you need also @LIBSOCKET@, if you link with -lkfm
LDFLAGS	= @LDFLAGS@ @all_libraries@ -L. -lfem -ladapt -lkfm -lkdecore -lkdeui -lqt -lXext -lX11  -lm

# both are clear, I think
CXX     = @CXX@
MOC   	= @MOC@

bin_PROGRAMS	= kfem

kfem_SOURCES	= KEdit.cpp  about.cpp  filldlg.cpp  kedit.cpp  mail.cpp  print.cpp  KEdit.h  about.h  filldlg.h  kedit.h  mail.h  print.h  version.h canvas.h canvas.cpp 

METASOURCES	= kedit.moc KEdit.moc print.moc mail.moc filldlg.moc about.moc canvas.moc 

.h.moc: 
	$(MOC) $< -o $@

kfem: $(METASOURCES) $(kfem_OBJECTS) libfem.a libadapt.a
	rm -f $@
	$(CXX) $(kfem_OBJECTS) -o $@ $(LDFLAGS)


SUFFIXES	= .cpp .hpp .moc .h