d9b8c97cf4c79c62b5a06f9752a235e71f073455
[fw/sdcc] / as / Makefile
1 PRJDIR = ..
2 BUILDDIR=../../bin/
3 include $(PRJDIR)/Makefile.common
4
5 PORTS = z80 gbz80
6 DOCS = README abstra.doc appendk.txt asmlnk.doc asxhtm.html format.txt
7
8 all:
9         $(MAKE) -C z80 _as-z80 _as-gbz80 E=$(E) BUILDDIR=$(BUILDDIR)
10
11 install: all install-doc
12         $(INSTALL) $(PRJDIR)/bin/as-z80 `echo $(bindir)/as-z80|sed '$(transform)'`
13         $(STRIP) `echo $(bindir)/as-z80|sed '$(transform)'`
14         $(INSTALL) $(PRJDIR)/bin/as-gbz80 `echo $(bindir)/as-gbz80|sed '$(transform)'`
15         $(STRIP) `echo $(bindir)/as-gbz80|sed '$(transform)'`
16
17 install-doc:
18         $(INSTALL) -d $(docdir)/aslink
19         cp -f `find doc -maxdepth 1 -not -type d` $(docdir)/aslink
20
21 uninstall:
22         cd $(bindir); rm -f as-z80 as-gbz80
23
24 include clean.mk