X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=as%2FMakefile;h=ab333afb6ed16e2fe29cc929e29ef1828fa521aa;hb=2060e85e1bdb674b2c1a66763d92e385600d4c17;hp=e506337aa16481d9770f4a558fe1f0323e95a453;hpb=a52d33f6ded18fc9d6e5badccfe6e963c114e0e8;p=fw%2Fsdcc diff --git a/as/Makefile b/as/Makefile index e506337a..ab333afb 100644 --- a/as/Makefile +++ b/as/Makefile @@ -1,18 +1,23 @@ PRJDIR = .. include $(PRJDIR)/Makefile.common -PORTS = _z80 _gbz80 +PORTS = z80 gbz80 +DOCS = README abstra.doc appendk.txt asmlnk.doc asxhtm.html format.txt -all: - for i in $(PORTS); do make $$i; done +all: + $(MAKE) -C z80 _as-z80 _as-gbz80 E=$(E) BUILDDIR=../../bin/ -_z80: clean - make -C z80 - cp z80/as$(E) $(PRJDIR)/bin/as-z80$(E) +install: all install-doc + $(INSTALL) $(PRJDIR)/bin/as-z80 `echo $(bindir)/as-z80|sed '$(transform)'` + $(STRIP) `echo $(bindir)/as-z80|sed '$(transform)'` + $(INSTALL) $(PRJDIR)/bin/as-gbz80 `echo $(bindir)/as-gbz80|sed '$(transform)'` + $(STRIP) `echo $(bindir)/as-gbz80|sed '$(transform)'` -_gbz80: clean - make -C z80 "OPTS=-DGAMEBOY" - cp z80/as$(E) $(PRJDIR)/bin/as-gbz80$(E) +install-doc: + $(INSTALL) -d $(docdir)/aslink + cp -f `find doc -maxdepth 1 -not -type d` $(docdir)/aslink -clean: - make -C z80 clean +uninstall: + cd $(bindir); rm -f as-z80 as-gbz80 + +include clean.mk