1 # This Makefile is only for z80 and gbz80
5 top_builddir = @top_builddir@
7 BUILDDIR=../$(top_builddir)/bin
8 include $(top_builddir)/Makefile.common
11 DOCS = README abstra.txt appendk.txt asmlnk.txt asxhtm.html format.txt
14 $(MAKE) -C z80 _as-z80 _as-gbz80 E=$(E) BUILDDIR=$(BUILDDIR)
16 install: all install-doc
17 $(INSTALL) $(top_builddir)/bin/as-z80$(EXEEXT) `echo $(DESTDIR)$(bindir)/as-z80$(EXEEXT)|sed '$(transform)'`
18 $(STRIP) `echo $(DESTDIR)$(bindir)/as-z80$(EXEEXT)|sed '$(transform)'`
19 $(INSTALL) $(top_builddir)/bin/as-gbz80$(EXEEXT) `echo $(DESTDIR)$(bindir)/as-gbz80$(EXEEXT)|sed '$(transform)'`
20 $(STRIP) `echo $(DESTDIR)$(bindir)/as-gbz80$(EXEEXT)|sed '$(transform)'`
23 $(INSTALL) -d $(DESTDIR)$(docdir)/aslink
24 cd $(srcdir)/doc; cp -f $(DOCS) $(DESTDIR)$(docdir)/aslink
27 cd $(DESTDIR)$(bindir); rm -f as-z80$(EXEEXT) as-gbz80$(EXEEXT)
29 include $(srcdir)/clean.mk