Debian Codegraph @

clcs/makefile

raw
1 -include ../makedefs
2
3 COMPILE_FILE=./saved_clcs_gcl$(EXE) ./ -system-p -c-file -data-file \
4 -o-file nil -h-file -compile
5
6 FILES:=$(shell ls -1 gcl_clcs_*.lisp | sed 's,\.lisp,,1')
7
8 all: $(addsuffix .c,$(FILES)) $(addsuffix .o,$(FILES))
9
10 saved_clcs_gcl: ../unixport/saved_pcl_gcl$(EXE)
11 echo '(load "package.lisp")(load "myload.lisp")(si::save-system "$@")' | $< $(<D)/
12
13 %.h %.data %.c : %.lisp saved_clcs_gcl
14 cp ../h/cmpinclude.h .
15 $(COMPILE_FILE) $<
16
17 %.o: %.c %.h %.data
18 $(CC) $(CFLAGS) -c $< -o $@
19 ../xbin/append $*.data $@
20
21 %.fn: ../cmpnew/gcl_collectfn.o %.lisp ./saved_clcs_gcl$(EXE)
22 echo '(load "$<")(compiler::emit-fn t)(compile-file "$*.lisp")' |./saved_clcs_gcl$(EXE)
23
24 sys-proclaim.lisp: $(addsuffix .fn,$(FILES))
25 echo '(in-package "CONDITIONS")' \
26 '(load "../cmpnew/gcl_collectfn")'\
27 '(compiler::make-all-proclaims "*.fn")' | ../xbin/gcl
28
29 compile: ${LISP}
30 echo '(load "package.lisp")(load "loading.lisp")(jamie-load-clcs :compile)' | ${LISP}
31
32 saved_full_gcl: ${LISP}
33 echo '(load "package.lisp")(load "loading.lisp")(jamie-load-clcs :compiled)(system::save-system "saved_full_gcl")' | ${LISP}
34
35 clean:
36 rm -f *.o *.fn saved_full_gcl$(EXE) saved_full_gcl cmpinclude.h *.c *.h *.data saved_clcs_gcl$(EXE)
37 #.INTERMEDIATE: saved_clcs_gcl