# Makefile for Ptolemy graphical interface library
# Version identification:
# @(#)make.template	2.18	7/1/92
#
# Copyright (c) 1989,1990,1991 The Regents of the University of California.
#			All Rights Reserved.
# Date of creation: 5/23/90
# Current version by J. Buck
#
# If this file's name is "make.template" and there is no makefile in
# this directory, do
#	cp make.template makefile
#	make depend
# This will add the dependencies to the 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)

HDRS	      = compile.h \
		edit.h \
		err.h \
		exec.h \
		kernelCalls.h \
		main.h \
		local.h \
		paramStructs.h \
		util.h \
		utilities.h \
		vemInterface.h \
		ganttIfc.h \
		octIfc.h \
		icon.h \
		misc.h \
		options.h \
		mkTerm.h \
		mkIcon.h \
		palette.h \
		octMacros.h

LIBCSRCS      = main.c \
		util.c \
		utilities.c \
		compile.c \
		paramStructs.c \
		vemInterface.c \
		edit.c \
		exec.c \
		err.c \
		ganttChart.c \
		ganttIfc.c \
		octIfc.c \
		icon.c \
		misc.c \
		mkTerm.c \
		mkIcon.c \
		palette.c \
		xfunctions.c \
		options.c

LIBCPPSRCS    = kernelCalls.cc XError.cc pigiLoader.cc

SRCS = $(LIBCSRCS) $(LIBCPPSRCS)

OBJS = $(LIBCSRCS:.c=.o) $(LIBCPPSRCS:.cc=.o)

LIB=libpigi.a

all:	makefile $(LIB)

install: makefile $(LIBDIR)/$(LIB)

INCL=-I$(KERNDIR)
C_INCL=-I$(OCTTOOLS)/include $(X11INCL)

lint:	$(LIBCSRCS)
	lint -u -I$(OCTTOOLS)/include $(LIBCSRCS) > lint


# include common definitions, rules
include $(ROOT)/common.mk

# Don't add anything after the next line; makedepend will zap it.
# DO NOT DELETE THIS LINE -- make depend depends on it.

main.o : main.c local.h ../../octtools/include/ansi.h ../../octtools/include/rpc.h \
  ../../octtools/include/port.h ../../octtools/include/oct.h ../../octtools/include/list.h \
  ../../octtools/include/copyright.h ../../octtools/include/region.h vemInterface.h \
  compile.h edit.h exec.h util.h icon.h misc.h ganttIfc.h options.h utilities.h \
  err.h 
util.o : util.c local.h ../../octtools/include/ansi.h err.h util.h ../../octtools/include/rpc.h \
  ../../octtools/include/port.h ../../octtools/include/oct.h ../../octtools/include/list.h \
  ../../octtools/include/copyright.h ../../octtools/include/region.h octIfc.h \
  vemInterface.h 
utilities.o : utilities.c ../../octtools/include/rpc.h ../../octtools/include/port.h \
  ../../octtools/include/oct.h ../../octtools/include/ansi.h ../../octtools/include/list.h \
  ../../octtools/include/copyright.h ../../octtools/include/region.h exec.h 
compile.o : compile.c local.h ../../octtools/include/ansi.h ../../octtools/include/rpc.h \
  ../../octtools/include/port.h ../../octtools/include/oct.h ../../octtools/include/list.h \
  ../../octtools/include/copyright.h ../../octtools/include/region.h paramStructs.h \
  vemInterface.h util.h err.h main.h octIfc.h octMacros.h 
paramStructs.o : paramStructs.c local.h ../../octtools/include/ansi.h util.h \
  err.h paramStructs.h 
vemInterface.o : vemInterface.c local.h ../../octtools/include/ansi.h ../../octtools/include/rpc.h \
  ../../octtools/include/port.h ../../octtools/include/oct.h ../../octtools/include/list.h \
  ../../octtools/include/copyright.h ../../octtools/include/region.h err.h octMacros.h 
edit.o : edit.c local.h ../../octtools/include/ansi.h ../../octtools/include/rpc.h \
  ../../octtools/include/port.h ../../octtools/include/oct.h ../../octtools/include/list.h \
  ../../octtools/include/copyright.h ../../octtools/include/region.h ../../octtools/include/oh.h \
  paramStructs.h vemInterface.h util.h err.h octIfc.h exec.h 
exec.o : exec.c local.h ../../octtools/include/ansi.h ../../octtools/include/rpc.h \
  ../../octtools/include/port.h ../../octtools/include/oct.h ../../octtools/include/list.h \
  ../../octtools/include/copyright.h ../../octtools/include/region.h vemInterface.h \
  compile.h octIfc.h ../../octtools/include/oh.h edit.h err.h util.h ganttIfc.h 
err.o : err.c local.h ../../octtools/include/ansi.h 
ganttChart.o : ganttChart.c local.h ../../octtools/include/ansi.h err.h vemInterface.h 
ganttIfc.o : ganttIfc.c local.h ../../octtools/include/ansi.h ../../octtools/include/rpc.h \
  ../../octtools/include/port.h ../../octtools/include/oct.h ../../octtools/include/list.h \
  ../../octtools/include/copyright.h ../../octtools/include/region.h err.h ganttIfc.h \
  ../../octtools/include/oh.h vemInterface.h 
