#
#  Makefile for lf
#
#  If you move this makefile, update the variable below
#  or else depend won't work.

CXX=gcc
CXXFLAGS=-O2
CPPFLAGS=-I/d/libgp271/g++-include
LIBS=/d/libgp271/lib/libg++.a /d/libgp271/lib/libstdc++.a

MAKEFILE	= Makefile

CFILES		= lf.cc entry.cc screen.cc option.cc \
                  directory.cc sort.cc Dirent.cc
HFILES		= entry.h screen.h option.h \
                  directory.h Dirent.h
OFILES		= lf.o entry.o screen.o option.o \
                  directory.o sort.o Dirent.o
PROGRAM		= lf.ttp
DEPEND_SOURCES	= $(srcdir)/*.cc

#### package, host, target, and site dependent Makefile fragments come in here.
##

$(PROGRAM): $(OFILES)
	$(CXX) $(OFILES) -o $(PROGRAM) $(LIBS) -lcurses
	strip -k $@
	chmod +x $@

check: lf.ttp
# lf dies on Irix.  Perhaps incompatible directory routines?
	./lf

run_tests: check
