X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=link%2FMakefile;h=31979674f03b08c9e26ec0594d130b00f374f323;hb=f1c40004ae349f7cd3a1a5c5c85f62f695196370;hp=bbd1c19f94bc48385d10962e63bdb2d61270e1de;hpb=a52d33f6ded18fc9d6e5badccfe6e963c114e0e8;p=fw%2Fsdcc diff --git a/link/Makefile b/link/Makefile index bbd1c19f..31979674 100644 --- a/link/Makefile +++ b/link/Makefile @@ -2,18 +2,18 @@ PRJDIR = .. include $(PRJDIR)/Makefile.common -PORTS = _z80 _gbz80 +PORTS = z80 gbz80 all: - for i in $(PORTS); do make $$i; done + $(MAKE) -C z80 _link-z80 _link-gbz80 E=$(E) BUILDDIR=../../bin/ -_z80: clean - make -C z80 - cp z80/link$(E) $(PRJDIR)/bin/link-z80$(E) +install: all + $(INSTALL) $(PRJDIR)/bin/link-z80$(EXEEXT) `echo $(DESTDIR)$(bindir)/link-z80$(EXEEXT)|sed '$(transform)'` + $(STRIP) `echo $(DESTDIR)$(bindir)/link-z80$(EXEEXT)|sed '$(transform)'` + $(INSTALL) $(PRJDIR)/bin/link-gbz80$(EXEEXT) `echo $(DESTDIR)$(bindir)/link-gbz80$(EXEEXT)|sed '$(transform)'` + $(STRIP) `echo $(DESTDIR)$(bindir)/link-gbz80$(EXEEXT)|sed '$(transform)'` -_gbz80: clean - make -C z80 "OPTS=-DGAMEBOY" - cp z80/link$(E) $(PRJDIR)/bin/link-gbz80$(E) +uninstall: + cd $(DESTDIR)$(bindir); rm -f link-z80$(EXEEXT) link-gbz80$(EXEEXT) -clean: - make -C z80 clean +include clean.mk