octIfc.o : octIfc.c local.h ../../octtools/include/ansi.h ../../octtools/include/rpc.h \
  ../../octtools/include/port.h ../../octtools/include/oct.h ../../octtools/include/list.h \
  ../../octtools/include/copyright.h ../../octtools/include/region.h paramStructs.h \
  err.h util.h octMacros.h mkIcon.h ../../octtools/include/oh.h mkTerm.h 
icon.o : icon.c local.h ../../octtools/include/ansi.h ../../octtools/include/rpc.h \
  ../../octtools/include/port.h ../../octtools/include/oct.h ../../octtools/include/list.h \
  ../../octtools/include/copyright.h ../../octtools/include/region.h util.h err.h \
  vemInterface.h octMacros.h palette.h main.h 
misc.o : misc.c local.h ../../octtools/include/ansi.h ../../octtools/include/rpc.h \
  ../../octtools/include/port.h ../../octtools/include/oct.h ../../octtools/include/list.h \
  ../../octtools/include/copyright.h ../../octtools/include/region.h vemInterface.h \
  util.h octIfc.h octMacros.h err.h main.h 
mkTerm.o : mkTerm.c local.h ../../octtools/include/ansi.h ../../octtools/include/rpc.h \
  ../../octtools/include/port.h ../../octtools/include/oct.h ../../octtools/include/list.h \
  ../../octtools/include/copyright.h ../../octtools/include/region.h err.h octMacros.h \
  ../../octtools/include/oh.h mkTerm.h mkIcon.h 
mkIcon.o : mkIcon.c local.h ../../octtools/include/ansi.h ../../octtools/include/rpc.h \
  ../../octtools/include/port.h ../../octtools/include/oct.h ../../octtools/include/list.h \
  ../../octtools/include/copyright.h ../../octtools/include/region.h err.h mkTerm.h \
  octIfc.h octMacros.h util.h ../../octtools/include/oh.h vemInterface.h mkIcon.h 
palette.o : palette.c local.h ../../octtools/include/ansi.h ../../octtools/include/rpc.h \
  ../../octtools/include/port.h ../../octtools/include/oct.h ../../octtools/include/list.h \
  ../../octtools/include/copyright.h ../../octtools/include/region.h ../../octtools/include/oh.h \
  octMacros.h err.h mkIcon.h util.h octIfc.h 
xfunctions.o : xfunctions.c 
options.o : options.c local.h ../../octtools/include/ansi.h ../../octtools/include/rpc.h \
  ../../octtools/include/port.h ../../octtools/include/oct.h ../../octtools/include/list.h \
  ../../octtools/include/copyright.h ../../octtools/include/region.h vemInterface.h \
  edit.h exec.h util.h icon.h misc.h err.h 
kernelCalls.o : kernelCalls.cc kernelCalls.h ../../src/kernel/InterpGalaxy.h \
  ../../src/kernel/DynamicGalaxy.h ../../src/kernel/Galaxy.h ../../src/kernel/Star.h \
  ../../src/kernel/Block.h ../../src/kernel/NamedObj.h ../../src/kernel/StringList.h \
  ../../src/kernel/miscFuncs.h ../../src/kernel/logNew.h ../../src/kernel/DataStruct.h \
  ../../src/kernel/type.h ../../src/kernel/isa.h ../../src/kernel/PortHole.h ../../src/kernel/dataType.h \
  ../../src/kernel/Particle.h ../../src/kernel/ComplexSubset.h ../../src/kernel/Attribute.h \
  ../../src/kernel/State.h ../../src/kernel/Error.h ../../src/kernel/KnownBlock.h \
  ../../src/kernel/KnownState.h ../../src/kernel/Universe.h ../../src/kernel/Target.h \
  mkIcon.h paramStructs.h ../../src/kernel/InterpUniverse.h ../../src/kernel/Scheduler.h \
  ../../src/kernel/SimControl.h ../../src/kernel/Domain.h ../../src/kernel/KnownTarget.h \
  ../../src/kernel/ConstIters.h ../../src/kernel/pt_fstream.h 
XError.o : XError.cc ../../src/kernel/Error.h ../../src/kernel/Scheduler.h ../../src/kernel/StringList.h \
  ../../src/kernel/miscFuncs.h ../../src/kernel/logNew.h ../../src/kernel/DataStruct.h \
  ../../src/kernel/type.h ../../src/kernel/SimControl.h ../../src/kernel/NamedObj.h \
  ../../src/kernel/isa.h 
pigiLoader.o : pigiLoader.cc ../../src/kernel/Linker.h ../../src/kernel/Error.h \
  ../../src/kernel/Domain.h ../../src/kernel/StringList.h ../../src/kernel/miscFuncs.h \
  ../../src/kernel/logNew.h ../../src/kernel/DataStruct.h ../../src/kernel/type.h \
  ../../src/kernel/pt_fstream.h 
