X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=as%2FMakefile;h=ccecebabb242a23619bbd09488cfed59446e9b8c;hb=b9855fd6b84616c3963897a10fa20ea93531e5ce;hp=a43a433bd28b156e9abb2c859776750aba650465;hpb=b73970f31134718a4606fc94139246876e0ef502;p=fw%2Fsdcc diff --git a/as/Makefile b/as/Makefile index a43a433b..ccecebab 100644 --- a/as/Makefile +++ b/as/Makefile @@ -1,13 +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: - $(MAKE) -C z80 _as-z80 _as-gbz80 E=$(E) BUILDDIR=../../bin/ + $(MAKE) -C z80 _as-z80 _as-gbz80 E=$(E) BUILDDIR=$(BUILDDIR) + $(MAKE) -C hc08 all E=$(E) BUILDDIR=$(BUILDDIR) -clean: - $(MAKE) -C z80 clean +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)'` -# dummy install target to prevent warnings -install: +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) as-hc08$(EXEEXT) + +include clean.mk