X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=as%2FMakefile;h=214880a36428fd7e1e9c9f57de7b61e7c703a530;hb=98702bb247ee71182f674c9cc9ead9e3d1efca03;hp=e506337aa16481d9770f4a558fe1f0323e95a453;hpb=a52d33f6ded18fc9d6e5badccfe6e963c114e0e8;p=fw%2Fsdcc diff --git a/as/Makefile b/as/Makefile index e506337a..214880a3 100644 --- a/as/Makefile +++ b/as/Makefile @@ -1,18 +1,27 @@ PRJDIR = .. +BUILDDIR=../../bin include $(PRJDIR)/Makefile.common -PORTS = _z80 _gbz80 +PORTS = z80 gbz80 hc08 +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=$(BUILDDIR) + $(MAKE) -C hc08 all E=$(E) BUILDDIR=$(BUILDDIR) -_z80: clean - make -C z80 - cp z80/as$(E) $(PRJDIR)/bin/as-z80$(E) +install: all install-doc + $(INSTALL) $(PRJDIR)/bin/as-z80$(EXEEXT) `echo $(bindir)/as-z80$(EXEEXT)|sed '$(transform)'` + $(STRIP) `echo $(bindir)/as-z80$(EXEEXT)|sed '$(transform)'` + $(INSTALL) $(PRJDIR)/bin/as-gbz80$(EXEEXT) `echo $(bindir)/as-gbz80$(EXEEXT)|sed '$(transform)'` + $(STRIP) `echo $(bindir)/as-gbz80$(EXEEXT)|sed '$(transform)'` + $(INSTALL) $(PRJDIR)/bin/as-hc08$(EXEEXT) `echo $(bindir)/as-hc08$(EXEEXT)|sed '$(transform)'` + $(STRIP) `echo $(bindir)/as-hc08$(EXEEXT)|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 -type f` $(docdir)/aslink -clean: - make -C z80 clean +uninstall: + cd $(bindir); rm -f as-z80$(EXEEXT) as-gbz80$(EXEEXT) as-hc08$(EXEEXT) + +include clean.mk