head	1.7;
access;
symbols
	codegen2-regalloc:1.7.0.16
	codegen2:1.7.0.14
	codegen2-no-regalloc:1.7
	opt-regalloc3-merge2:1.7
	opt-sideffect-merge1:1.7
	opt-regalloc3-merge1:1.7
	opt-regalloc3:1.7.0.12
	opt-regalloc3-base:1.7
	opt-sideffect:1.7.0.10
	opt-sideffect-base:1.7
	new-regalloc-thursday:1.7
	codegen2-thursday:1.7
	new-regalloc:1.7.0.8
	new-regalloc-base:1.7
	opt-deadcode:1.7.0.6
	opt-deadcode-base:1.7
	opt-const:1.7.0.4
	opt-const-base:1.7
	opt-copyprop:1.7.0.2
	opt-copyprop-base:1.7
	reg_alloc_branch:1.6.0.6
	reg_alloc_base:1.6
	opt-cse:1.6.0.4
	codegen1_branch:1.6.0.2
	codegen1_base:1.6
	syntax_split_merge2:1.2.2.1
	syntax_split:1.2.0.2
	syntax_split_base:1.2
	java_deadline:1.1.4.1.0.2
	java_deadline_branch:1.1.4.1
	java:1.1.0.4
	java_base:1.1
	semantics_branch:1.1.0.2
	semantics_base:1.1;
locks; strict;
comment	@# @;


1.7
date	96.12.02.04.19.10;	author hartmans;	state Exp;
branches;
next	1.6;

1.6
date	96.11.08.07.50.02;	author jered;	state Exp;
branches
	1.6.4.1;
next	1.5;

1.5
date	96.11.08.02.48.39;	author nathanw;	state Exp;
branches;
next	1.4;

1.4
date	96.11.08.01.00.15;	author daveg;	state Exp;
branches;
next	1.3;

1.3
date	96.11.07.21.58.20;	author hartmans;	state Exp;
branches;
next	1.2;

1.2
date	96.10.30.08.54.38;	author daveg;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	96.10.08.00.01.22;	author hartmans;	state Exp;
branches
	1.1.4.1;
next	;

1.1.4.1
date	96.10.23.20.43.50;	author hartmans;	state Exp;
branches;
next	;

1.2.2.1
date	96.11.07.09.46.02;	author nathanw;	state Exp;
branches;
next	;

1.6.4.1
date	96.11.25.22.39.30;	author nathanw;	state Exp;
branches;
next	1.6.4.2;

1.6.4.2
date	96.11.26.06.02.45;	author nathanw;	state Exp;
branches;
next	1.6.4.3;

1.6.4.3
date	96.12.01.22.23.10;	author nathanw;	state Exp;
branches;
next	;


desc
@@


1.7
log
@Mainline CSE
@
text
@# Sample Makefile for 6.035
SRCTOP=.
#
# This is a simple Makefile, using PCLU.
#

SRCS = main.clu
# For lack of a better name that doesn't conflict with dirs
PROG = compiler
CLULIBS = scanner parser state codegen ilgen opt il utils 
EQUS = $(SRCTOP)/scanner/token.equ $(SRCTOP)/state/types.equ $(SRCTOP)/il/il.equ
LIBS = $(SPEC_LIBS) -use $(LIBDIR)/useful.lib  -use $(LIBDIR)/misc.lib
SUBDIRS = utils il state scanner ilgen parser codegen opt

all:: 
	-mkdir lib
	for foo in $(SUBDIRS); do \
	( cd $$foo ; gmake all ); \
	done

clean::
	for foo in $(SUBDIRS); do \
	( rm -f lib/$$foo.a lib/$$foo.lib ; cd $$foo ; gmake clean ); \
	done

include mk/pclu.mk
include mk/prog.mk
@


1.6
log
@We have a main now.
@
text
@d10 1
a10 1
CLULIBS = scanner parser state codegen ilgen il utils
d13 1
a13 1
SUBDIRS = utils il state scanner ilgen parser codegen
d23 1
a23 1
	( cd $$foo ; gmake clean ); \
a24 1
	rm -f lib/*
@


1.6.4.1
log
@Add opt
@
text
@d10 1
a10 1
CLULIBS = scanner parser state codegen ilgen opt il utils 
@


1.6.4.2
log
@Add opt to subdirs. How did this work before?
@
text
@d13 1
a13 1
SUBDIRS = utils il state scanner ilgen parser codegen opt
@


1.6.4.3
log
@make clean now respects the setting of SUBDIRS instead of
blowing away lib/*.
@
text
@d23 1
a23 1
	( rm -f lib/$$foo.a lib/$$foo.lib ; cd $$foo ; gmake clean ); \
d25 1
@


1.5
log
@Tweak makefile.
@
text
@d11 1
a11 1
EQUS = $(SRCTOP)/scanner/token.equ $(SRCTOP)/state/types.equ
@


1.4
log
@added codegen to dirs and libs
@
text
@d10 1
a10 1
CLULIBS = scanner parser state codegen
@


1.3
log
@Merge  in and retire syntax_split
@
text
@d10 1
a10 1
CLULIBS = scanner parser state
d13 1
a13 1
SUBDIRS = utils il state scanner ilgen parser 
@


1.2
log
@build executable locally
@
text
@d13 1
d17 1
a17 1
	for foo in state scanner parser ; do \
d22 1
a22 1
	for foo in state scanner parser ; do \
@


1.2.2.1
log
@Added makefiles. Tried to build. Fixed lots of bogons.
@
text
@a12 1
SUBDIRS = utils il state scanner ilgen parser 
d16 1
a16 1
	for foo in $(SUBDIRS); do \
d21 1
a21 1
	for foo in $(SUBDIRS); do \
@


1.1
log
@Add top-level makefile
@
text
@d1 15
a15 1
all : lib
a18 1
	ln -s parser/parser semantics
d20 5
a24 2
lib : 
	mkdir lib
d26 2
@


1.1.4.1
log
@Generage javagen not semantics
@
text
@d5 1
a5 1
	ln -s parser/parser javagen
@
