# Makefile for Thor domain support
# Version identification:
# @(#)make.template	1.9 10/27/92
# Copyright (c) 1990 The Regents of the University of California.
#                       All Rights Reserved.
# Date of creation: 1/16/91
#
# 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 Ptolemy directory
ROOT=../../../..
# True source directory
VPATH = $(ROOT)/src/domains/thor/analyzerX11

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

C_INCL=$(X11INCL)
LIB=dummy # no library

# Target
ANALYZER = ANALYZER_X11

# Source files
SRCS =  ANALYZER.c exec.c trigger.c window.c event.c mem.c movetrace.c\
	postscript.c history.c coords.c convert.c ipc.c names.c readwrite.c \
	parser.c commands.c globals.c txtwindow.c scrollbar.c graphics.c

# Header files
HDRS=	defs.h history.h ipc.h parser.h readwrite.h arrows.h mem.h graphics.h

# Object files 
OBJS= $(SRCS:.c=.o)
EXTRA_SRCS= Bitmaps
EXTRA_DESTS= $(ANALYZER)

all:	makefile $(ANALYZER)

$(ANALYZER):	$(OBJS)
		rm -f $(ANALYZER)
		$(CC) -o $@ $(CFLAGS) $(X11LIBDIR) $(OBJS) $(LX11)

# "make install" puts things in the official place
install:	makefile $(BINDIR)/$(ANALYZER)

$(BINDIR)/$(ANALYZER):	$(ANALYZER)
		rm -f $(BINDIR)/$(ANALYZER)
		ln $(ANALYZER) $(BINDIR)

REALCLEAN_STUFF=$(ANALYZER)

# 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.





ANALYZER.o : ANALYZER.c defs.h history.h mem.h 
exec.o : exec.c defs.h history.h mem.h parser.h 
trigger.o : trigger.c defs.h history.h mem.h 
window.o : window.c defs.h history.h mem.h 
event.o : event.c defs.h history.h mem.h ipc.h arrows.h 
mem.o : mem.c mem.h 
movetrace.o : movetrace.c defs.h history.h mem.h 
postscript.o : postscript.c defs.h history.h mem.h 
history.o : history.c defs.h history.h mem.h 
coords.o : coords.c defs.h history.h mem.h 
convert.o : convert.c defs.h history.h mem.h 
ipc.o : ipc.c ipc.h 
names.o : names.c defs.h history.h mem.h ipc.h 
readwrite.o : readwrite.c defs.h history.h mem.h readwrite.h 
parser.o : parser.c parser.h 
commands.o : commands.c parser.h 
globals.o : globals.c defs.h history.h mem.h 
txtwindow.o : txtwindow.c defs.h history.h mem.h 
scrollbar.o : scrollbar.c defs.h history.h mem.h 
graphics.o : graphics.c defs.h history.h mem.h graphics.h Bitmaps/gray Bitmaps/xpat \
  Bitmaps/left_arrows Bitmaps/right_arrows Bitmaps/left_curs Bitmaps/left_mask \
  Bitmaps/right_curs Bitmaps/right_mask Bitmaps/chk Bitmaps/iconbox Bitmaps/sizebox \
  Bitmaps/select 
