V10/cmd/cfront/cfront2.00/makefile

#ident	"@(#)ctrans:src/makefile	1.3.7.20"
###############################################################################
#			Copyright (c) 1984 AT&T
#	  		  All Rights Reserved  	
#
#	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
#	
#	The copyright notice above does not evidence any   	
#	actual or intended publication of such source code.
#
###############################################################################
CC	=	nCC

#The ANSI_OUT option has been replaced by the +a1 and +a0 compilation options

#for systems which only recognize identifiers of up to 31 characters
#setting DENSE to -DDENSE causes cfront to generate internal names
#of 31 characters or less 
DENSE=

# The use of RETBUG is nolonger needed with version 2.0 and has been removed.
# RETBUG was used in 1.* Translator versions to circumvent a C compiler bug.

CCFLAGS=-O

# top level makefile modifies the following
MPMACRO	= PATCH
MPFILE	= patch

OFILES	=	alloc.o dcl.o dcl2.o dcl3.o dcl4.o del.o error.o expand.o \
		expr.o expr2.o expr3.o find.o lalex.o lex.o main.o \
		norm.o norm2.o print.o print2.o repr.o simpl.o simpl2.o \
		size.o table.o typ.o typ2.o y.tab.o

cfront:	$(OFILES)
	$(CC)	-o cfront $(CCFLAGS) $(OFILES)

cfront.h:	token.h typedef.h

y.tab.c:	gram.y 
	yacc gram.y

alloc.o:	alloc.c cfront.h
	$(CC) $(CCFLAGS) -c alloc.c 

dcl.o:	dcl.c cfront.h size.h
	$(CC) $(CCFLAGS) -c dcl.c 

dcl2.o:	dcl2.c cfront.h size.h
	$(CC) $(CCFLAGS) -c dcl2.c 

dcl3.o:	dcl3.c cfront.h size.h
	$(CC) $(CCFLAGS) -c dcl3.c 

dcl4.o:	dcl4.c cfront.h size.h
	$(CC) $(CCFLAGS) -c dcl4.c 

del.o:	del.c cfront.h
	$(CC) $(CCFLAGS) -c del.c 

error.o:	error.c cfront.h size.h
	$(CC) $(CCFLAGS) -c error.c 

expand.o:	expand.c cfront.h
	$(CC) $(CCFLAGS) -c expand.c 

expr.o:	expr.c cfront.h size.h
	$(CC) $(CCFLAGS) -c expr.c 

expr2.o:	expr2.c cfront.h size.h
	$(CC) $(CCFLAGS) -c expr2.c 

expr3.o:	expr3.c cfront.h size.h
	$(CC) $(CCFLAGS) -c expr3.c 

find.o:	find.c cfront.h 
	$(CC) $(CCFLAGS) -c find.c 

lalex.o:lalex.c cfront.h yystype.h tqueue.h 
	$(CC) $(CCFLAGS) -c lalex.c

lex.o:	lex.c cfront.h size.h tqueue.h yystype.h
	$(CC) $(CCFLAGS) -c lex.c 

# main depends on this makefile to force recompilation
# when going from patch to munch
main.o:	main.c cfront.h makefile
	$(CC) -D$(MPMACRO) $(DENSE) $(CCFLAGS) -c main.c 

norm.o:	norm.c cfront.h size.h
	$(CC) $(CCFLAGS) -c norm.c 

norm2.o:	norm2.c cfront.h size.h
	$(CC) $(CCFLAGS) -c norm2.c 

print.o:	print.c cfront.h
	$(CC) $(CCFLAGS) -c print.c 

print2.o:	print2.c cfront.h
	$(CC) $(DENSE) $(CCFLAGS) -c print2.c 

repr.o:	repr.c cfront.h
	$(CC) $(CCFLAGS) -c repr.c 

simpl.o:	simpl.c cfront.h size.h
	$(CC) $(CCFLAGS) -c simpl.c 

simpl2.o:	simpl2.c cfront.h size.h
	$(CC) $(CCFLAGS) -c simpl2.c 

size.o:	size.c cfront.h size.h
	$(CC) $(CCFLAGS) -c size.c 

table.o:	table.c cfront.h
	$(CC) $(CCFLAGS) -c table.c 

typ.o:	typ.c cfront.h size.h
	$(CC) $(CCFLAGS) -c typ.c 

typ2.o:	typ2.c cfront.h size.h
	$(CC) $(CCFLAGS) -c typ2.c 

y.tab.o:	y.tab.c cfront.h size.h 
	$(CC) -DGRAM $(CCFLAGS) -c y.tab.c 

cpio:	
	ls alloc.c dcl.c dcl2.c dcl3.c dcl4.c del.c error.c expand.c \
		expr.c expr2.c expr3.c find.c lalex.c lex.c main.c \
		norm.c norm2.c print.c print2.c repr.c simpl.c simpl2.c \
		size.c table.c typ.c typ2.c \
		gram.y \
		token.h cfront.h size.h tqueue.h typedef.h yystype.h \
		makefile | cpio -oc > cfront.cpio