* device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
[fw/sdcc] / as / Makefile
1 PRJDIR = ..
2 BUILDDIR=../../bin
3 include $(PRJDIR)/Makefile.common
4
5 PORTS = z80 gbz80 hc08
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         $(MAKE) -C hc08 all E=$(E) BUILDDIR=$(BUILDDIR)
11
12 install: all install-doc
13         $(INSTALL) $(PRJDIR)/bin/as-z80$(EXEEXT) `echo $(DESTDIR)$(bindir)/as-z80$(EXEEXT)|sed '$(transform)'`
14         $(STRIP) `echo $(DESTDIR)$(bindir)/as-z80$(EXEEXT)|sed '$(transform)'`
15         $(INSTALL) $(PRJDIR)/bin/as-gbz80$(EXEEXT) `echo $(DESTDIR)$(bindir)/as-gbz80$(EXEEXT)|sed '$(transform)'`
16         $(STRIP) `echo $(DESTDIR)$(bindir)/as-gbz80$(EXEEXT)|sed '$(transform)'`
17         $(INSTALL) $(PRJDIR)/bin/as-hc08$(EXEEXT) `echo $(DESTDIR)$(bindir)/as-hc08$(EXEEXT)|sed '$(transform)'`
18         $(STRIP) `echo $(DESTDIR)$(bindir)/as-hc08$(EXEEXT)|sed '$(transform)'`
19
20 install-doc:
21         $(INSTALL) -d $(DESTDIR)$(docdir)/aslink
22         cp -f `find doc -maxdepth 1 -type f` $(DESTDIR)$(docdir)/aslink
23
24 uninstall:
25         cd $(DESTDIR)$(bindir); rm -f as-z80$(EXEEXT) as-gbz80$(EXEEXT) as-hc08$(EXEEXT)
26
27 include clean.mk