# @(#)Makefile	1.1 12/15/92
# root of source tree
ROOT	      = ../../..
# VPATH points to the "real" source directory
VPATH         = $(ROOT)/src/pigilib

# get configuration info
CONFIG=$(ROOT)/config-$(ARCH).mk
include $(CONFIG)

C_INCL=-I$(OCTTOOLS)/include

.c.o:
	$(CC) $(CFLAGS) $(C_INCL) -c $<

OCTLIBS=-loh -loct -ltr -lst -lmm -lerrtrap -luprintf -lport -loptions \
 -lvov -lutility -lm

OBJS=octls.o

octls:	$(OBJS)
	$(CC) -L$(OCTLIBDIR) $(OBJS) $(OCTLIBS) -o octls

DESTBIN = $(BINDIR)/octls

$(DESTBIN):	octls
		rm -f $(DESTBIN)
		ln octls $(DESTBIN)

install:	$(DESTBIN)

# "make clean" removes .o files and other cruft
clean:
		rm -f *.o core *~ *.bak *#

# even cleaner
realclean:	clean
		rm -f octls

# "make sources" will do SCCS get on anything where SCCS file is newer.
sources:	octls.c

depend:	
		@echo no dependencies in octls directory

sccsinfo:
		sccs info
