forked from scheme/scsh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
170 lines (150 loc) · 4.01 KB
/
Makefile.in
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
srcdir = @srcdir@
VPATH = @srcdir@
CC = @CC@
LD = ${CC}
DEFS = @DEFS@
LIBS = @LIBS@
CFLAGS = @CFLAGS@ @DYNAMIC_EXTERNALS_CFLAGS@
CPPFLAGS = @CPPFLAGS@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
LDFLAGS = @LDFLAGS@ @DYNAMIC_EXTERNALS_LDFLAGS@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
incdir = @includedir@
manext = 1
mandir = @mandir@/man$(manext)
docdir = @docdir@
datarootdir = @datarootdir@
datadir = @datadir@
VERSION = 0.7
RUNNABLE = scsh
LIB = $(libdir)/scsh-$(VERSION)
SHARE = $(datadir)/scsh-$(VERSION)
lib_dirs_list = ("${prefix}/lib/scsh/modules" "${prefix}/lib/scsh/modules/${VERSION}")
SCHEME48VM = /usr/local/lib/scheme48-1.9t/scheme48vm
SCHEME48 = /usr/local/bin/scheme48
enough: c/scsh.so scsh scsh.image go
test: enough
$(srcdir)/build/test.sh $(srcdir)
C = c/syscalls.o \
c/tty.o \
c/cstuff.o \
c/scsh.o
c/scsh.so: $(C)
$(LD) -o $@ $(C) $(LDFLAGS) $(LIBS)
SCHEME = scheme/command-line.scm \
scheme/condition-handler.scm \
scheme/continuation.scm \
scheme/directory.scm \
scheme/enumconst.scm \
scheme/environment.scm \
scheme/event.scm \
scheme/fdports.scm \
scheme/file.scm \
scheme/fileinfo.scm \
scheme/filemtch.scm \
scheme/filesys.scm \
scheme/fname.scm \
scheme/fname-system.scm \
scheme/fr.scm \
scheme/glob.scm \
scheme/dot-locking.scm \
scheme/here.scm \
scheme/lib-dirs.scm \
scheme/libscsh.scm \
scheme/low-interrupt.scm \
scheme/md5.scm \
scheme/meta-arg.scm \
scheme/newports.scm \
scheme/port-collect.scm \
scheme/process-high-level.scm \
scheme/process-state.scm \
scheme/process.scm \
scheme/procobj.scm \
scheme/pty.scm \
scheme/rdelim.scm \
scheme/resource.scm \
scheme/rw.scm \
scheme/scsh-condition.scm \
scheme/scsh-interfaces.scm \
scheme/scsh-package.scm \
scheme/scsh-read.scm \
scheme/scsh-version.scm \
scheme/signal.scm \
scheme/startup.scm \
scheme/stdio.scm \
scheme/stringcoll.scm \
scheme/syntax-helpers.scm \
scheme/syntax.scm \
scheme/system.scm \
scheme/temp-file.scm \
scheme/top.scm \
scheme/tty.scm \
scheme/tty-consts.scm \
scheme/user-group.scm \
scheme/utilities.scm \
scheme/weaktables.scm \
rx/packages.scm \
rx/re-match-syntax.scm \
rx/rx-lib.scm \
rx/parse.scm \
rx/re-subst.scm \
rx/simp.scm \
rx/posixstr.scm \
rx/re-syntax.scm \
rx/spencer.scm \
rx/re-fold.scm \
rx/re.scm \
rx/re-high.scm \
rx/re-low.scm \
rx/regress.scm \
constance/packages.scm \
constance/constance.scm \
constance/constance-syntax-help.scm
go: c/scsh-tramp.c
$(CC) -o $@ $(CFLAGS) \
-DVM=\"$(SCHEME48VM)\" \
-DIMAGE=\"scsh.image\" \
$(srcdir)/c/scsh-tramp.c
scsh: c/scsh-tramp.c
$(CC) -o $@ $(CFLAGS) \
-DVM=\"$(SCHEME48VM)\" \
-DIMAGE=\"$(LIB)/scsh.image\" \
$(srcdir)/c/scsh-tramp.c
LOADS = $(srcdir)/rx/interfaces.scm \
$(srcdir)/rx/packages.scm \
$(srcdir)/constance/packages.scm \
$(srcdir)/scheme/scsh-interfaces.scm \
$(srcdir)/scheme/scsh-package.scm \
$(srcdir)/scheme/lib/ccp-pack.scm \
$(srcdir)/scheme/lib/char-package.scm
scsh.image: $(SCHEME)
$(srcdir)/build/build-image.sh $(srcdir) \
"`pwd`/c/" '$@' '$(SCHEME48) -h 0' '$(LOADS)'
dirs:
for dir in $(bindir) $(LIB) $(SHARE); do\
{ mkdir -p $(DESTDIR)$$dir && [ -w $(DESTDIR)$$dir ]; } || { \
echo "$(DESTDIR)$$dir not a writable directory" >&2; \
exit 1; \
} \
done
install: enough dirs install-scsh-image install-scsh
install-scsh: scsh
#install runner
$(RM) $(DESTDIR)$(bindir)/$(RUNNABLE)
$(INSTALL_PROGRAM) scsh $(DESTDIR)$(bindir)/$(RUNNABLE)
#install scsh.so
$(RM) $(DESTDIR)$(LIB)/scsh.so
$(INSTALL_DATA) c/scsh.so $(DESTDIR)$(LIB)
#install scheme source files
for f in $(srcdir)/scheme/*.scm $(srcdir)/scheme/*/*.scm; \
do $(INSTALL_DATA) $$f $(DESTDIR)$(SHARE)/; done
install-scsh-image: install-scsh
$(srcdir)/build/build-image.sh $(srcdir) \
"$(LIB)/" '$(DESTDIR)$(LIB)/scsh.image' '$(SCHEME48) -h 0' '$(LOADS)'
clean:
$(RM) c/*.o c/*.so *.sexpr scsh.image scsh go