X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=as%2FMakefile;h=67419b989799a1e25af1a2bd8c894b207b50b213;hb=a935c26bf201705b353d7262328bd6e35c1b9816;hp=432ca1334546f1aca05204024e5d6e0fefa7967c;hpb=646879b54a5b6a5388fdee6e8091d20e564c2568;p=fw%2Fsdcc diff --git a/as/Makefile b/as/Makefile index 432ca133..67419b98 100644 --- a/as/Makefile +++ b/as/Makefile @@ -4,14 +4,14 @@ include $(PRJDIR)/Makefile.common PORTS = z80 gbz80 all: - for i in $(PORTS); do make _as THIS=$$i; done - -_as: -ifeq ($(THIS), gbz80) - make -C z80 BUILDDIR=../../bin EXT=-$(THIS)$(E) OPTS=-DGAMEBOY wary -else - make -C z80 BUILDDIR=../../bin EXT=-$(THIS)$(E) wary -endif + $(MAKE) -C z80 _as-z80 _as-gbz80 E=$(E) BUILDDIR=../../bin/ clean: - make -C z80 clean + $(MAKE) -C z80 clean + +install: + $(INSTALL) $(PRJDIR)/bin/as-z80 `echo $(bindir)/as-z80|sed '$(transform)'` + $(STRIP) -s `echo $(bindir)/as-z80|sed '$(transform)'` + $(INSTALL) $(PRJDIR)/bin/as-gbz80 `echo $(bindir)/as-gbz80|sed '$(transform)'` + $(STRIP) -s `echo $(bindir)/as-gbz80|sed '$(transform)'` +