diff --git a/mach/sun3/libcc/Makefile b/mach/sun3/libcc/Makefile new file mode 100644 index 000000000..c4ab9d4c5 --- /dev/null +++ b/mach/sun3/libcc/Makefile @@ -0,0 +1,38 @@ +SUF=o +MAKEFILE=../../proto/libg/Makefile +MACHDEF="MACH=sun3" "SUF=$(SUF)" "ASAR=aal" +STDIO="PREF=cc" "SUB=.1s" "SRC=lang/cem/libcc/stdio" +GEN="PREF=cc" "SUB=.2g" "SRC=lang/cem/libcc/gen" +MON="PREF=mon" "SRC=lang/cem/libcc/mon" + +install: cpstdio cpgen + +cpstdio: + make -f $(MAKEFILE) $(STDIO) $(MACHDEF) tailcp +cpgen: + make -f $(MAKEFILE) $(GEN) $(MACHDEF) cp +cpmon: + make -f $(MAKEFILE) $(MON) $(MACHDEF) tailcp + +cmp: cmpstdio cmpgen + +cmpstdio: + make -f $(MAKEFILE) $(STDIO) $(MACHDEF) tail + -../../compare tail_cc.1s +cmpgen: + make -f $(MAKEFILE) $(GEN) $(MACHDEF) head + -../../compare head_cc + make -f $(MAKEFILE) $(GEN) $(MACHDEF) tail + -../../compare tail_cc.2g +cmpmon: + make -f $(MAKEFILE) $(MON) $(MACHDEF) tail + -../../compare tail_mon + +clean: + -rm -f *.old *.[ce$(SUF)] tail* head* + +opr: + make pr | opr + +pr: + @pr Makefile diff --git a/mach/sun3/libcc/compmodule b/mach/sun3/libcc/compmodule new file mode 100755 index 000000000..1b2935c70 --- /dev/null +++ b/mach/sun3/libcc/compmodule @@ -0,0 +1,6 @@ +if ${MACH?} -I../../../h -DBSD4_2 ${MACHFL?} $1 1>&2 +then + echo `basename $1 $2`.o +else + exit 1 +fi