PRJDIR = ..
include $(PRJDIR)/Makefile.common
-PORTS = _z80 _gbz80
+PORTS = z80 gbz80
+DOCS = README abstra.doc appendk.txt asmlnk.doc asxhtm.html format.txt
-all:
- for i in $(PORTS); do make $$i; done
+all:
+ $(MAKE) -C z80 _as-z80 _as-gbz80 E=$(E) BUILDDIR=../../bin/
-_z80: clean
- make -C z80
- cp z80/as$(E) $(TOPDIR)/bin/as-z80$(E)
+clean:
+ $(MAKE) -C z80 clean
-_gbz80: clean
- make -C z80 "OPTS=-DGAMEBOY"
- cp z80/as$(E) $(TOPDIR)/bin/as-gbz80$(E)
+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)'`
-clean:
- make -C z80 clean
+install-doc:
+ $(INSTALL) -d $(docdir)/aslink
+ cp -f `find doc -maxdepth 1 -not -type d` $(docdir)/aslink