67898be3ab89dad27a45485249427393124c5b4c
[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$(EXEEXT) `echo $(bindir)/as-z80$(EXEEXT)|sed '$(transform)'`
13         $(STRIP) `echo $(bindir)/as-z80$(EXEEXT)|sed '$(transform)'`
14         $(INSTALL) $(PRJDIR)/bin/as-gbz80$(EXEEXT) `echo $(bindir)/as-gbz80$(EXEEXT)|sed '$(transform)'`
15         $(STRIP) `echo $(bindir)/as-gbz80$(EXEEXT)|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$(EXEEXT) as-gbz80$(EXEEXT)
23
24 include clean.mk