# @(#)Makefile	1.1 12/15/92
# Quick hack: ptolemy-style makefile
# 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 $(X11INCL)

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

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

OBJS	= fill_pat.o installColors.o process.o scan.o tech.o cleantap.o
SRCS	= fill_pat.c installColors.c process.c scan.c tech.c cleantap.c
HDRS	= fill_pat.h general.h message.h scan.h str.h tech.h


installColors:	$(OBJS)
	$(CC) -L$(OCTLIBDIR) $(OBJS) $(OCTLIBS) $(LX11) -o installColors

DESTBIN = $(BINDIR)/installColors

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

install:	$(DESTBIN)

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

# even cleaner
realclean:	clean
		rm -f installColors

# "make sources" will do SCCS get on anything where SCCS file is newer.
sources:	$(SRCS) $(HDRS)

depend:	
		@echo dependencies are set by hand

sccsinfo:
		sccs info

fill_pat.o : general.h str.h message.h fill_pat.h 
process.o : tech.h general.h str.h fill_pat.h scan.h
scan.o : scan.h general.h str.h 
tech.o : general.h str.h message.h tech.h fill_pat.h scan.h
