# Makefile  01-May-89  A.J.Travis## Make 6502 Small-C system for BBC Micro using Zortech C on MSDOS 3.2 host### 'old' Zorland C## CC = zc# LIB = _main.obj## 'new' Zortech C#CC = ztcLIB = _mains.objCFLAGS = -pDEFINE = -DMSDOS=1default : residentXFILES1 = dehex/x sh/x shar/xXFILES2 = crt/x swcrt/x as65/x cmp/x diff/x hex/x ld/x lpr/x optab/xXFILES3 = rm/x sfa/x tcc/x tccom/x tcpp/xSHARS = tcc1.sha tcc2.sha tcc3.sha tcc4.shaSHAR1 = $(XFILES2)SHAR2 = $(XFILES3) ctype/h enter/s errors ext/s get install mnemtab put \	start/s stdio/h swext/sSHAR3 = as65/c crt0/s crt1/s lib/c mkcrt mkswcrt mktcc optab/s oshdr/s \	patch/s sh/c swcrt/s sys/sSHAR4 = bm/c cmp/c dehex/c diff/c fahr/c hanoi/c hex/c ld/c lpr/c plot/c rm/c !	sfa/c shar/c sieve/c tcc/c tccom/c tcpp/c## 8086/88 Binaries for MSDOS host#host : as65.exe optab hex.exe rm.exe shar.exe tcpp.exe tccom.exe tcc.exe ld.exeas65.exe : as65.c	$(CC) $(CFLAGS) $(DEFINE) as65.coptab : optab/s	as65 optab/s	+rm optab	+ren o/out optabhex.exe : hex.c	$(CC) $(CFLAGS) $(DEFINE) hex.crm.exe : rm.c	$(CC) $(CFLAGS) $(DEFINE) rm.c $(LIB)	shar.exe : shar.c	$(CC) $(CFLAGS) $(DEFINE) shar.c $(LIB)tcpp.exe : tcpp.c	$(CC) $(CFLAGS) $(DEFINE) tcpp.ctccom.exe : tccom.c	$(CC) $(CFLAGS) $(DEFINE) tccom.ctcc.exe : tcc.c	$(CC) $(CFLAGS) $(DEFINE) tcc.cld.exe : ld.c	$(CC) $(CFLAGS) $(DEFINE) ld.c## resident 6502 binaries for Acorn DFS/MOS#resident : host crt swcrt as65 bm cmp dehex diff fahr hanoi hex ld lpr plot \	rm sfa sh shar sieve tcc tccom tcppcrt : oshdr/s crt0/s crt1/s sys/s lib/s patch/s	+rm ext/s	+as65 -o crt oshdr/s crt0/s crt1/s sys/s lib/s patch/s	ren g/out ext/sswcrt : oshdr/s swcrt/s crt1/s sys/s lib/s patch/s	+rm swext/s	+as65 -o swcrt oshdr/s swcrt/s crt1/s sys/s lib/s patch/s	ren g/out swext/slib/s : lib.c	tcc -S lib.cas65 : as65.c start/s swcrt	tcc -o as65 as65.cbm : bm.c start/s swcrt	tcc -o bm bm.ccmp : cmp.c start/s swcrt	tcc -o cmp cmp.cdehex : dehex.c start/s swcrt	tcc -o dehex dehex.cdiff : diff.c start/s swcrt	tcc -o diff diff.cfahr : fahr.c start/s swcrt	tcc -o fahr fahr.chanoi : hanoi.c start/s swcrt	tcc -o hanoi hanoi.chex : hex.c start/s swcrt	tcc -o hex hex.cld : ld.c start/s swcrt	tcc -o ld ld.clpr : lpr.c start/s swcrt	tcc -o lpr lpr.cplot : plot.c start/s swcrt	tcc -o plot plot.crm : rm.c start/s swcrt	tcc -o rm rm.csfa : sfa.c start/s swcrt	tcc -o sfa sfa.c	sh : sh.c start/s swcrt	tcc -R -o sh sh.cshar : shar.c start/s swcrt	tcc -o shar shar.csieve : sieve.c start/s swcrt	tcc -o sieve sieve.ctcc : tcc.c start/s swcrt	tcc -o tcc tcc.ctccom : tccom.c start/s swcrt	tcc -o tccom tccom.ctcpp : tcpp.c start/s swcrt	tcc -o tcpp tcpp.c## Shell archive distribution#distrib : resident $(XFILES1) $(XFILES2) $(XFILES3) dfsname $(SHARS) dosnameas65/x : as65	hex as65 as65/xbm/x : bm	hex bm bm/xcmp/x : cmp	hex cmp cmp/xcrt/x : crt	hex crt crt/xdehex/x : dehex	hex dehex dehex/xdiff/x : diff	hex diff diff/xfahr/x : fahr	hex fahr fahr/xhanoi/x : hanoi	hex hanoi hanoi/xhex/x : hex	hex hex hex/xld/x : ld	hex ld ld/xlpr/x : lpr	hex lpr lpr/xplot/x : plot	hex plot plot/xoptab/x : optab	hex optab optab/xrm/x : rm	hex rm rm/xsfa/x : sfa	hex sfa sfa/xsh/x : sh	hex -R sh sh/xshar/x : shar	hex shar shar/xsieve/x : sieve	hex sieve sieve/xswcrt/x : swcrt	hex swcrt swcrt/xtcc/x : tcc	hex tcc tcc/xtccom/x : tccom	hex tccom tccom/xtcpp/x : tcpp	hex tcpp tcpp/xdfsname :	ren ctype.h ctype/h	ren stdio.h stdio/h	ren makefile mktcc	ren as65.c as65/c	ren bm.c bm/c	ren cmp.c cmp/c	ren dehex.c dehex/c	ren diff.c diff/c	ren fahr.c fahr/c	ren hanoi.c hanoi/c	ren hex.c hex/c	ren ld.c ld/c	ren lib.c lib/c	ren lpr.c lpr/c	ren plot.c plot/c	ren rm.c rm/c	ren sfa.c sfa/c	ren sh.c sh/c	ren shar.c shar/c	ren sieve.c sieve/c	ren tcc.c tcc/c	ren tccom.c tccom/c	ren tcpp.c tcpp/cdosname :	ren ctype/h ctype.h	ren stdio/h stdio.h	ren mktcc makefile	ren as65/c as65.c	ren bm/c bm.c	ren cmp/c cmp.c	ren dehex/c dehex.c	ren diff/c diff.c	ren fahr/c fahr.c	ren hanoi/c hanoi.c	ren hex/c hex.c	ren ld/c ld.c	ren lib/c lib.c	ren lpr/c lpr.c	ren plot/c plot.c	ren rm/c rm.c	ren sfa/c sfa.c	ren sh/c sh.c	ren shar/c shar.c	ren sieve/c sieve.c	ren tcc/c tcc.c	ren tccom/c tccom.c	ren tcpp/c tcpp.ctcc1.sha : $(SHAR1)	shar -a tcc1.sha $(SHAR1)tcc2.sha : $(SHAR2)	shar -a tcc2.sha $(SHAR2)tcc3.sha : $(SHAR3)	shar -a tcc3.sha $(SHAR3)tcc4.sha : $(SHAR4)	shar -a tcc4.sha $(SHAR4)clean :	+rm compile.bat litfile a/out g/out	+rm $(XFILES1)	+rm $(XFILES2)	+rm $(XFILES3)	+rm *.obj *.map *.shaclobber :	+rm ext/s swext/s lib/s crt swcrt optab as65 bm cmp dehex diff fahr	+rm hanoi hex ld lpr plot rm sfa sh shar tcc tccom tcpp	+rm *.exe