/[meta-cvs]/meta-cvs/F-C4705D42F8A703801A5583798843DADA
ViewVC logotype

Contents of /meta-cvs/F-C4705D42F8A703801A5583798843DADA

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations)
Tue Mar 11 05:24:30 2008 UTC (6 years, 1 month ago) by kaz
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -0 lines
First cut at IA-64 support.

* Makefile (ARCH): New variable, captures output of arch program.
Arch, prefixed with "ARCH-" is pushed onto *FEATURES* list.

* code/clisp-ffi.lisp (stat): New variant of structure introduced.
(stat-ver): Constant removed.
(__stat-ver-linux): New constant added, with architecture-dependent
value.
(stat, fstat, lstat): Use new constant.
1 include config.make
2
3 REBUILD := $(filter rebuild,$(MAKECMDGOALS))
4 CLEAN :=
5 ARCH := $(shell arch)
6
7 .PHONY: all
8 all: mcvs mcvs-debug mcvs.mem mcvs-debug.mem
9
10 mcvs mcvs-debug: config.make
11 printf "#!$$(type -P clisp) -M$(prefix)/lib/$@.mem\n" > $@
12 printf "(meta-cvs:main)\n" >> $@
13 CLEAN += mcvs mcvs-debug
14
15 ifneq ($(REBUILD),)
16 .PHONY: rebuild
17 rebuild: all rebuild-mem rebuild-debug-mem
18
19 .PHONY: rebuild-mem rebuild-debug-mem
20
21 rebuild-mem: mcvs.mem
22 rebuild-debug-mem: mcvs-debug.mem
23
24 rebuild-mem rebuild-debug-mem:
25 clisp -q -M $< \
26 -x "(zxcv:operate $(if $(findstring debug,$@),\
27 'zxcv:load-source-op,\
28 'zxcv:load-op) \
29 'mcvs :source-dir #p\"$(top_srcdir)/\")" \
30 -x "(ext:saveinitmem \"$<\" :quiet t)"
31 endif
32
33 mcvs.mem mcvs-debug.mem: config.make
34 clisp -q \
35 -x "(push :arch-$(ARCH) *features*)" \
36 -x "(let ((*load-compiling* t)) \
37 (load \"$(top_srcdir)/asdf/asdf\"))" \
38 -x "(setf zxcv:*central-registry* \
39 '(#p\"$(top_srcdir)/code/\"))" \
40 -x "(zxcv:operate $(if $(findstring debug,$@),\
41 'zxcv:load-source-op,\
42 'zxcv:load-op) \
43 'mcvs :source-dir #p\"$(top_srcdir)/\")" \
44 -x "(ext:saveinitmem \"$@\" :quiet t)"
45 CLEAN += mcvs.mem mcvs-debug.mem
46
47 .PHONY: install
48 install: all
49 install -d $(prefix)/bin $(prefix)/lib
50 install mcvs mcvs-debug $(prefix)/bin
51 install mcvs.mem mcvs-debug.mem $(prefix)/lib
52
53 .PHONY: clean
54 clean:
55 -rm $(CLEAN)

  ViewVC Help
Powered by ViewVC 1.1.5