X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=as%2FMakefile;h=214880a36428fd7e1e9c9f57de7b61e7c703a530;hb=98702bb247ee71182f674c9cc9ead9e3d1efca03;hp=e178d9a9b93320ebff06334edb02f129760436da;hpb=19ea2ae089de8a305a49e0d6e958968e0f090778;p=fw%2Fsdcc diff --git a/as/Makefile b/as/Makefile index e178d9a9..214880a3 100644 --- a/as/Makefile +++ b/as/Makefile @@ -1,10 +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)'` + +install-doc: + $(INSTALL) -d $(docdir)/aslink + cp -f `find doc -maxdepth 1 -type f` $(docdir)/aslink + +uninstall: + cd $(bindir); rm -f as-z80$(EXEEXT) as-gbz80$(EXEEXT) as-hc08$(EXEEXT) + +include clean.mk