# ------------------------------------------------------------------------
# Makefile: include files of the SpecC Reference Compiler
# ------------------------------------------------------------------------
#
# Modifications: (most recent first)
#
# 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

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

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

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


# --- EOF Makefile ---
