File: Makefile.LinuxSH4

package info (click to toggle)
euslisp 9.31%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 55,448 kB
  • sloc: ansic: 41,610; lisp: 3,339; makefile: 286; sh: 238; asm: 138; python: 53
file content (32 lines) | stat: -rw-r--r-- 1,297 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
HOST_EUSDIR=$(shell printenv EUSDIR)
HOST_ARCHDIR=$(shell printenv ARCHDIR)
EUSDIR=$(shell pwd)/..
ARCHDIR=LinuxSH4

all : $(EUSDIR)/$(ARCHDIR)/bin/gccls $(EUSDIR)/$(ARCHDIR)/bin/euscompsh4
	make -f Makefile.LinuxSH4.2 eus0
	cd $(EUSDIR)/$(ARCHDIR)/bin;  rm -f euscomp; ln -sf euscomp-sh4 euscomp; cd $(EUSDIR)/lisp
	make -f Makefile.LinuxSH4.2 eus1
	cd $(EUSDIR)/$(ARCHDIR)/bin;  rm -f euscomp; ln -sf euscomp-sh4 euscomp; cd $(EUSDIR)/lisp
	make -f Makefile.LinuxSH4.2 eus2
	cd $(EUSDIR)/$(ARCHDIR)/bin;  rm -f euscomp; ln -sf euscomp-sh4 euscomp; cd $(EUSDIR)/lisp
	make -f Makefile.LinuxSH4.2 eusg
	cd $(EUSDIR)/$(ARCHDIR)/bin;  rm -f euscomp; ln -sf euscomp-sh4 euscomp; cd $(EUSDIR)/lisp
	cd $(EUSDIR)/$(ARCHDIR)/bin;  ln -sf eus1 eus;

$(EUSDIR)/$(ARCHDIR)/bin/euscompsh4:
	(cd $(EUSDIR)/$(ARCHDIR)/bin; \
	echo '#!/bin/sh' > euscomp-sh4; \
	echo 'EUSDIR='$(EUSDIR) >> euscomp-sh4; \
	echo 'ARCHDIR='$(ARCHDIR) >> euscomp-sh4; \
	echo $(HOST_EUSDIR)/$(HOST_ARCHDIR)/bin/eus1 "\"(progn (setq comp::*cc* \\\"sh4-linux-gcc -g\\\")(push :sh4 comp::*features*))\"" >> euscomp-sh4; \
	chmod 755 euscomp-sh4; \
	)

clean: $(EUSDIR)/$(ARCHDIR)/bin/gccls
	make -f Makefile.LinuxSH4.2  clean

$(EUSDIR)/$(ARCHDIR)/bin/gccls:
	make -f Makefile.LinuxSH4.2 CC=cc MKDIR $(EUSDIR)/$(ARCHDIR)/bin/gccls