# Generated automatically from Makefile.in by configure.
# This is the makefile for lsmtool.
#
# "@(#)lsmtool:Makefile.in,v 1.11 1994/12/28 13:06:35 wirzeniu Exp"

### Start of system configuration section. ###

srcdir = .

CC = gcc

INSTALL = /usr/bin/ginstall -c
INSTALL_DATA = ${INSTALL} -m 644

# The following is the command used to install man pages.  On some
# systems, it might have to run things through nroff, col and a
# compression program.  On most systems, installing them the same
# data files are installed is just as good.  See also below about
# the macros that define man page suffix and directories.
INSTALL_MAN = $(INSTALL_DATA)

CPPFLAGS = -I/home/wirzeniu/include  -DHAVE_LIBPUB=1 -DHAVE_LIBTERMCAP=1 
CFLAGS = -O
LDFLAGS = 
LIBS = -L/home/wirzeniu/lib -lpub -ltermcap -ltermcap

prefix = /home/wirzeniu
exec_prefix = ${prefix}

bindir = $(exec_prefix)/bin
mandir = $(prefix)/man
man1dir = $(mandir)/man1
man1ext = 1

### End of system configuration section. ###

### You probably don't need to touch anything below this.

progs = lsmtool lsmcheck lsmextract lsmsort termtest
allprogs = $(progs) cnvt-2-to-3

all: $(allprogs)

termtest: termtest.o term.o
	$(CC) $(CFLAGS) $(LDFLAGS) termtest.o term.o -o $@ $(LIBS)
lsmtool: tool.o lsm.o term.o
	$(CC) $(CFLAGS) $(LDFLAGS) tool.o lsm.o term.o -o $@ $(LIBS)
lsmcheck: lsmcheck.o lsm.o
	$(CC) $(CFLAGS) $(LDFLAGS) lsmcheck.o lsm.o -o $@ $(LIBS)
lsmsort: lsmsort.o lsm.o
	$(CC) $(CFLAGS) $(LDFLAGS) lsmsort.o lsm.o -o $@ $(LIBS)
lsmextract: lsmextract.o lsm.o
	$(CC) $(CFLAGS) $(LDFLAGS) lsmextract.o lsm.o -o $@ $(LIBS)
cnvt-2-to-3: cnvt-2-to-3.o lsm.o
	$(CC) $(CFLAGS) $(LDFLAGS) cnvt-2-to-3.o lsm.o -o $@ $(LIBS)
termtest.o: term.h
term.o: term.h
tool.o: lsm.h term.h
lsmcheck.o: lsm.h
lsmextract.o: lsm.h
lsmsort.o: lsm.h
cnvt-2-to-3.o: lsm.h
lsm.o: lsm.h

install: $(progs)
	$(INSTALL) $(progs) $(bindir)/.

clean:
	rm -rf *.o core a.out $(allprogs) lsmextract.good lsmextract.bad

realclean: clean
	rm -f Makefile configure config.status config.log config.cache

# The following rules update configure and Makefile
SET= CPPFLAGS='$(CPPFLAGS)' CFLAGS='$(CFLAGS)' \
	LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' 
Makefile: Makefile.in config.status
	$(SET) $(SHELL) config.status
config.status: configure
	$(SET) $(SHELL) $(srcdir)/configure -no-create
configure: configure.in
	$(SET) $(SHELL) -c '(cd $(srcdir); autoconf)'
