ack/lang/m2/comp/Makefile

107 lines
3.3 KiB
Makefile
Raw Normal View History

1986-03-20 14:52:03 +00:00
# make modula-2 "compiler"
# $Header$
HDIR = ../../em/h
PKGDIR = ../../em/pkg
LIBDIR = ../../em/lib
1986-04-03 17:41:26 +00:00
1986-03-24 17:29:57 +00:00
INCLUDES = -I$(HDIR) -I$(PKGDIR) -I/user1/erikb/em/h
1986-04-03 17:41:26 +00:00
1986-03-20 14:52:03 +00:00
LSRC = tokenfile.g program.g declar.g expression.g statement.g
CC = cc
GEN = LLgen
GENOPTIONS =
1986-04-03 17:41:26 +00:00
PROFILE =
1986-04-17 09:28:09 +00:00
CFLAGS = $(PROFILE) $(INCLUDES)
1986-04-03 17:41:26 +00:00
LFLAGS = $(PROFILE)
1986-03-20 14:52:03 +00:00
LOBJ = tokenfile.o program.o declar.o expression.o statement.o
COBJ = LLlex.o LLmessage.o char.o error.o main.o \
1986-03-26 15:11:02 +00:00
symbol2str.o tokenname.o idf.o input.o type.o def.o \
1986-04-07 17:40:38 +00:00
scope.o misc.o enter.o defmodule.o typequiv.o node.o \
1986-04-17 09:28:09 +00:00
cstoper.o chk_expr.o options.o
1986-03-20 14:52:03 +00:00
OBJ = $(COBJ) $(LOBJ) Lpars.o
GENFILES= tokenfile.c \
program.c declar.c expression.c statement.c \
tokenfile.g symbol2str.c char.c Lpars.c Lpars.h
all:
1986-04-17 09:28:09 +00:00
make hfiles
1986-03-20 14:52:03 +00:00
make LLfiles
make main
LLfiles: $(LSRC)
$(GEN) $(GENOPTIONS) $(LSRC)
@touch LLfiles
1986-04-17 09:28:09 +00:00
hfiles: Parameters make.hfiles
make.hfiles Parameters
touch hfiles
1986-03-20 14:52:03 +00:00
main: $(OBJ) Makefile
1986-04-18 17:53:47 +00:00
$(CC) $(LFLAGS) $(OBJ) /user1/erikb/em/lib/libem_mes.a /user1/erikb/em/lib/libeme.a $(LIBDIR)/libcomp.a $(LIBDIR)/malloc.o /user1/erikb/em/lib/libprint.a /user1/erikb/em/lib/libstr.a /user1/erikb/em/lib/libsystem.a -o main
1986-03-20 14:52:03 +00:00
size main
clean:
rm -f $(OBJ) $(GENFILES) LLfiles
1986-04-08 18:15:46 +00:00
lint: LLfiles lintlist
lint $(INCLUDES) `cat lintlist`
1986-03-20 14:52:03 +00:00
tokenfile.g: tokenname.c make.tokfile
make.tokfile <tokenname.c >tokenfile.g
symbol2str.c: tokenname.c make.tokcase
make.tokcase <tokenname.c >symbol2str.c
1986-03-26 15:11:02 +00:00
misc.h: misc.H make.allocd
def.h: def.H make.allocd
type.h: type.H make.allocd
1986-04-06 17:42:56 +00:00
node.h: node.H make.allocd
1986-03-26 15:11:02 +00:00
scope.c: scope.C make.allocd
1986-03-20 14:52:03 +00:00
char.c: char.tab tab
./tab -fchar.tab >char.c
tab:
$(CC) tab.c -o tab
depend:
sed '/^#AUTOAUTO/,$$d' Makefile > Makefile.new
echo '#AUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTO' >> Makefile.new
/user1/erikb/bin/mkdep `sources $(OBJ)` |\
sed 's/\.c:/\.o:/' >> Makefile.new
mv Makefile Makefile.old
mv Makefile.new Makefile
.SUFFIXES: .H .h .C
.H.h .C.c :
make.allocd < $< > $@
#AUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTO
1986-04-17 09:28:09 +00:00
LLlex.o: LLlex.h Lpars.h class.h const.h f_info.h idf.h idfsize.h input.h inputtype.h numsize.h strsize.h type.h
1986-03-26 15:11:02 +00:00
LLmessage.o: LLlex.h Lpars.h idf.h
1986-03-20 14:52:03 +00:00
char.o: class.h
1986-04-17 09:28:09 +00:00
error.o: LLlex.h errout.h f_info.h input.h inputtype.h main.h node.h
main.o: LLlex.h Lpars.h debug.h def.h f_info.h idf.h input.h inputtype.h scope.h standards.h tokenname.h type.h
1986-03-20 14:52:03 +00:00
symbol2str.o: Lpars.h
tokenname.o: Lpars.h idf.h tokenname.h
idf.o: idf.h
1986-04-17 09:28:09 +00:00
input.o: f_info.h input.h inputtype.h
type.o: LLlex.h const.h debug.h def.h idf.h node.h target_sizes.h type.h
1986-04-11 11:57:19 +00:00
def.o: LLlex.h debug.h def.h idf.h main.h node.h scope.h type.h
1986-04-08 18:15:46 +00:00
scope.o: LLlex.h debug.h def.h idf.h node.h scope.h type.h
misc.o: LLlex.h f_info.h idf.h misc.h node.h
1986-04-18 17:53:47 +00:00
enter.o: LLlex.h def.h idf.h main.h node.h scope.h type.h
1986-04-17 09:28:09 +00:00
defmodule.o: LLlex.h debug.h def.h f_info.h idf.h input.h inputtype.h scope.h
1986-04-11 11:57:19 +00:00
typequiv.o: def.h type.h
1986-04-08 18:15:46 +00:00
node.o: LLlex.h debug.h def.h node.h type.h
1986-04-17 09:28:09 +00:00
cstoper.o: LLlex.h Lpars.h idf.h node.h standards.h target_sizes.h type.h
1986-04-11 11:57:19 +00:00
chk_expr.o: LLlex.h Lpars.h const.h debug.h def.h idf.h node.h scope.h standards.h type.h
1986-04-18 17:53:47 +00:00
options.o: idfsize.h type.h
1986-03-20 14:52:03 +00:00
tokenfile.o: Lpars.h
1986-04-06 17:42:56 +00:00
program.o: LLlex.h Lpars.h debug.h def.h idf.h main.h node.h scope.h type.h
declar.o: LLlex.h Lpars.h def.h idf.h misc.h node.h scope.h type.h
1986-04-08 18:15:46 +00:00
expression.o: LLlex.h Lpars.h const.h debug.h def.h idf.h node.h scope.h type.h
1986-04-17 09:28:09 +00:00
statement.o: LLlex.h Lpars.h node.h type.h
1986-03-20 14:52:03 +00:00
Lpars.o: Lpars.h