include $(WXWIN)/src/makeg95.env
WXDIR=$(WXWIN)

VPATH = ../
HDR = ../
WXUSINGDLL = 1
CPPFLAGS += -Wall -I$(HDR) -DSTATICTEXT
LDFLAGS += -O2

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

SRC = qlt.cc loadimages.cc options.cc fmtdlg.cc qxlopt.cc qltapp.cc \
	 vfs.cc ntvfs.cc qxlfs.cc qlflp.cc winpipe.c qltmisc.cc

all:    wxqt2

wxqt2: $(OBJS)
	$(CC) -O2 -o  $@  $(LDFLAGS) $(OBJS) $(LDLIBS)
	strip $@.exe

qltres.o:  qlt.rc
	$(RESCOMP) -i $< -o $@ $(RESFLAGS)

clean:
	-rm *.o

winpipe.o: ../winpipe.c ../winpipe.h
	$(CC) $(CPPFLAGS) -c -o $@ $<

.cc.o:
	$(CC) -c $(CPPFLAGS)  -o $@ ../$*.cc

# 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 ../winpipe.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 ../winpipe.h
ntvfs.o: ../vfs.h ../qltmisc.h ../qlflp.h ../qxlfs.h ../ntvfs.cc ../winpipe.h
qxlfs.o: ../vfs.h ../qltmisc.h ../qlflp.h ../qxlfs.h ../qlt.h ../qxlopt.h ../qxlfs.cc ../winpipe.h
qlflp.o: ../qlt.h ../qltmisc.h ../vfs.h ../qlflp.h ../qxlfs.h ../fmtdlg.h ../qlflp.cc ../winpipe.h
qltmisc.o: ../qlt.h ../qltmisc.h ../vfs.h ../qlflp.h ../qxlfs.h ../qltmisc.cc
qltres.o:  qlt.rc exe.ico folder.ico up.ico file.ico left.bmp ql.ico right.bmp


