There is no Makefile capability in CP/M-68K, primarily because no
update time is maintained in the file directory.  Because of this all
files must be compiled and linked manually.  The SUBMIT files I use to
do this are given here.  Note that drive letters are included
according to my own usage, and should be changed to match your system. 

The c.sub file uses tail recursion to allow multiple filenames to be
specified on the command line.  As long as another file remains to be
compiled ($2 non-null), the implicit SUBMIT on the next-to-last line
fails and the last line is executed.  When $2 becomes null, A:STOP.SUB
is executed (it contains no commands) and the compilation ends.

==============================

--- c.sub --------------------
a:cp68 -i 0a: $1.c a:$1.i
a:c068 a:$1.i a:$1.ic $1.lnk $1.str -f
era  a:$1.i
a:c168 a:$1.ic $1.lnk $1.s -l
era a:$1.ic
era $1.lnk
a:as68 -l -u -f a: -s 0a: $1.s
era $1.s
a:$2stop
c $2 $3 $4 $5 $6 $7 $8 $9

--- linkmg.sub ---------------
a:link68 [command[linkmg.inp]]
a:reloc mg.rel mg.68k

--- linkmg.inp ---------------
mg.rel = 0a:s.o, 
basic.o, buffer.o, cinfo.o, display.o, echo.o, extend.o, file.o, 
kbd.o, line.o, main.o, match.o, paragrap.o, prefix.o, random.o, 
region.o, search.o, symbol.o, version.o, window.o, word.o, 
fileio.o, spawn.o, ttyio.o, ttykbd.o, tty.o, bcopy.o, 
0a:optoff.o, 0a:clib

==============================

In order to build a new system, make sure all source files for the
objects in LINKMG.INP are present, as well as DEF.H, SYSDEF.H, and
TTYDEF.H.  Edit SYSDEF.H to reflect your preferences, then compile
each of the sources and link the results, as shown in the following
sequence of commands.

c basic buffer cinfo display echo extend file
c kbd line main match paragrap prefix random
c region search symbol version window word
c fileio spawn ttyio ttykbd tty bcopy
linkmg

