#
# This makefile is configured for use with gcc under UNIX.
# If you are compiling in another environment, you will probably 
# need to uncomment a different CFLAGS
#
CFLAGS=-O                              # Basic compile
#CFLAGS=-O -Ae                          # For HPUX native compiler
#CFLAGS=-O -D_LITTLE_ENDIAN             # For linux and other intel UNIXs

LDFLAGS=-O
LDLIBS=-lm

OBJ = vanilla.o dataset.o header.o dir.o convert.o fields.o \
	select.o buffs.o output.o search.o tools.o io_lablib3.o dos.o system.o
SRC=$(OBJ:.o=.c)

vanilla:	$(OBJ)
	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJ) -o vanilla $(LDLIBS)

checkin:
	ci $(SRC) Makefile
	co $(SRC) Makefile

clean:
	rm -f $(OBJ) vanilla

depend:
	gcc -MM $(SRC) >> Makefile

send:	vanilla
	send.sh `config.guess`

dataset.o: header.h tools.h gendef.h proto.h
header.o: header.h tools.h gendef.h proto.h io_lablib3.h toolbox.h
dir.o: tools.h gendef.h
convert.o: header.h tools.h gendef.h proto.h
fields.o: header.h tools.h gendef.h proto.h
select.o: header.h tools.h gendef.h proto.h
buffs.o: proto.h header.h tools.h gendef.h
output.o: header.h tools.h gendef.h proto.h
search.o: header.h tools.h gendef.h proto.h
tools.o: tools.h gendef.h
io_lablib3.o: io_lablib3.h toolbox.h