X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=as%2FMakefile;h=ccecebabb242a23619bbd09488cfed59446e9b8c;hb=3496b9c93e952c27e5310e3804f9dcbf9c3795ee;hp=c2518ce56247cd0b542550ffc2f0a5e60bf4576a;hpb=88ff7c7ef31872af21690ba5adf82200bb7a6c1e;p=fw%2Fsdcc diff --git a/as/Makefile b/as/Makefile index c2518ce5..ccecebab 100644 --- a/as/Makefile +++ b/as/Makefile @@ -1,18 +1,27 @@ -TOPDIR = .. -include $(TOPDIR)/Makefile.common +PRJDIR = .. +BUILDDIR=../../bin +include $(PRJDIR)/Makefile.common -PORTS = z80 gbz80 +PORTS = z80 gbz80 hc08 +DOCS = README abstra.doc appendk.txt asmlnk.doc asxhtm.html format.txt -all: - for i in $(PORTS); do make $$i; done +all: + $(MAKE) -C z80 _as-z80 _as-gbz80 E=$(E) BUILDDIR=$(BUILDDIR) + $(MAKE) -C hc08 all E=$(E) BUILDDIR=$(BUILDDIR) -z80: clean - make -C z80 - cp z80/as $(TOPDIR)/bin/as-z80 +install: all install-doc + $(INSTALL) $(PRJDIR)/bin/as-z80$(EXEEXT) `echo $(bindir)/as-z80$(EXEEXT)|sed '$(transform)'` + $(STRIP) `echo $(bindir)/as-z80$(EXEEXT)|sed '$(transform)'` + $(INSTALL) $(PRJDIR)/bin/as-gbz80$(EXEEXT) `echo $(bindir)/as-gbz80$(EXEEXT)|sed '$(transform)'` + $(STRIP) `echo $(bindir)/as-gbz80$(EXEEXT)|sed '$(transform)'` + $(INSTALL) $(PRJDIR)/bin/as-hc08$(EXEEXT) `echo $(bindir)/as-hc08$(EXEEXT)|sed '$(transform)'` + $(STRIP) `echo $(bindir)/as-hc08$(EXEEXT)|sed '$(transform)'` -gbz80: clean - make -C z80 "OPTS=-DGAMEBOY" - cp z80/as $(TOPDIR)/bin/as-gb +install-doc: + $(INSTALL) -d $(docdir)/aslink + cp -f `find doc -maxdepth 1 -not -type d` $(docdir)/aslink -clean: - make -C z80 clean +uninstall: + cd $(bindir); rm -f as-z80$(EXEEXT) as-gbz80$(EXEEXT) as-hc08$(EXEEXT) + +include clean.mk