VPATH = ../
HDR = ../

CC = gcc
CXX = gcc
CPPFLAGS = -Wall  -I$(HDR) -O3 # -g
CXXFLAGS =  `wx-config --cflags`
CFLAGS = -Wall -I$(HDR) -O3 # -g
LD = g++

OBJS = qlt.o loadimages.o options.o fmtdlg.o qxlopt.o qltapp.o vfs.o ntvfs.o \
	qxlfs.o qlflp.o unixfuncs.o qltmisc.o

SRC = $(VPATH)/qlt.cc $(VPATH)/loadimages.cc $(VPATH)/options.cc \
	$(VPATH)/fmtdlg.cc $(VPATH)/qxlopt.cc $(VPATH)/qltapp.cc \
	$(VPATH)/vfs.cc $(VPATH)/ntvfs.cc $(VPATH)/qxlfs.cc \
	$(VPATH)/qlflp.cc $(VPATH)/unixfuncs.c $(VPATH)/qltmisc.cc

all:    wxqt2


wxqt2: $(OBJS)
	$(LD) $(CPPFLAGS) -o wxqt2 $(OBJS)   `wx-config --libs` 

clean:
	-rm *.o

realclean:
	-rm *.o
	-rm -f wxqt2
	-rm -f core
	-rm -f *~
	-rm -f '#*#'



depend: $(SRC)
	-makedepend  -Y $(SRC)

# DO NOT DELETE

qlt.o:  ../qlt.h ../qltmisc.h ../vfs.h ../qlflp.h ../qxlfs.h ../qxlopt.h
qlt.o: ../qlt.cc ../version.h ../optdlg.h
loadimages.o: ../qlt.h ../qltmisc.h ../vfs.h ../qlflp.h ../qxlfs.h
loadimages.o: ../loadimages.cc ../pixmaps.h
options.o: ../qlt.h ../qltmisc.h ../vfs.h ../qlflp.h ../qxlfs.h
options.o: ../options.cc ../optdlg.h
fmtdlg.o: ../fmtdlg.h ../fmtdlg.cc
qxlopt.o: ../qxlopt.h ../qxlopt.cc
qltapp.o: ../qlt.h ../qltmisc.h ../vfs.h ../qlflp.h ../qxlfs.h ../qltapp.cc
vfs.o: ../vfs.h ../qltmisc.h ../qlflp.h ../qxlfs.h ../qlt.h ../vfs.cc
ntvfs.o: ../vfs.h ../qltmisc.h ../qlflp.h ../qxlfs.h ../ntvfs.cc
qxlfs.o: ../vfs.h ../qltmisc.h ../qlflp.h ../qxlfs.h ../qlt.h ../qxlopt.h ../qxlfs.cc
qlflp.o: ../qlt.h ../qltmisc.h ../vfs.h ../qlflp.h ../qxlfs.h ../fmtdlg.h ../qlflp.cc
qltmisc.o: ../qlt.h ../qltmisc.h ../vfs.h ../qlflp.h ../qxlfs.h ../qltmisc.cc
unixfuncs.o : ../unixfuncs.c
