X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=as%2FMakefile;h=67898be3ab89dad27a45485249427393124c5b4c;hb=88e560b915dc753c85898e35af1e0a751a4cf723;hp=206729bce64c94777a92f1eebabad0dd915d0018;hpb=229bba4eecf7df0f36ac070ddc3b69e84f385354;p=fw%2Fsdcc diff --git a/as/Makefile b/as/Makefile index 206729bc..67898be3 100644 --- a/as/Makefile +++ b/as/Makefile @@ -1,17 +1,24 @@ PRJDIR = .. +BUILDDIR=../../bin include $(PRJDIR)/Makefile.common PORTS = z80 gbz80 +DOCS = README abstra.doc appendk.txt asmlnk.doc asxhtm.html format.txt all: - for i in $(PORTS); do make _as THIS=$$i; done + $(MAKE) -C z80 _as-z80 _as-gbz80 E=$(E) BUILDDIR=$(BUILDDIR) -_as: clean -ifeq ($(THIS), gbz80) - make -C z80 BUILDDIR=../../bin EXT=-$(THIS)$(E) OPTS=-DGAMEBOY -else - make -C z80 BUILDDIR=../../bin EXT=-$(THIS)$(E) -endif +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)'` -clean: - make -C z80 clean +install-doc: + $(INSTALL) -d $(docdir)/aslink + cp -f `find doc -maxdepth 1 -not -type d` $(docdir)/aslink + +uninstall: + cd $(bindir); rm -f as-z80$(EXEEXT) as-gbz80$(EXEEXT) + +include clean.mk