/* Copyright (C) 1990, Digital Equipment Corporation. */ /* All rights reserved. */ /* See the file COPYRIGHT for a full description. */ /* Last modified on Tue Jul 17 08:01:59 1990 by muller */ /* This template produces the target 'toU' used to produce C files */ TARGET = toU #include "undef" /*---------------------------------------------------------------------------*/ #define interface(i) @@\ interfaces:: i.iu #define implementation(m) @@\ implementations:: m.mu #define M3_program(name) @@\ implementation (name) #define C_object(f) @@\ implementations:: f.u #include "default_rules" /*---------------------------------------------------------------------------*/ #include "config" #include "generic" M3 = .ROOT/system/driver/m3.local /* When we compile Modula-3 files, we compile first the interfaces, then the implemenations */ toU:: interfaces implementations interfaces:: implementations:: #include INCLUDE_IMAKEFILE /*---------------------------------------------------------------------------*/ .SUFFIXES: .SUFFIXES: .m3 .mu .i3 .iu .u .c .c.u: ; $(CC) -O3 -g0 -j $*.c .i3.iu: $(M3) $(M3FLAGS) -C $*.i3 ln -s $*.ic $*.ic.c $(CC) $(CFLAGS) -I.ROOT/system/runtime -O3 -j -g0 $*.ic.c /bin/rm -f $*.ic.c .m3.mu: $(M3) $(M3FLAGS) -C $*.m3 ln -s $*.mc $*.mc.c $(CC) $(CFLAGS) -I.ROOT/system/runtime -O3 -j -g0 $*.mc.c /bin/rm -f $*.mc.c