################################################################
#  Makefile
# 
# 
#  Copyright (C) 1999 Jonathan R. Hudson
#  Developed by Jonathan R. Hudson <jrhudson@bigfoot.com>
# 
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
# 
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
# 
#    You should have received a copy of the GNU General Public License
#    along with this program; if not, write to the Free Software
#    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# 
#    $Log: makefile,v $
#    Revision 1.4  2000/04/05 21:05:34  jrh
#    Help and dll changes
#
#    Revision 1.3  1999/11/09 20:50:28  jrh
#    Updated for RCS
#
#    Revision 1.2  1999/11/09 20:18:47  jrh
#    Added full dependencies
#
#    Revision 1.1  1999/11/09 20:13:43  jrh
#    Initial revision
#
#
################################################################


SRCS=fmtdlg.cc fmtdlg.h loadimages.cc ntvfs.cc optdlg.h options.cc \
	pixmaps.h qdisk.h qlflp.cc qlflp.h qlt.cc qlt.h qltapp.cc \
	qltmisc.cc qltmisc.h qxlfs.cc qxlfs.h qxlopt.cc qxlopt.h \
	unixfuncs.c version.h vfs.cc vfs.h winpipe.c winpipe.h \
	README makefile COPYING Unix/makefile \
	Win32/exe.ico \
	Win32/file.ico \
	Win32/folder.ico \
	Win32/left.bmp \
	Win32/makefile \
	Win32/makefile.b32 \
	Win32/ql.ico \
	Win32/qlt.rc \
	Win32/right.bmp \
	Win32/up.ico \
	docs

ifeq ($(OSTYPE),cygwin32)
	DIR=Win32
	OPT=WXUSINGDLL=1
else	
	DIR=Unix
	OPT=	
endif

all: domake

domake:
	cd $(DIR) ; $(OPT) $(MAKE) 

clean:
	-rm -f *~ *.gz *.bz2 '#*#'
	(cd docs  && rm -f *~ '#*#')
	(cd $(DIR) && rm -f *.o)

realclean:
	-rm -f *~ *.zip *.bz2 '#*#'
	cd $(DIR) ; rm -f  *.exe *.o wxqt2

dist: wxqt2.tar.gz wxqt2.exe.bz2 wx22_0.dll.bz2

web: wxqt2.tar.gz wxqt2.exe.bz2 wx22_0.dll.bz2
	cp wxqt2.tar.gz wxqt2.exe.bz2 wx22_0.dll.bz2 /home/httpd/html/dld/misc/
	cp -a docs/* /home/httpd/html/dld/misc/

wxqt2.tar.gz: $(SRCS)
	tar -czvf wxqt2.tar.gz $(SRCS)

wxqt2.exe.bz2: Win32/wxqt2.exe
	bzip2 -9 <Win32/wxqt2.exe >wxqt2.exe.bz2

wx22_0.dll.bz2:
	bzip2 -9 </mnt/t95/wx2.2.0/lib/wx22_0.dll >wx22_0.dll.bz2

