/* 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:46 1990 by muller */ /* This template produces the target 'toC' used to produce C files */ TARGET = toC #include "undef" /*---------------------------------------------------------------------------*/ #define interface(i) @@\ interfaces:: i.ic #define implementation(m) @@\ implementations:: m.mc #define M3_program(name) @@\ implementation (name) #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 */ toC:: interfaces implementations interfaces:: implementations:: #include INCLUDE_IMAKEFILE /*---------------------------------------------------------------------------*/ .SUFFIXES: .SUFFIXES: .m3 .mc .i3 .ic .i3.ic: ; $(M3) $(M3FLAGS) -C $*.i3 .m3.mc: ; $(M3) $(M3FLAGS) -C $*.m3