X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=as%2FMakefile;h=a2b8623f3b5e039f3e2fd173106235921d93ce59;hb=69446b0469baf2877e1baf54a54d30f9fb8a8e16;hp=ff3e994bd92a79e2a7dae6e794714a9996a7d40f;hpb=2ee35049f829fc523bab32504f31cfdef6745757;p=fw%2Fsdcc diff --git a/as/Makefile b/as/Makefile index ff3e994b..a2b8623f 100644 --- a/as/Makefile +++ b/as/Makefile @@ -1,20 +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) -install: install-doc - $(INSTALL) $(PRJDIR)/bin/as-z80 `echo $(bindir)/as-z80|sed '$(transform)'` - $(STRIP) -s `echo $(bindir)/as-z80|sed '$(transform)'` - $(INSTALL) $(PRJDIR)/bin/as-gbz80 `echo $(bindir)/as-gbz80|sed '$(transform)'` - $(STRIP) -s `echo $(bindir)/as-gbz80|sed '$(transform)'` +install: all install-doc + $(INSTALL) $(PRJDIR)/bin/as-z80$(EXEEXT) `echo $(DESTDIR)$(bindir)/as-z80$(EXEEXT)|sed '$(transform)'` + $(STRIP) `echo $(DESTDIR)$(bindir)/as-z80$(EXEEXT)|sed '$(transform)'` + $(INSTALL) $(PRJDIR)/bin/as-gbz80$(EXEEXT) `echo $(DESTDIR)$(bindir)/as-gbz80$(EXEEXT)|sed '$(transform)'` + $(STRIP) `echo $(DESTDIR)$(bindir)/as-gbz80$(EXEEXT)|sed '$(transform)'` + $(INSTALL) $(PRJDIR)/bin/as-hc08$(EXEEXT) `echo $(DESTDIR)$(bindir)/as-hc08$(EXEEXT)|sed '$(transform)'` + $(STRIP) `echo $(DESTDIR)$(bindir)/as-hc08$(EXEEXT)|sed '$(transform)'` install-doc: - $(INSTALL) -d $(docdir)/aslink - cp -f `find doc -maxdepth 1 -not -type d` $(docdir)/aslink + $(INSTALL) -d $(DESTDIR)$(docdir)/aslink + cp -f doc/* $(DESTDIR)$(docdir)/aslink + +uninstall: + cd $(DESTDIR)$(bindir); rm -f as-z80$(EXEEXT) as-gbz80$(EXEEXT) as-hc08$(EXEEXT) include clean.mk