fixed the function type in --dumptree
[fw/sdcc] / link / Makefile
index e949338ff6c8cfb2ece64228723d49690fd9e791..e58ca903e5037339c10c12af28b4e1db176c8845 100644 (file)
@@ -7,5 +7,13 @@ PORTS = z80 gbz80
 all: 
        $(MAKE) -C z80 _link-z80 _link-gbz80 E=$(E) BUILDDIR=../../bin/
 
-clean:
-       $(MAKE) -C z80 clean
+install: all
+       $(INSTALL) $(PRJDIR)/bin/link-z80 `echo $(bindir)/link-z80|sed '$(transform)'`
+       $(STRIP) `echo $(bindir)/link-z80|sed '$(transform)'`
+       $(INSTALL) $(PRJDIR)/bin/link-gbz80 `echo $(bindir)/link-gbz80|sed '$(transform)'`
+       $(STRIP) `echo $(bindir)/link-gbz80|sed '$(transform)'`
+
+uninstall:
+       cd $(bindir); rm -f link-z80 link-gbz80
+
+include clean.mk