# ------------------------------------------------------------------------
# Makefile: include files of the SpecC Reference Compiler
# ------------------------------------------------------------------------
#
# Modifications: (most recent first)
#
# RD 10/03/02	separated 'clean' target into 'clean' and 'distclean'
# RD 02/27/02	added signals.h (support of 'buffered' and 'signal' types)
# RD 02/18/02	added entry for typed_double_handshake template
# RD 02/14/02	added entries needed for queue templates (macros)
# RD 12/07/01	added rule to create subdirectory sys if it not exists
# RD 11/21/01	added missing links limits.sh and longlong.h to DIST
# RD 11/15/01	added GL_System.h
# RD 11/12/01	added GL_FileIO.h
# RD 05/25/01	reduced contents to SCRC requirements
# ------------------------------------------------------------------------

# --- macros

include ../Makefile.macros

DIST	=	Makefile \
		Global.h GL_String.h GL_FileIO.h GL_System.h \
		CcDriver.h \
		Parser.h \
		IntRep.h IntRep \
		bit.h sys/bit.h \
		limits.sh longlong.h \
		sim.sh sim.h specc.h piped.h signals.h \
		i_typed_sender.sh	\
		i_typed_receiver.sh	\
		i_typed_tranceiver.sh	\
		c_typed_queue.sh	\
		c_typed_double_handshake.sh

ORIG	=	Makefile


# --- production rules

all:	sys

sys:
	$(MKDIR) sys
	$(CHGRP) $(FILE_GROUP) sys
	$(CHMOD) $(FILE_PERM) sys


# --- service rules

clean:
	-$(RM) core *.bak *.BAK
	-$(RM) *_pure_* .pure

distclean:	clean


dist:
	for file in $(DIST); do echo $(DISTPREFIX)/$$file >>$(DISTLIST); done

orig:
	for file in $(ORIG); do echo $(ORIGPREFIX)/$$file >>$(ORIGLIST); done


# --- EOF Makefile ---
