
# vi:sw=8:ts=8
# $Id: Makefile.in,v 1.5 1997/06/09 12:59:23 ruben Exp $
#
VPATH		= @srcdir@
srcdir		= @srcdir@

prefix		= @prefix@
exec_prefix	= @exec_prefix@
bindir		= @bindir@
datadir		= @datadir@
INSTALL		= @INSTALL@
INSTALL_DATA	= @INSTALL_DATA@

INCDIR		= @CPPFLAGS@ -I../include -I. -I..
LIBS		= @LIBS@ @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@ @QT_LIBS@
DEFS		= @DEFS@ -DEXPLORERDATADIR="\"${datadir}\""
CXXFLAGS	= $(INCDIR) @CXXFLAGS@ @X_CFLAGS@ $(DEFS) @QT_CFLAGS@
LFLAGS		= @LDFLAGS@ $(LIBS) @X_LIBS@
CXX		= @CXX@
MOC		= @MOC@
SHELL		= /bin/sh
RANLIB		= @RANLIB@
LN_S		= @LN_S@

#######	Implicit rules

.SUFFIXES: .cpp

.cpp.o: 
	$(CXX) -c $(CXXFLAGS) $<

#######	Files


SOURCES = config_expl.cpp cpdlg.cpp data_tree.cpp data_win.cpp diagnostic.cpp \
	dialogs.cpp dir_tree.cpp ewidgets.cpp expl_vfsl.cpp file_list.cpp \
	file_tool.cpp fpropdlg.cpp menu.cpp plugin_m.cpp qprogres.cpp vars.cpp \
	ecommand.cpp


INCLUDES = config_expl.h cpdlg.h cursors.h data_tree.h data_win.h diagnostic.h dialogs.h \
	dir_tree.h ewidgets.h expl_vfsl.h file_list.h file_tool.h fpropdlg.h menu.h \
	plugin_m.h qprogres.h vars.h ecommand.h



OBJECTS = config_expl.o cpdlg.o data_tree.o data_win.o diagnostic.o \
	dialogs.o dir_tree.o ewidgets.o expl_vfsl.o file_list.o \
	file_tool.o fpropdlg.o menu.o plugin_m.o qprogres.o vars.o ecommand.o


SRCMETA = mcpdlg.cpp mdata_tree.cpp mdata_win.cpp mdialogs.cpp mdir_tree.cpp \
	mewidgets.cpp mexpl_vfsl.cpp mfile_list.cpp mfile_tool.cpp mfpropdlg.cpp \
	mmenu.cpp mplugin_m.cpp mqprogres.cpp mecommand.cpp

OBJMETA = mcpdlg.o mdata_tree.o mdata_win.o mdialogs.o mdir_tree.o \
	mewidgets.o mexpl_vfsl.o mfile_list.o mfile_tool.o mfpropdlg.o \
	mmenu.o mplugin_m.o mqprogres.o mecommand.o

DISTFILES =	$(SOURCES) Makefile.in

# VERSION - the version number of the shared library, where applicable

VERSION=0.70
TARGET	= libexplorer.a

# Creates the library when all files have been compiled

$(TARGET): $(OBJECTS) $(OBJMETA)
	$(AR) $(ARFLAGS) $(TARGET) $(OBJECTS) $(OBJMETA)
	$(RANLIB) $(TARGET)

depend:
	makedepend $(SOURCES) 2> /dev/null

checkin:
	ci -l $(SOURCES) $(INCLUDES) Makefile.in

#distrib:
#.for file in $(DISTFILES)
#	@echo -n "src/$(file) "
#.endfor

dep: depend

clean:
	-rm $(OBJECTS) $(SRCMETA) $(OBJMETA) 2> /dev/null

mostlyclean: clean
	-rm $(TARGET) DEADJOE *# *~ *.bak *.BAK 2> /dev/null

distclean: mostlyclean
	-rm Makefile 2> /dev/null
	
mcpdlg.cpp: cpdlg.h
	$(MOC) cpdlg.h -o mcpdlg.cpp

mdata_tree.cpp: data_tree.h
	$(MOC) data_tree.h -o mdata_tree.cpp

mdata_win.cpp: data_win.h
	$(MOC) data_win.h -o mdata_win.cpp

mdialogs.cpp: dialogs.h
	$(MOC) dialogs.h -o mdialogs.cpp

mdir_tree.cpp: dir_tree.h
	$(MOC) dir_tree.h -o mdir_tree.cpp

mewidgets.cpp: ewidgets.h
	$(MOC) ewidgets.h -o mewidgets.cpp

mexpl_vfsl.cpp: expl_vfsl.h
	$(MOC) expl_vfsl.h -o mexpl_vfsl.cpp

mfile_list.cpp: file_list.h
	$(MOC) file_list.h -o mfile_list.cpp

mfile_tool.cpp: file_tool.h
	$(MOC) file_tool.h -o mfile_tool.cpp

mfpropdlg.cpp: fpropdlg.h
	$(MOC) fpropdlg.h -o mfpropdlg.cpp

mmenu.cpp: menu.h
	$(MOC) menu.h -o mmenu.cpp

mplugin_m.cpp: plugin_m.h
	$(MOC) plugin_m.h -o mplugin_m.cpp

mqprogres.cpp: qprogres.h
	$(MOC) qprogres.h -o mqprogres.cpp

mecommand.cpp: ecommand.h
	$(MOC) ecommand.h -o mecommand.cpp

# DO NOT DELETE THIS LINE -- make depend depends on it.
