A=.a
|
A=.a
|
O=.o
|
O=.o
|
E=
|
E=
|
CC=gcc -m32
|
CC=gcc
|
CFLAGS=-g
|
# -Wno-psabi suppresses notes about changed ABI conventions
|
|
CFLAGS=-g -Wno-psabi
|
LDFLAGS=-g
|
LDFLAGS=-g
|
LD=$(CC)
|
LD=$(CC)
|
AR=ar ruv
|
AR=ar ruv
|
RANLIB=ranlib
|
RANLIB=ranlib
|
DIFF=diff
|
DIFF=diff
|
RM=rm -f
|
RM=rm -f
|
TSTDIR=$(BUILDDIR)/$(TARGET)/tst
|
TSTDIR=$(BUILDDIR)/$(TARGET)/tst
|
CUSTOM=custom.mk
|
CUSTOM=custom.mk
|
include $(CUSTOM)
|
include $(CUSTOM)
|
B=$(BUILDDIR)/
|
B=$(BUILDDIR)/
|
T=$(TSTDIR)/
|
T=$(TSTDIR)/
|
|
|
what:
|
what:
|
-@echo make all rcc lburg cpp lcc bprint liblcc triple clean clobber
|
-@echo make all rcc lburg cpp lcc bprint liblcc triple clean clobber
|
|
|
all:: rcc lburg cpp lcc bprint liblcc
|
all:: rcc lburg cpp lcc bprint liblcc
|
|
|
rcc: $Brcc$E
|
rcc: $Brcc$E
|
lburg: $Blburg$E
|
lburg: $Blburg$E
|
cpp: $Bcpp$E
|
cpp: $Bcpp$E
|
lcc: $Blcc$E
|
lcc: $Blcc$E
|
bprint: $Bbprint$E
|
bprint: $Bbprint$E
|
liblcc: $Bliblcc$A
|
liblcc: $Bliblcc$A
|
|
|
RCCOBJS=$Balloc$O \
|
RCCOBJS=$Balloc$O \
|
$Bbind$O \
|
$Bbind$O \
|
$Bdag$O \
|
$Bdag$O \
|
$Bdagcheck$O \
|
$Bdagcheck$O \
|
$Bdecl$O \
|
$Bdecl$O \
|
$Benode$O \
|
$Benode$O \
|
$Berror$O \
|
$Berror$O \
|
$Bexpr$O \
|
$Bexpr$O \
|
$Bevent$O \
|
$Bevent$O \
|
$Binit$O \
|
$Binit$O \
|
$Binits$O \
|
$Binits$O \
|
$Binput$O \
|
$Binput$O \
|
$Blex$O \
|
$Blex$O \
|
$Blist$O \
|
$Blist$O \
|
$Bmain$O \
|
$Bmain$O \
|
$Boutput$O \
|
$Boutput$O \
|
$Bprof$O \
|
$Bprof$O \
|
$Bprofio$O \
|
$Bprofio$O \
|
$Bsimp$O \
|
$Bsimp$O \
|
$Bstmt$O \
|
$Bstmt$O \
|
$Bstring$O \
|
$Bstring$O \
|
$Bsym$O \
|
$Bsym$O \
|
$Btrace$O \
|
$Btrace$O \
|
$Btree$O \
|
$Btree$O \
|
$Btypes$O \
|
$Btypes$O \
|
$Bnull$O \
|
$Bnull$O \
|
$Bsymbolic$O \
|
$Bsymbolic$O \
|
$Bgen$O \
|
$Bgen$O \
|
$Bbytecode$O \
|
$Bbytecode$O \
|
$Balpha$O \
|
$Balpha$O \
|
$Bmips$O \
|
$Bmips$O \
|
$Beco32$O \
|
$Beco32$O \
|
$Bsparc$O \
|
$Bsparc$O \
|
$Bstab$O \
|
$Bstab$O \
|
$Bx86$O \
|
$Bx86$O \
|
$Bx86linux$O
|
$Bx86linux$O
|
|
|
$Brcc$E:: $Bmain$O $Blibrcc$A $(EXTRAOBJS)
|
$Brcc$E:: $Bmain$O $Blibrcc$A $(EXTRAOBJS)
|
$(LD) $(LDFLAGS) -o $@ $Bmain$O $(EXTRAOBJS) $Blibrcc$A $(EXTRALIBS)
|
$(LD) $(LDFLAGS) -o $@ $Bmain$O $(EXTRAOBJS) $Blibrcc$A $(EXTRALIBS)
|
|
|
$Blibrcc$A: $(RCCOBJS)
|
$Blibrcc$A: $(RCCOBJS)
|
$(AR) $@ $(RCCOBJS); $(RANLIB) $@ || true
|
$(AR) $@ $(RCCOBJS); $(RANLIB) $@ || true
|
|
|
$(RCCOBJS): src/c.h src/ops.h src/token.h src/config.h
|
$(RCCOBJS): src/c.h src/ops.h src/token.h src/config.h
|
|
|
$Balloc$O: src/alloc.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/alloc.c
|
$Balloc$O: src/alloc.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/alloc.c
|
$Bbind$O: src/bind.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/bind.c
|
$Bbind$O: src/bind.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/bind.c
|
$Bdag$O: src/dag.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/dag.c
|
$Bdag$O: src/dag.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/dag.c
|
$Bdecl$O: src/decl.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/decl.c
|
$Bdecl$O: src/decl.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/decl.c
|
$Benode$O: src/enode.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/enode.c
|
$Benode$O: src/enode.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/enode.c
|
$Berror$O: src/error.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/error.c
|
$Berror$O: src/error.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/error.c
|
$Bevent$O: src/event.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/event.c
|
$Bevent$O: src/event.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/event.c
|
$Bexpr$O: src/expr.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/expr.c
|
$Bexpr$O: src/expr.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/expr.c
|
$Bgen$O: src/gen.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/gen.c
|
$Bgen$O: src/gen.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/gen.c
|
$Binit$O: src/init.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/init.c
|
$Binit$O: src/init.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/init.c
|
$Binits$O: src/inits.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/inits.c
|
$Binits$O: src/inits.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/inits.c
|
$Binput$O: src/input.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/input.c
|
$Binput$O: src/input.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/input.c
|
$Blex$O: src/lex.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/lex.c
|
$Blex$O: src/lex.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/lex.c
|
$Blist$O: src/list.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/list.c
|
$Blist$O: src/list.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/list.c
|
$Bmain$O: src/main.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/main.c
|
$Bmain$O: src/main.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/main.c
|
$Bnull$O: src/null.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/null.c
|
$Bnull$O: src/null.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/null.c
|
$Boutput$O: src/output.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/output.c
|
$Boutput$O: src/output.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/output.c
|
$Bprof$O: src/prof.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/prof.c
|
$Bprof$O: src/prof.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/prof.c
|
$Bprofio$O: src/profio.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/profio.c
|
$Bprofio$O: src/profio.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/profio.c
|
$Bsimp$O: src/simp.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/simp.c
|
$Bsimp$O: src/simp.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/simp.c
|
$Bstmt$O: src/stmt.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/stmt.c
|
$Bstmt$O: src/stmt.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/stmt.c
|
$Bstring$O: src/string.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/string.c
|
$Bstring$O: src/string.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/string.c
|
$Bsym$O: src/sym.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/sym.c
|
$Bsym$O: src/sym.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/sym.c
|
$Bsymbolic$O: src/symbolic.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/symbolic.c
|
$Bsymbolic$O: src/symbolic.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/symbolic.c
|
$Bbytecode$O: src/bytecode.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/bytecode.c
|
$Bbytecode$O: src/bytecode.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/bytecode.c
|
$Btrace$O: src/trace.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/trace.c
|
$Btrace$O: src/trace.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/trace.c
|
$Btree$O: src/tree.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/tree.c
|
$Btree$O: src/tree.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/tree.c
|
$Btypes$O: src/types.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/types.c
|
$Btypes$O: src/types.c; $(CC) $(CFLAGS) -c -Isrc -o $@ src/types.c
|
$Bstab$O: src/stab.c src/stab.h; $(CC) $(CFLAGS) -c -Isrc -o $@ src/stab.c
|
$Bstab$O: src/stab.c src/stab.h; $(CC) $(CFLAGS) -c -Isrc -o $@ src/stab.c
|
|
|
$Bdagcheck$O: $Bdagcheck.c; $(CC) $(CFLAGS) -c -Isrc -o $@ $Bdagcheck.c
|
$Bdagcheck$O: $Bdagcheck.c; $(CC) $(CFLAGS) -c -Isrc -o $@ $Bdagcheck.c
|
$Balpha$O: $Balpha.c; $(CC) $(CFLAGS) -c -Isrc -o $@ $Balpha.c
|
$Balpha$O: $Balpha.c; $(CC) $(CFLAGS) -c -Isrc -o $@ $Balpha.c
|
$Bmips$O: $Bmips.c; $(CC) $(CFLAGS) -c -Isrc -o $@ $Bmips.c
|
$Bmips$O: $Bmips.c; $(CC) $(CFLAGS) -c -Isrc -o $@ $Bmips.c
|
$Beco32$O: $Beco32.c; $(CC) $(CFLAGS) -c -Isrc -o $@ $Beco32.c
|
$Beco32$O: $Beco32.c; $(CC) $(CFLAGS) -c -Isrc -o $@ $Beco32.c
|
$Bsparc$O: $Bsparc.c; $(CC) $(CFLAGS) -c -Isrc -o $@ $Bsparc.c
|
$Bsparc$O: $Bsparc.c; $(CC) $(CFLAGS) -c -Isrc -o $@ $Bsparc.c
|
$Bx86$O: $Bx86.c; $(CC) $(CFLAGS) -c -Isrc -o $@ $Bx86.c
|
$Bx86$O: $Bx86.c; $(CC) $(CFLAGS) -c -Isrc -o $@ $Bx86.c
|
$Bx86linux$O: $Bx86linux.c; $(CC) $(CFLAGS) -c -Isrc -o $@ $Bx86linux.c
|
$Bx86linux$O: $Bx86linux.c; $(CC) $(CFLAGS) -c -Isrc -o $@ $Bx86linux.c
|
|
|
$Bdagcheck.c: $Blburg$E src/dagcheck.md; $Blburg src/dagcheck.md $@
|
$Bdagcheck.c: $Blburg$E src/dagcheck.md; $Blburg src/dagcheck.md $@
|
$Balpha.c: $Blburg$E src/alpha.md; $Blburg src/alpha.md $@
|
$Balpha.c: $Blburg$E src/alpha.md; $Blburg src/alpha.md $@
|
$Bmips.c: $Blburg$E src/mips.md; $Blburg src/mips.md $@
|
$Bmips.c: $Blburg$E src/mips.md; $Blburg src/mips.md $@
|
$Beco32.c: $Blburg$E src/eco32.md; $Blburg src/eco32.md $@
|
$Beco32.c: $Blburg$E src/eco32.md; $Blburg src/eco32.md $@
|
$Bsparc.c: $Blburg$E src/sparc.md; $Blburg src/sparc.md $@
|
$Bsparc.c: $Blburg$E src/sparc.md; $Blburg src/sparc.md $@
|
$Bx86.c: $Blburg$E src/x86.md; $Blburg src/x86.md $@
|
$Bx86.c: $Blburg$E src/x86.md; $Blburg src/x86.md $@
|
$Bx86linux.c: $Blburg$E src/x86linux.md; $Blburg src/x86linux.md $@
|
$Bx86linux.c: $Blburg$E src/x86linux.md; $Blburg src/x86linux.md $@
|
|
|
$Bbprint$E: $Bbprint$O; $(LD) $(LDFLAGS) -o $@ $Bbprint$O
|
$Bbprint$E: $Bbprint$O; $(LD) $(LDFLAGS) -o $@ $Bbprint$O
|
$Bops$E: $Bops$O; $(LD) $(LDFLAGS) -o $@ $Bops$O
|
$Bops$E: $Bops$O; $(LD) $(LDFLAGS) -o $@ $Bops$O
|
|
|
$Bbprint$O: etc/bprint.c src/profio.c; $(CC) $(CFLAGS) -c -Isrc -o $@ etc/bprint.c
|
$Bbprint$O: etc/bprint.c src/profio.c; $(CC) $(CFLAGS) -c -Isrc -o $@ etc/bprint.c
|
$Bops$O: etc/ops.c src/ops.h; $(CC) $(CFLAGS) -c -Isrc -o $@ etc/ops.c
|
$Bops$O: etc/ops.c src/ops.h; $(CC) $(CFLAGS) -c -Isrc -o $@ etc/ops.c
|
|
|
$Blcc$E: $Blcc$O $Bhost$O; $(LD) $(LDFLAGS) -o $@ $Blcc$O $Bhost$O
|
$Blcc$E: $Blcc$O $Bhost$O; $(LD) $(LDFLAGS) -o $@ $Blcc$O $Bhost$O
|
|
|
$Blcc$O: etc/lcc.c; $(CC) $(CFLAGS) -c -o $@ etc/lcc.c
|
$Blcc$O: etc/lcc.c; $(CC) $(CFLAGS) -c -o $@ etc/lcc.c
|
$Bhost$O: $(HOSTFILE); $(CC) $(CFLAGS) -DLCCDIR=\"$(BUILDDIR)/\" -c -o $@ $(HOSTFILE)
|
$Bhost$O: $(HOSTFILE); $(CC) $(CFLAGS) -DLCCDIR=\"$(BUILDDIR)/\" -c -o $@ $(HOSTFILE)
|
|
|
LIBOBJS=$Bassert$O $Bbbexit$O $Byynull$O
|
LIBOBJS=$Bassert$O $Bbbexit$O $Byynull$O
|
|
|
$Bliblcc$A: $(LIBOBJS); $(AR) $@ $Bassert$O $Bbbexit$O $Byynull$O; $(RANLIB) $@ || true
|
$Bliblcc$A: $(LIBOBJS); $(AR) $@ $Bassert$O $Bbbexit$O $Byynull$O; $(RANLIB) $@ || true
|
|
|
$Bassert$O: lib/assert.c; $(CC) $(CFLAGS) -c -o $@ lib/assert.c
|
$Bassert$O: lib/assert.c; $(CC) $(CFLAGS) -c -o $@ lib/assert.c
|
$Byynull$O: lib/yynull.c; $(CC) $(CFLAGS) -c -o $@ lib/yynull.c
|
$Byynull$O: lib/yynull.c; $(CC) $(CFLAGS) -c -o $@ lib/yynull.c
|
$Bbbexit$O: lib/bbexit.c; $(CC) $(CFLAGS) -c -o $@ lib/bbexit.c
|
$Bbbexit$O: lib/bbexit.c; $(CC) $(CFLAGS) -c -o $@ lib/bbexit.c
|
|
|
$Blburg$E: $Blburg$O $Bgram$O; $(LD) $(LDFLAGS) -o $@ $Blburg$O $Bgram$O
|
$Blburg$E: $Blburg$O $Bgram$O; $(LD) $(LDFLAGS) -o $@ $Blburg$O $Bgram$O
|
|
|
$Blburg$O $Bgram$O: lburg/lburg.h
|
$Blburg$O $Bgram$O: lburg/lburg.h
|
|
|
$Blburg$O: lburg/lburg.c; $(CC) $(CFLAGS) -c -Ilburg -o $@ lburg/lburg.c
|
$Blburg$O: lburg/lburg.c; $(CC) $(CFLAGS) -c -Ilburg -o $@ lburg/lburg.c
|
$Bgram$O: lburg/gram.c; $(CC) $(CFLAGS) -c -Ilburg -o $@ lburg/gram.c
|
$Bgram$O: lburg/gram.c; $(CC) $(CFLAGS) -c -Ilburg -o $@ lburg/gram.c
|
|
|
CPPOBJS=$Bcpp$O $Blexer$O $Bnlist$O $Btokens$O $Bmacro$O $Beval$O \
|
CPPOBJS=$Bcpp$O $Blexer$O $Bnlist$O $Btokens$O $Bmacro$O $Beval$O \
|
$Binclude$O $Bhideset$O $Bgetopt$O $Bunix$O
|
$Binclude$O $Bhideset$O $Bgetopt$O $Bunix$O
|
|
|
$Bcpp$E: $(CPPOBJS)
|
$Bcpp$E: $(CPPOBJS)
|
$(LD) $(LDFLAGS) -o $@ $(CPPOBJS)
|
$(LD) $(LDFLAGS) -o $@ $(CPPOBJS)
|
|
|
$(CPPOBJS): cpp/cpp.h
|
$(CPPOBJS): cpp/cpp.h
|
|
|
$Bcpp$O: cpp/cpp.c; $(CC) $(CFLAGS) -c -Icpp -o $@ cpp/cpp.c
|
$Bcpp$O: cpp/cpp.c; $(CC) $(CFLAGS) -c -Icpp -o $@ cpp/cpp.c
|
$Blexer$O: cpp/lex.c; $(CC) $(CFLAGS) -c -Icpp -o $@ cpp/lex.c
|
$Blexer$O: cpp/lex.c; $(CC) $(CFLAGS) -c -Icpp -o $@ cpp/lex.c
|
$Bnlist$O: cpp/nlist.c; $(CC) $(CFLAGS) -c -Icpp -o $@ cpp/nlist.c
|
$Bnlist$O: cpp/nlist.c; $(CC) $(CFLAGS) -c -Icpp -o $@ cpp/nlist.c
|
$Btokens$O: cpp/tokens.c; $(CC) $(CFLAGS) -c -Icpp -o $@ cpp/tokens.c
|
$Btokens$O: cpp/tokens.c; $(CC) $(CFLAGS) -c -Icpp -o $@ cpp/tokens.c
|
$Bmacro$O: cpp/macro.c; $(CC) $(CFLAGS) -c -Icpp -o $@ cpp/macro.c
|
$Bmacro$O: cpp/macro.c; $(CC) $(CFLAGS) -c -Icpp -o $@ cpp/macro.c
|
$Beval$O: cpp/eval.c; $(CC) $(CFLAGS) -c -Icpp -o $@ cpp/eval.c
|
$Beval$O: cpp/eval.c; $(CC) $(CFLAGS) -c -Icpp -o $@ cpp/eval.c
|
$Binclude$O: cpp/include.c; $(CC) $(CFLAGS) -c -Icpp -o $@ cpp/include.c
|
$Binclude$O: cpp/include.c; $(CC) $(CFLAGS) -c -Icpp -o $@ cpp/include.c
|
$Bhideset$O: cpp/hideset.c; $(CC) $(CFLAGS) -c -Icpp -o $@ cpp/hideset.c
|
$Bhideset$O: cpp/hideset.c; $(CC) $(CFLAGS) -c -Icpp -o $@ cpp/hideset.c
|
$Bgetopt$O: cpp/getopt.c; $(CC) $(CFLAGS) -c -Icpp -o $@ cpp/getopt.c
|
$Bgetopt$O: cpp/getopt.c; $(CC) $(CFLAGS) -c -Icpp -o $@ cpp/getopt.c
|
$Bunix$O: cpp/unix.c; $(CC) $(CFLAGS) -c -Icpp -o $@ cpp/unix.c
|
$Bunix$O: cpp/unix.c; $(CC) $(CFLAGS) -c -Icpp -o $@ cpp/unix.c
|
|
|
test: $T8q.s \
|
test: $T8q.s \
|
$Tarray.s \
|
$Tarray.s \
|
$Tcf.s \
|
$Tcf.s \
|
$Tcq.s \
|
$Tcq.s \
|
$Tcvt.s \
|
$Tcvt.s \
|
$Tfields.s \
|
$Tfields.s \
|
$Tfront.s \
|
$Tfront.s \
|
$Tincr.s \
|
$Tincr.s \
|
$Tinit.s \
|
$Tinit.s \
|
$Tlimits.s \
|
$Tlimits.s \
|
$Tparanoia.s \
|
$Tparanoia.s \
|
$Tsort.s \
|
$Tsort.s \
|
$Tspill.s \
|
$Tspill.s \
|
$Tstdarg.s \
|
$Tstdarg.s \
|
$Tstruct.s \
|
$Tstruct.s \
|
$Tswitch.s \
|
$Tswitch.s \
|
$Twf1.s \
|
$Twf1.s \
|
$Tyacc.s
|
$Tyacc.s
|
|
|
$T8q.s: tst/8q.c tst/8q.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$T8q.s: tst/8q.c tst/8q.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tarray.s: tst/array.c tst/array.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tarray.s: tst/array.c tst/array.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tcf.s: tst/cf.c tst/cf.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tcf.s: tst/cf.c tst/cf.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tcq.s: tst/cq.c tst/cq.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tcq.s: tst/cq.c tst/cq.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tcvt.s: tst/cvt.c tst/cvt.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tcvt.s: tst/cvt.c tst/cvt.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tfields.s: tst/fields.c tst/fields.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tfields.s: tst/fields.c tst/fields.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tfront.s: tst/front.c tst/front.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tfront.s: tst/front.c tst/front.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tincr.s: tst/incr.c tst/incr.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tincr.s: tst/incr.c tst/incr.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tinit.s: tst/init.c tst/init.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tinit.s: tst/init.c tst/init.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tlimits.s: tst/limits.c tst/limits.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tlimits.s: tst/limits.c tst/limits.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tparanoia.s: tst/paranoia.c tst/paranoia.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tparanoia.s: tst/paranoia.c tst/paranoia.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tsort.s: tst/sort.c tst/sort.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tsort.s: tst/sort.c tst/sort.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tspill.s: tst/spill.c tst/spill.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tspill.s: tst/spill.c tst/spill.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tstdarg.s: tst/stdarg.c tst/stdarg.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tstdarg.s: tst/stdarg.c tst/stdarg.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tstruct.s: tst/struct.c tst/struct.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tstruct.s: tst/struct.c tst/struct.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tswitch.s: tst/switch.c tst/switch.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tswitch.s: tst/switch.c tst/switch.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Twf1.s: tst/wf1.c tst/wf1.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Twf1.s: tst/wf1.c tst/wf1.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tyacc.s: tst/yacc.c tst/yacc.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
$Tyacc.s: tst/yacc.c tst/yacc.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
|
|
|
testclean:
|
testclean:
|
$(RM) $T8q$E $T8q.s $T8q.2 $T8q.1
|
$(RM) $T8q$E $T8q.s $T8q.2 $T8q.1
|
$(RM) $Tarray$E $Tarray.s $Tarray.2 $Tarray.1
|
$(RM) $Tarray$E $Tarray.s $Tarray.2 $Tarray.1
|
$(RM) $Tcf$E $Tcf.s $Tcf.2 $Tcf.1
|
$(RM) $Tcf$E $Tcf.s $Tcf.2 $Tcf.1
|
$(RM) $Tcq$E $Tcq.s $Tcq.2 $Tcq.1
|
$(RM) $Tcq$E $Tcq.s $Tcq.2 $Tcq.1
|
$(RM) $Tcvt$E $Tcvt.s $Tcvt.2 $Tcvt.1
|
$(RM) $Tcvt$E $Tcvt.s $Tcvt.2 $Tcvt.1
|
$(RM) $Tfields$E $Tfields.s $Tfields.2 $Tfields.1
|
$(RM) $Tfields$E $Tfields.s $Tfields.2 $Tfields.1
|
$(RM) $Tfront$E $Tfront.s $Tfront.2 $Tfront.1
|
$(RM) $Tfront$E $Tfront.s $Tfront.2 $Tfront.1
|
$(RM) $Tincr$E $Tincr.s $Tincr.2 $Tincr.1
|
$(RM) $Tincr$E $Tincr.s $Tincr.2 $Tincr.1
|
$(RM) $Tinit$E $Tinit.s $Tinit.2 $Tinit.1
|
$(RM) $Tinit$E $Tinit.s $Tinit.2 $Tinit.1
|
$(RM) $Tlimits$E $Tlimits.s $Tlimits.2 $Tlimits.1
|
$(RM) $Tlimits$E $Tlimits.s $Tlimits.2 $Tlimits.1
|
$(RM) $Tparanoia$E $Tparanoia.s $Tparanoia.2 $Tparanoia.1
|
$(RM) $Tparanoia$E $Tparanoia.s $Tparanoia.2 $Tparanoia.1
|
$(RM) $Tsort$E $Tsort.s $Tsort.2 $Tsort.1
|
$(RM) $Tsort$E $Tsort.s $Tsort.2 $Tsort.1
|
$(RM) $Tspill$E $Tspill.s $Tspill.2 $Tspill.1
|
$(RM) $Tspill$E $Tspill.s $Tspill.2 $Tspill.1
|
$(RM) $Tstdarg$E $Tstdarg.s $Tstdarg.2 $Tstdarg.1
|
$(RM) $Tstdarg$E $Tstdarg.s $Tstdarg.2 $Tstdarg.1
|
$(RM) $Tstruct$E $Tstruct.s $Tstruct.2 $Tstruct.1
|
$(RM) $Tstruct$E $Tstruct.s $Tstruct.2 $Tstruct.1
|
$(RM) $Tswitch$E $Tswitch.s $Tswitch.2 $Tswitch.1
|
$(RM) $Tswitch$E $Tswitch.s $Tswitch.2 $Tswitch.1
|
$(RM) $Twf1$E $Twf1.s $Twf1.2 $Twf1.1
|
$(RM) $Twf1$E $Twf1.s $Twf1.2 $Twf1.1
|
$(RM) $Tyacc$E $Tyacc.s $Tyacc.2 $Tyacc.1
|
$(RM) $Tyacc$E $Tyacc.s $Tyacc.2 $Tyacc.1
|
|
|
clean:: testclean
|
clean:: testclean
|
$(RM) $B*$O
|
$(RM) $B*$O
|
$(RM) $Bdagcheck.c $Balpha.c $Bmips.c $Beco32.c $Bx86.c $Bsparc.c $Bx86linux.c
|
$(RM) $Bdagcheck.c $Balpha.c $Bmips.c $Beco32.c $Bx86.c $Bsparc.c $Bx86linux.c
|
$(RM) $Brcc1$E $Brcc1$E $B1rcc$E $B2rcc$E
|
$(RM) $Brcc1$E $Brcc1$E $B1rcc$E $B2rcc$E
|
$(RM) $B*.ilk
|
$(RM) $B*.ilk
|
|
|
clobber:: clean
|
clobber:: clean
|
$(RM) $Brcc$E $Blburg$E $Bcpp$E $Blcc$E $Bcp$E $Bbprint$E $B*$A
|
$(RM) $Brcc$E $Blburg$E $Bcpp$E $Blcc$E $Bcp$E $Bbprint$E $B*$A
|
$(RM) $B*.pdb $B*.pch
|
$(RM) $B*.pdb $B*.pch
|
|
|
RCCSRCS=src/alloc.c \
|
RCCSRCS=src/alloc.c \
|
src/bind.c \
|
src/bind.c \
|
src/dag.c \
|
src/dag.c \
|
src/decl.c \
|
src/decl.c \
|
src/enode.c \
|
src/enode.c \
|
src/error.c \
|
src/error.c \
|
src/expr.c \
|
src/expr.c \
|
src/event.c \
|
src/event.c \
|
src/init.c \
|
src/init.c \
|
src/inits.c \
|
src/inits.c \
|
src/input.c \
|
src/input.c \
|
src/lex.c \
|
src/lex.c \
|
src/list.c \
|
src/list.c \
|
src/main.c \
|
src/main.c \
|
src/output.c \
|
src/output.c \
|
src/prof.c \
|
src/prof.c \
|
src/profio.c \
|
src/profio.c \
|
src/simp.c \
|
src/simp.c \
|
src/stmt.c \
|
src/stmt.c \
|
src/string.c \
|
src/string.c \
|
src/sym.c \
|
src/sym.c \
|
src/trace.c \
|
src/trace.c \
|
src/tree.c \
|
src/tree.c \
|
src/types.c \
|
src/types.c \
|
src/null.c \
|
src/null.c \
|
src/symbolic.c \
|
src/symbolic.c \
|
src/bytecode.c \
|
src/bytecode.c \
|
src/gen.c \
|
src/gen.c \
|
src/stab.c \
|
src/stab.c \
|
$Bdagcheck.c \
|
$Bdagcheck.c \
|
$Balpha.c \
|
$Balpha.c \
|
$Bmips.c \
|
$Bmips.c \
|
$Beco32.c \
|
$Beco32.c \
|
$Bsparc.c \
|
$Bsparc.c \
|
$Bx86linux.c \
|
$Bx86linux.c \
|
$Bx86.c
|
$Bx86.c
|
|
|
C=$Blcc -A -d0.6 -Wo-lccdir=$(BUILDDIR) -Isrc -I$(BUILDDIR)
|
C=$Blcc -A -d0.6 -Wo-lccdir=$(BUILDDIR) -Isrc -I$(BUILDDIR)
|
triple: $B2rcc$E
|
triple: $B2rcc$E
|
strip $B1rcc$E $B2rcc$E
|
strip $B1rcc$E $B2rcc$E
|
dd if=$B1rcc$E of=$Brcc1$E bs=512 skip=1
|
dd if=$B1rcc$E of=$Brcc1$E bs=512 skip=1
|
dd if=$B2rcc$E of=$Brcc2$E bs=512 skip=1
|
dd if=$B2rcc$E of=$Brcc2$E bs=512 skip=1
|
if cmp $Brcc1$E $Brcc2$E; then \
|
if cmp $Brcc1$E $Brcc2$E; then \
|
mv $B2rcc$E $Brcc$E; \
|
mv $B2rcc$E $Brcc$E; \
|
$(RM) $B1rcc$E $Brcc[12]$E; fi
|
$(RM) $B1rcc$E $Brcc[12]$E; fi
|
|
|
$B1rcc$E: $Brcc$E $Blcc$E $Bcpp$E
|
$B1rcc$E: $Brcc$E $Blcc$E $Bcpp$E
|
$C -o $@ -B$B $(RCCSRCS)
|
$C -o $@ -B$B $(RCCSRCS)
|
$B2rcc$E: $B1rcc$E
|
$B2rcc$E: $B1rcc$E
|
$C -o $@ -B$B1 $(RCCSRCS)
|
$C -o $@ -B$B1 $(RCCSRCS)
|
|
|