PROTO_DEFINES = -D_NO_PROTO
#PROTO_DEFINES = -DFUNCPROTO -DNARROWPROTO
#DEFINES = -DSUN -DDEBUG -D_NO_PROTO
DEFINES = -DSUN
#DEFINES = -D__STDC__ -DIRIS4
INCLUDES = -I.. -I/usr/local/include
CCOPTIONS=
CDEBUGFLAGS = -g
# we should not need to modify anything below this line.
ALLDEFINES = $(INCLUDES) $(PROTO_DEFINES) $(DEFINES)
CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)

LDFLAGS = -L/usr/lib -lXm -lXt -lXext -lX11
LOCAL_LIBS = /soft/hdf/SPARC/lib/libdf.a /soft/hdf/SPARC/lib/libvg.a
CC=cc

OBJECTS = annotate.o hb.o hbhdf.o misc.o xcalls.o

lib:   	$(OBJECTS)
	rm -f libxhb.a
	ar q libxhb.a $(OBJECTS)
	ranlib libxhb.a

hbox:  	$(OBJECTS) call.o
	$(CC) -o $@ $(OBJECTS) call.o \
	$(LDFLAGS) $(LOCAL_LIBS)
#
# Include file dependencies
#
	
annotate.o:	annotate.c 	hbox.h
xcalls.o:  	help.h  	hbox.h	help.h
hbhdf.o:   	hbhdf.c 	hbox.h
hb.o:      	hb.c    	hbox.h
misc.o:    	misc.c  	hbox.h
sheet.o:   	sheet.c		hbox.h

#
# miscellaneous directives
#
tidy:
	rm -f *~ #*# *.i core

clean: tidy
	rm -f *.o

clobber: clean
	rm -f $(BINARIES)
#
