Makefile adjustments.
Macros are now generated by 'make import', so I removed them from the repository.
This commit is contained in:
parent
3dff06fdd6
commit
2cb7cc7572
16
Makefile.mk
16
Makefile.mk
|
@ -24,7 +24,9 @@ AFPMOUNTER_OBJS = cdevstart.o afpcdev.o afpurlparser.o afpoptions.o strncasecmp.
|
||||||
AFPMOUNTER_RSRC = afpcdev.rez
|
AFPMOUNTER_RSRC = afpcdev.rez
|
||||||
AFPMOUNTER_CDEV = AFPMounter
|
AFPMOUNTER_CDEV = AFPMounter
|
||||||
|
|
||||||
PROGS = $(DSITEST_PROG) $(MOUNTAFP_PROG) $(DUMPCMDTBL_PROG) $(AFPBRIDGE_PROG) $(AFPMOUNTER_CDEV)
|
MACROS = asmglue.macros cmdproc.macros
|
||||||
|
|
||||||
|
PROGS = $(AFPBRIDGE_PROG) $(AFPMOUNTER_CDEV) $(DSITEST_PROG) $(MOUNTAFP_PROG) $(DUMPCMDTBL_PROG) $(LISTSESSIONS_PROG)
|
||||||
|
|
||||||
.PHONY: default
|
.PHONY: default
|
||||||
default: $(PROGS)
|
default: $(PROGS)
|
||||||
|
@ -54,7 +56,7 @@ $(AFPMOUNTER_CDEV): $(AFPMOUNTER_CDEV).obj $(AFPMOUNTER_RSRC)
|
||||||
chtyp -tcdv $@
|
chtyp -tcdv $@
|
||||||
|
|
||||||
%.macros: %.asm
|
%.macros: %.asm
|
||||||
macgen $< $@ /lang/orca/Libraries/ORCAInclude/m16.*
|
macgen $< $@ /lang/orca/Libraries/ORCAInclude/m16.* > .null
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: $(AFPBRIDGE_PROG) $(AFPMOUNTER_CDEV)
|
install: $(AFPBRIDGE_PROG) $(AFPMOUNTER_CDEV)
|
||||||
|
@ -62,13 +64,17 @@ install: $(AFPBRIDGE_PROG) $(AFPMOUNTER_CDEV)
|
||||||
cp $(AFPMOUNTER_CDEV) "*/System/CDevs"
|
cp $(AFPMOUNTER_CDEV) "*/System/CDevs"
|
||||||
$(RM) "*/System/CDevs/CDev.Data" > .null
|
$(RM) "*/System/CDevs/CDev.Data" > .null
|
||||||
|
|
||||||
.PHONY: import
|
.PHONY: chtyp
|
||||||
import:
|
chtyp:
|
||||||
chtyp -ttxt *.mk
|
chtyp -ttxt *.mk *.md *.txt
|
||||||
chtyp -lcc *.c *.h
|
chtyp -lcc *.c *.h
|
||||||
chtyp -lasm *.asm *.macros
|
chtyp -lasm *.asm *.macros
|
||||||
chtyp -lrez *.rez
|
chtyp -lrez *.rez
|
||||||
|
|
||||||
|
.PHONY: import
|
||||||
|
import: chtyp
|
||||||
udl -g *
|
udl -g *
|
||||||
|
dmake $(MACROS)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
|
|
@ -1,40 +0,0 @@
|
||||||
macro
|
|
||||||
&l long &a,&b
|
|
||||||
lclb &i
|
|
||||||
lclb &m
|
|
||||||
&a amid &a,1,1
|
|
||||||
&m setb ("&a"="M").or.("&a"="m")
|
|
||||||
&i setb ("&a"="I").or.("&a"="i")
|
|
||||||
aif c:&b=0,.a
|
|
||||||
&b amid &b,1,1
|
|
||||||
&m setb ("&b"="M").or.("&b"="m").or.&m
|
|
||||||
&i setb ("&b"="I").or.("&b"="i").or.&i
|
|
||||||
.a
|
|
||||||
&l rep #&m*32+&i*16
|
|
||||||
aif .not.&m,.b
|
|
||||||
longa on
|
|
||||||
.b
|
|
||||||
aif .not.&i,.c
|
|
||||||
longi on
|
|
||||||
.c
|
|
||||||
mend
|
|
||||||
macro
|
|
||||||
&l short &a,&b
|
|
||||||
lclb &i
|
|
||||||
lclb &m
|
|
||||||
&a amid &a,1,1
|
|
||||||
&m setb ("&a"="M").or.("&a"="m")
|
|
||||||
&i setb ("&a"="I").or.("&a"="i")
|
|
||||||
aif c:&b=0,.a
|
|
||||||
&b amid &b,1,1
|
|
||||||
&m setb ("&b"="M").or.("&b"="m").or.&m
|
|
||||||
&i setb ("&b"="I").or.("&b"="i").or.&i
|
|
||||||
.a
|
|
||||||
&l sep #&m*32+&i*16
|
|
||||||
aif .not.&m,.b
|
|
||||||
longa off
|
|
||||||
.b
|
|
||||||
aif .not.&i,.c
|
|
||||||
longi off
|
|
||||||
.c
|
|
||||||
mend
|
|
|
@ -1,40 +0,0 @@
|
||||||
macro
|
|
||||||
&l long &a,&b
|
|
||||||
lclb &i
|
|
||||||
lclb &m
|
|
||||||
&a amid &a,1,1
|
|
||||||
&m setb ("&a"="M").or.("&a"="m")
|
|
||||||
&i setb ("&a"="I").or.("&a"="i")
|
|
||||||
aif c:&b=0,.a
|
|
||||||
&b amid &b,1,1
|
|
||||||
&m setb ("&b"="M").or.("&b"="m").or.&m
|
|
||||||
&i setb ("&b"="I").or.("&b"="i").or.&i
|
|
||||||
.a
|
|
||||||
&l rep #&m*32+&i*16
|
|
||||||
aif .not.&m,.b
|
|
||||||
longa on
|
|
||||||
.b
|
|
||||||
aif .not.&i,.c
|
|
||||||
longi on
|
|
||||||
.c
|
|
||||||
mend
|
|
||||||
macro
|
|
||||||
&l short &a,&b
|
|
||||||
lclb &i
|
|
||||||
lclb &m
|
|
||||||
&a amid &a,1,1
|
|
||||||
&m setb ("&a"="M").or.("&a"="m")
|
|
||||||
&i setb ("&a"="I").or.("&a"="i")
|
|
||||||
aif c:&b=0,.a
|
|
||||||
&b amid &b,1,1
|
|
||||||
&m setb ("&b"="M").or.("&b"="m").or.&m
|
|
||||||
&i setb ("&b"="I").or.("&b"="i").or.&i
|
|
||||||
.a
|
|
||||||
&l sep #&m*32+&i*16
|
|
||||||
aif .not.&m,.b
|
|
||||||
longa off
|
|
||||||
.b
|
|
||||||
aif .not.&i,.c
|
|
||||||
longi off
|
|
||||||
.c
|
|
||||||
mend
|
|
Loading…
Reference in New Issue