# This is the makefile that creates the LifeLines executable.  The
# executable is named "lines" by default, but you may change this by
# altering the definition of the EXEC macro.
#
# Note that you may have to remove the -lmalloc flag from the final
# link line.  This is included because some UNIX systems provide an
# extra malloc library which is more efficient than the malloc
# routines found in the standard libraries.

CC=cc
CFLAGS=
EXEC=lines
HDRS=../hdrs
LLIBS=../interp/interp.a ../gedlib/gedlib.a ../btree/btree.a
MALLOC=
#MALLOC=-lmalloc
SLIBS=$(MALLOC) -lcurses
BIN=../bin

OFILES= abbrev.o add.o ask.o browse.o delete.o double.o \
	edit.o lbrowse.o main.o merge.o messages.o miscutls.o \
	panel.o path.o remove.o show.o signals.o screen.o standard.o \
	swap.o tandem.o

$(EXEC): $(OFILES)
	rm -f $(EXEC)
	rm -f $(BIN)/$(EXEC)
	$(CC) -o $(EXEC) $(OFILES) $(LLIBS) $(SLIBS)
	ln $(EXEC) $(BIN)

.c.o:
	$(CC) $(CFLAGS) -c -I$(HDRS) $<
