1 #WARNING! Do not run a 'make install' unless you know what you're doing.
3 CPMBIN
= /usr
/local
/lib
/cpm
/bin80
5 diskimage
: CPM.BIN cpmdsk
/*
6 mkfs.cpm
-f avrcpm
-b CPM.BIN
-L
test diskimage
7 cd cpmdsk
; for x in
*; do cpmcp
-f avrcpm ..
/diskimage
$$x 0:$$x; done
; cd ..
9 CPM.BIN
: IPL.BIN BIOS.BIN CPM.SYS
10 dd conv
=sync bs
=128 count
=1 if
=IPL.BIN
> tmpCPM.BIN
11 dd conv
=sync bs
=128 count
=44 if
=CPM.SYS
>> tmpCPM.BIN
12 dd conv
=sync bs
=128 count
=7 if
=BIOS.BIN
>> tmpCPM.BIN
16 BIOS.PRN BIOS.REL
: AVRCPM.LIB CFGACPM.LIB
17 IPL.PRN IPL.REL
: CFGACPM.LIB
20 aliados
$(CPMBIN
)/m80.com
=$<
25 aliados
$(CPMBIN
)/m80.com
,$@
=$<
26 # zxcc m80.com -,$@=$<
29 aliados
$(CPMBIN
)/l80.com
$<,$@
/N
/E
30 # zxcc l80.com -$<,$@/N/E
32 .PHONY
: clean installcpm
install help
35 rm -f BIOS.LST BIOS.BIN BIOS.PRN BIOS.REL
36 rm -f IPL.LST IPL.BIN IPL.PRN IPL.REL
37 rm -f CPM.BIN diskimage
42 sudo dd if
=CPM.BIN of
=${DEV} bs
=128 conv
=sync oflag
=sync
47 @echo Error
: You must specify a device to
install to
!
48 @echo
" i.e. 'make $@ DEV=/dev/sdb1'"
53 sudo dd if
=diskimage of
=${DEV} conv
=sync oflag
=direct
,sync
55 cpmls
-f avrcpm
${DEV}
60 @echo Error
: You must specify a device to
install to
!
61 @echo
" i.e. 'make $@ DEV=/dev/sdb1'"
65 @echo
-e
"The following make targets are supported:\n"\
66 " diskimage - Build a complete CP/M image.\n"\
67 " CPM.BIN - Build CP/M system (IPL+CCP+BDOS+BIOS).\n"\
69 " BIOS.PRN - Make a listing file from bios.asm\n"\
70 " IPL.PRN - Dito for ipl\n"\
72 " install - Copy diskimage to memory card.\n"\
73 " You must specify the card device on the command line.\n"\
74 " Example: 'DEV=/dev/sdb1'\n"\
75 " installcpm - Like install, but install only the system tracks,\n"\
76 " leaving the CP/M file system unaffected.\n"\
78 " clean - Remove intermediate and output files.\n"