Mercurial > urweb
comparison Makefile.in @ 1132:d4cd54a4ea06
First attempt to switch to Automake, to get shared libraries built in OSX
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 28 Jan 2010 09:56:08 -0500 |
parents | 94e83c5533d2 |
children | 482815817e99 |
comparison
equal
deleted
inserted
replaced
1131:94e83c5533d2 | 1132:d4cd54a4ea06 |
---|---|
1 BIN := @BIN@ | 1 # Makefile.in generated by automake 1.11 from Makefile.am. |
2 LIB := @LIB@ | 2 # @configure_input@ |
3 INCLUDE := @INCLUDE@ | 3 |
4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | |
5 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | |
6 # Inc. | |
7 # This Makefile.in is free software; the Free Software Foundation | |
8 # gives unlimited permission to copy and/or distribute it, | |
9 # with or without modifications, as long as this notice is preserved. | |
10 | |
11 # This program is distributed in the hope that it will be useful, | |
12 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
13 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
14 # PARTICULAR PURPOSE. | |
15 | |
16 @SET_MAKE@ | |
17 VPATH = @srcdir@ | |
18 pkgdatadir = $(datadir)/@PACKAGE@ | |
19 pkgincludedir = $(includedir)/@PACKAGE@ | |
20 pkglibdir = $(libdir)/@PACKAGE@ | |
21 pkglibexecdir = $(libexecdir)/@PACKAGE@ | |
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | |
23 install_sh_DATA = $(install_sh) -c -m 644 | |
24 install_sh_PROGRAM = $(install_sh) -c | |
25 install_sh_SCRIPT = $(install_sh) -c | |
26 INSTALL_HEADER = $(INSTALL_DATA) | |
27 transform = $(program_transform_name) | |
28 NORMAL_INSTALL = : | |
29 PRE_INSTALL = : | |
30 POST_INSTALL = : | |
31 NORMAL_UNINSTALL = : | |
32 PRE_UNINSTALL = : | |
33 POST_UNINSTALL = : | |
34 build_triplet = @build@ | |
35 host_triplet = @host@ | |
36 subdir = . | |
37 DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \ | |
38 $(srcdir)/Makefile.in $(top_srcdir)/configure \ | |
39 $(top_srcdir)/src/config.sml.in config.guess config.sub \ | |
40 depcomp install-sh ltmain.sh missing | |
41 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
42 am__aclocal_m4_deps = $(top_srcdir)/configure.ac | |
43 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | |
44 $(ACLOCAL_M4) | |
45 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ | |
46 configure.lineno config.status.lineno | |
47 mkinstalldirs = $(install_sh) -d | |
48 CONFIG_CLEAN_FILES = src/config.sml | |
49 CONFIG_CLEAN_VPATH_FILES = | |
50 SOURCES = | |
51 DIST_SOURCES = | |
52 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ | |
53 html-recursive info-recursive install-data-recursive \ | |
54 install-dvi-recursive install-exec-recursive \ | |
55 install-html-recursive install-info-recursive \ | |
56 install-pdf-recursive install-ps-recursive install-recursive \ | |
57 installcheck-recursive installdirs-recursive pdf-recursive \ | |
58 ps-recursive uninstall-recursive | |
59 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ | |
60 distclean-recursive maintainer-clean-recursive | |
61 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ | |
62 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ | |
63 distdir dist dist-all distcheck | |
64 ETAGS = etags | |
65 CTAGS = ctags | |
66 DIST_SUBDIRS = $(SUBDIRS) | |
67 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | |
68 distdir = $(PACKAGE)-$(VERSION) | |
69 top_distdir = $(distdir) | |
70 am__remove_distdir = \ | |
71 { test ! -d "$(distdir)" \ | |
72 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ | |
73 && rm -fr "$(distdir)"; }; } | |
74 am__relativize = \ | |
75 dir0=`pwd`; \ | |
76 sed_first='s,^\([^/]*\)/.*$$,\1,'; \ | |
77 sed_rest='s,^[^/]*/*,,'; \ | |
78 sed_last='s,^.*/\([^/]*\)$$,\1,'; \ | |
79 sed_butlast='s,/*[^/]*$$,,'; \ | |
80 while test -n "$$dir1"; do \ | |
81 first=`echo "$$dir1" | sed -e "$$sed_first"`; \ | |
82 if test "$$first" != "."; then \ | |
83 if test "$$first" = ".."; then \ | |
84 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ | |
85 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ | |
86 else \ | |
87 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ | |
88 if test "$$first2" = "$$first"; then \ | |
89 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ | |
90 else \ | |
91 dir2="../$$dir2"; \ | |
92 fi; \ | |
93 dir0="$$dir0"/"$$first"; \ | |
94 fi; \ | |
95 fi; \ | |
96 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ | |
97 done; \ | |
98 reldir="$$dir2" | |
99 DIST_ARCHIVES = $(distdir).tar.gz | |
100 GZIP_ENV = --best | |
101 distuninstallcheck_listfiles = find . -type f -print | |
102 distcleancheck_listfiles = find . -type f -print | |
103 ACLOCAL = @ACLOCAL@ | |
104 AMTAR = @AMTAR@ | |
105 AR = @AR@ | |
106 AUTOCONF = @AUTOCONF@ | |
107 AUTOHEADER = @AUTOHEADER@ | |
108 AUTOMAKE = @AUTOMAKE@ | |
109 AWK = @AWK@ | |
110 BIN := @BIN@ | |
111 CC = @CC@ | |
112 CCDEPMODE = @CCDEPMODE@ | |
113 CFLAGS = @CFLAGS@ | |
114 CPP = @CPP@ | |
115 CPPFLAGS = @CPPFLAGS@ | |
116 CYGPATH_W = @CYGPATH_W@ | |
117 DEFS = @DEFS@ | |
118 DEPDIR = @DEPDIR@ | |
119 DSYMUTIL = @DSYMUTIL@ | |
120 DUMPBIN = @DUMPBIN@ | |
121 ECHO_C = @ECHO_C@ | |
122 ECHO_N = @ECHO_N@ | |
123 ECHO_T = @ECHO_T@ | |
124 EGREP = @EGREP@ | |
125 EXEEXT = @EXEEXT@ | |
126 FGREP = @FGREP@ | |
127 GCCARGS = @GCCARGS@ | |
128 GREP = @GREP@ | |
129 INCLUDE := @INCLUDE@ | |
130 INSTALL = @INSTALL@ | |
131 INSTALL_DATA = @INSTALL_DATA@ | |
132 INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
133 INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
134 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | |
135 LD = @LD@ | |
136 LDFLAGS = @LDFLAGS@ | |
137 LIB := @LIB@ | |
138 LIBOBJS = @LIBOBJS@ | |
139 LIBS = @LIBS@ | |
140 LIBTOOL = @LIBTOOL@ | |
141 LIPO = @LIPO@ | |
142 LN_S = @LN_S@ | |
143 LTLIBOBJS = @LTLIBOBJS@ | |
144 MAKEINFO = @MAKEINFO@ | |
145 MKDIR_P = @MKDIR_P@ | |
146 NM = @NM@ | |
147 NMEDIT = @NMEDIT@ | |
148 OBJDUMP = @OBJDUMP@ | |
149 OBJEXT = @OBJEXT@ | |
150 OTOOL = @OTOOL@ | |
151 OTOOL64 = @OTOOL64@ | |
152 PACKAGE = @PACKAGE@ | |
153 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | |
154 PACKAGE_NAME = @PACKAGE_NAME@ | |
155 PACKAGE_STRING = @PACKAGE_STRING@ | |
156 PACKAGE_TARNAME = @PACKAGE_TARNAME@ | |
157 PACKAGE_URL = @PACKAGE_URL@ | |
158 PACKAGE_VERSION = @PACKAGE_VERSION@ | |
159 PATH_SEPARATOR = @PATH_SEPARATOR@ | |
160 RANLIB = @RANLIB@ | |
161 SED = @SED@ | |
162 SET_MAKE = @SET_MAKE@ | |
163 SHELL = @SHELL@ | |
4 SITELISP := @SITELISP@ | 164 SITELISP := @SITELISP@ |
5 | 165 STRIP = @STRIP@ |
6 LIB_UR := $(LIB)/ur | 166 VERSION = @VERSION@ |
7 LIB_C := $(LIB)/c | 167 abs_builddir = @abs_builddir@ |
8 LIB_JS := $(LIB)/js | 168 abs_srcdir = @abs_srcdir@ |
9 | 169 abs_top_builddir = @abs_top_builddir@ |
10 LIB_VERSION := 1:0 | 170 abs_top_srcdir = @abs_top_srcdir@ |
11 | 171 ac_ct_CC = @ac_ct_CC@ |
12 all: smlnj mlton c | 172 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ |
13 | 173 am__include = @am__include@ |
14 .PHONY: all smlnj mlton c clean install package | 174 am__leading_dot = @am__leading_dot@ |
175 am__quote = @am__quote@ | |
176 am__tar = @am__tar@ | |
177 am__untar = @am__untar@ | |
178 bindir = @bindir@ | |
179 build = @build@ | |
180 build_alias = @build_alias@ | |
181 build_cpu = @build_cpu@ | |
182 build_os = @build_os@ | |
183 build_vendor = @build_vendor@ | |
184 builddir = @builddir@ | |
185 datadir = @datadir@ | |
186 datarootdir = @datarootdir@ | |
187 docdir = @docdir@ | |
188 dvidir = @dvidir@ | |
189 exec_prefix = @exec_prefix@ | |
190 host = @host@ | |
191 host_alias = @host_alias@ | |
192 host_cpu = @host_cpu@ | |
193 host_os = @host_os@ | |
194 host_vendor = @host_vendor@ | |
195 htmldir = @htmldir@ | |
196 includedir = @includedir@ | |
197 infodir = @infodir@ | |
198 install_sh = @install_sh@ | |
199 libdir = @libdir@ | |
200 libexecdir = @libexecdir@ | |
201 localedir = @localedir@ | |
202 localstatedir = @localstatedir@ | |
203 lt_ECHO = @lt_ECHO@ | |
204 mandir = @mandir@ | |
205 mkdir_p = @mkdir_p@ | |
206 oldincludedir = @oldincludedir@ | |
207 pdfdir = @pdfdir@ | |
208 prefix = @prefix@ | |
209 program_transform_name = @program_transform_name@ | |
210 psdir = @psdir@ | |
211 sbindir = @sbindir@ | |
212 sharedstatedir = @sharedstatedir@ | |
213 srcdir = @srcdir@ | |
214 sysconfdir = @sysconfdir@ | |
215 target_alias = @target_alias@ | |
216 top_build_prefix = @top_build_prefix@ | |
217 top_builddir = @top_builddir@ | |
218 top_srcdir = @top_srcdir@ | |
219 LIB_UR := $(LIB)/ur | |
220 LIB_C := $(LIB)/c | |
221 LIB_JS := $(LIB)/js | |
222 SUBDIRS = src/c | |
223 MLTON := mlton | |
224 all: all-recursive | |
225 | |
226 .SUFFIXES: | |
227 am--refresh: | |
228 @: | |
229 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | |
230 @for dep in $?; do \ | |
231 case '$(am__configure_deps)' in \ | |
232 *$$dep*) \ | |
233 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ | |
234 $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ | |
235 && exit 0; \ | |
236 exit 1;; \ | |
237 esac; \ | |
238 done; \ | |
239 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ | |
240 $(am__cd) $(top_srcdir) && \ | |
241 $(AUTOMAKE) --foreign Makefile | |
242 .PRECIOUS: Makefile | |
243 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
244 @case '$?' in \ | |
245 *config.status*) \ | |
246 echo ' $(SHELL) ./config.status'; \ | |
247 $(SHELL) ./config.status;; \ | |
248 *) \ | |
249 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ | |
250 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ | |
251 esac; | |
252 | |
253 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | |
254 $(SHELL) ./config.status --recheck | |
255 | |
256 $(top_srcdir)/configure: $(am__configure_deps) | |
257 $(am__cd) $(srcdir) && $(AUTOCONF) | |
258 $(ACLOCAL_M4): $(am__aclocal_m4_deps) | |
259 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) | |
260 $(am__aclocal_m4_deps): | |
261 src/config.sml: $(top_builddir)/config.status $(top_srcdir)/src/config.sml.in | |
262 cd $(top_builddir) && $(SHELL) ./config.status $@ | |
263 | |
264 mostlyclean-libtool: | |
265 -rm -f *.lo | |
266 | |
267 clean-libtool: | |
268 -rm -rf .libs _libs | |
269 | |
270 distclean-libtool: | |
271 -rm -f libtool config.lt | |
272 | |
273 # This directory's subdirectories are mostly independent; you can cd | |
274 # into them and run `make' without going through this Makefile. | |
275 # To change the values of `make' variables: instead of editing Makefiles, | |
276 # (1) if the variable is set in `config.status', edit `config.status' | |
277 # (which will cause the Makefiles to be regenerated when you run `make'); | |
278 # (2) otherwise, pass the desired values on the `make' command line. | |
279 $(RECURSIVE_TARGETS): | |
280 @failcom='exit 1'; \ | |
281 for f in x $$MAKEFLAGS; do \ | |
282 case $$f in \ | |
283 *=* | --[!k]*);; \ | |
284 *k*) failcom='fail=yes';; \ | |
285 esac; \ | |
286 done; \ | |
287 dot_seen=no; \ | |
288 target=`echo $@ | sed s/-recursive//`; \ | |
289 list='$(SUBDIRS)'; for subdir in $$list; do \ | |
290 echo "Making $$target in $$subdir"; \ | |
291 if test "$$subdir" = "."; then \ | |
292 dot_seen=yes; \ | |
293 local_target="$$target-am"; \ | |
294 else \ | |
295 local_target="$$target"; \ | |
296 fi; \ | |
297 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
298 || eval $$failcom; \ | |
299 done; \ | |
300 if test "$$dot_seen" = "no"; then \ | |
301 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ | |
302 fi; test -z "$$fail" | |
303 | |
304 $(RECURSIVE_CLEAN_TARGETS): | |
305 @failcom='exit 1'; \ | |
306 for f in x $$MAKEFLAGS; do \ | |
307 case $$f in \ | |
308 *=* | --[!k]*);; \ | |
309 *k*) failcom='fail=yes';; \ | |
310 esac; \ | |
311 done; \ | |
312 dot_seen=no; \ | |
313 case "$@" in \ | |
314 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | |
315 *) list='$(SUBDIRS)' ;; \ | |
316 esac; \ | |
317 rev=''; for subdir in $$list; do \ | |
318 if test "$$subdir" = "."; then :; else \ | |
319 rev="$$subdir $$rev"; \ | |
320 fi; \ | |
321 done; \ | |
322 rev="$$rev ."; \ | |
323 target=`echo $@ | sed s/-recursive//`; \ | |
324 for subdir in $$rev; do \ | |
325 echo "Making $$target in $$subdir"; \ | |
326 if test "$$subdir" = "."; then \ | |
327 local_target="$$target-am"; \ | |
328 else \ | |
329 local_target="$$target"; \ | |
330 fi; \ | |
331 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
332 || eval $$failcom; \ | |
333 done && test -z "$$fail" | |
334 tags-recursive: | |
335 list='$(SUBDIRS)'; for subdir in $$list; do \ | |
336 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ | |
337 done | |
338 ctags-recursive: | |
339 list='$(SUBDIRS)'; for subdir in $$list; do \ | |
340 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ | |
341 done | |
342 | |
343 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
344 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
345 unique=`for i in $$list; do \ | |
346 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
347 done | \ | |
348 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
349 END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
350 mkid -fID $$unique | |
351 tags: TAGS | |
352 | |
353 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
354 $(TAGS_FILES) $(LISP) | |
355 set x; \ | |
356 here=`pwd`; \ | |
357 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ | |
358 include_option=--etags-include; \ | |
359 empty_fix=.; \ | |
360 else \ | |
361 include_option=--include; \ | |
362 empty_fix=; \ | |
363 fi; \ | |
364 list='$(SUBDIRS)'; for subdir in $$list; do \ | |
365 if test "$$subdir" = .; then :; else \ | |
366 test ! -f $$subdir/TAGS || \ | |
367 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ | |
368 fi; \ | |
369 done; \ | |
370 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
371 unique=`for i in $$list; do \ | |
372 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
373 done | \ | |
374 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
375 END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
376 shift; \ | |
377 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | |
378 test -n "$$unique" || unique=$$empty_fix; \ | |
379 if test $$# -gt 0; then \ | |
380 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
381 "$$@" $$unique; \ | |
382 else \ | |
383 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
384 $$unique; \ | |
385 fi; \ | |
386 fi | |
387 ctags: CTAGS | |
388 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
389 $(TAGS_FILES) $(LISP) | |
390 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
391 unique=`for i in $$list; do \ | |
392 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
393 done | \ | |
394 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
395 END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
396 test -z "$(CTAGS_ARGS)$$unique" \ | |
397 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | |
398 $$unique | |
399 | |
400 GTAGS: | |
401 here=`$(am__cd) $(top_builddir) && pwd` \ | |
402 && $(am__cd) $(top_srcdir) \ | |
403 && gtags -i $(GTAGS_ARGS) "$$here" | |
404 | |
405 distclean-tags: | |
406 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | |
407 | |
408 distdir: $(DISTFILES) | |
409 $(am__remove_distdir) | |
410 test -d "$(distdir)" || mkdir "$(distdir)" | |
411 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
412 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
413 list='$(DISTFILES)'; \ | |
414 dist_files=`for file in $$list; do echo $$file; done | \ | |
415 sed -e "s|^$$srcdirstrip/||;t" \ | |
416 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | |
417 case $$dist_files in \ | |
418 */*) $(MKDIR_P) `echo "$$dist_files" | \ | |
419 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | |
420 sort -u` ;; \ | |
421 esac; \ | |
422 for file in $$dist_files; do \ | |
423 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | |
424 if test -d $$d/$$file; then \ | |
425 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | |
426 if test -d "$(distdir)/$$file"; then \ | |
427 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
428 fi; \ | |
429 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | |
430 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | |
431 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
432 fi; \ | |
433 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | |
434 else \ | |
435 test -f "$(distdir)/$$file" \ | |
436 || cp -p $$d/$$file "$(distdir)/$$file" \ | |
437 || exit 1; \ | |
438 fi; \ | |
439 done | |
440 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | |
441 if test "$$subdir" = .; then :; else \ | |
442 test -d "$(distdir)/$$subdir" \ | |
443 || $(MKDIR_P) "$(distdir)/$$subdir" \ | |
444 || exit 1; \ | |
445 fi; \ | |
446 done | |
447 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | |
448 if test "$$subdir" = .; then :; else \ | |
449 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ | |
450 $(am__relativize); \ | |
451 new_distdir=$$reldir; \ | |
452 dir1=$$subdir; dir2="$(top_distdir)"; \ | |
453 $(am__relativize); \ | |
454 new_top_distdir=$$reldir; \ | |
455 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ | |
456 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ | |
457 ($(am__cd) $$subdir && \ | |
458 $(MAKE) $(AM_MAKEFLAGS) \ | |
459 top_distdir="$$new_top_distdir" \ | |
460 distdir="$$new_distdir" \ | |
461 am__remove_distdir=: \ | |
462 am__skip_length_check=: \ | |
463 am__skip_mode_fix=: \ | |
464 distdir) \ | |
465 || exit 1; \ | |
466 fi; \ | |
467 done | |
468 -test -n "$(am__skip_mode_fix)" \ | |
469 || find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ | |
470 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ | |
471 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ | |
472 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ | |
473 || chmod -R a+r "$(distdir)" | |
474 dist-gzip: distdir | |
475 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
476 $(am__remove_distdir) | |
477 | |
478 dist-bzip2: distdir | |
479 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 | |
480 $(am__remove_distdir) | |
481 | |
482 dist-lzma: distdir | |
483 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma | |
484 $(am__remove_distdir) | |
485 | |
486 dist-xz: distdir | |
487 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz | |
488 $(am__remove_distdir) | |
489 | |
490 dist-tarZ: distdir | |
491 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z | |
492 $(am__remove_distdir) | |
493 | |
494 dist-shar: distdir | |
495 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz | |
496 $(am__remove_distdir) | |
497 | |
498 dist-zip: distdir | |
499 -rm -f $(distdir).zip | |
500 zip -rq $(distdir).zip $(distdir) | |
501 $(am__remove_distdir) | |
502 | |
503 dist dist-all: distdir | |
504 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
505 $(am__remove_distdir) | |
506 | |
507 # This target untars the dist file and tries a VPATH configuration. Then | |
508 # it guarantees that the distribution is self-contained by making another | |
509 # tarfile. | |
510 distcheck: dist | |
511 case '$(DIST_ARCHIVES)' in \ | |
512 *.tar.gz*) \ | |
513 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ | |
514 *.tar.bz2*) \ | |
515 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ | |
516 *.tar.lzma*) \ | |
517 unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\ | |
518 *.tar.xz*) \ | |
519 xz -dc $(distdir).tar.xz | $(am__untar) ;;\ | |
520 *.tar.Z*) \ | |
521 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ | |
522 *.shar.gz*) \ | |
523 GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ | |
524 *.zip*) \ | |
525 unzip $(distdir).zip ;;\ | |
526 esac | |
527 chmod -R a-w $(distdir); chmod a+w $(distdir) | |
528 mkdir $(distdir)/_build | |
529 mkdir $(distdir)/_inst | |
530 chmod a-w $(distdir) | |
531 test -d $(distdir)/_build || exit 0; \ | |
532 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ | |
533 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ | |
534 && am__cwd=`pwd` \ | |
535 && $(am__cd) $(distdir)/_build \ | |
536 && ../configure --srcdir=.. --prefix="$$dc_install_base" \ | |
537 $(DISTCHECK_CONFIGURE_FLAGS) \ | |
538 && $(MAKE) $(AM_MAKEFLAGS) \ | |
539 && $(MAKE) $(AM_MAKEFLAGS) dvi \ | |
540 && $(MAKE) $(AM_MAKEFLAGS) check \ | |
541 && $(MAKE) $(AM_MAKEFLAGS) install \ | |
542 && $(MAKE) $(AM_MAKEFLAGS) installcheck \ | |
543 && $(MAKE) $(AM_MAKEFLAGS) uninstall \ | |
544 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ | |
545 distuninstallcheck \ | |
546 && chmod -R a-w "$$dc_install_base" \ | |
547 && ({ \ | |
548 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ | |
549 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ | |
550 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ | |
551 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ | |
552 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ | |
553 } || { rm -rf "$$dc_destdir"; exit 1; }) \ | |
554 && rm -rf "$$dc_destdir" \ | |
555 && $(MAKE) $(AM_MAKEFLAGS) dist \ | |
556 && rm -rf $(DIST_ARCHIVES) \ | |
557 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ | |
558 && cd "$$am__cwd" \ | |
559 || exit 1 | |
560 $(am__remove_distdir) | |
561 @(echo "$(distdir) archives ready for distribution: "; \ | |
562 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ | |
563 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' | |
564 distuninstallcheck: | |
565 @$(am__cd) '$(distuninstallcheck_dir)' \ | |
566 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ | |
567 || { echo "ERROR: files left after uninstall:" ; \ | |
568 if test -n "$(DESTDIR)"; then \ | |
569 echo " (check DESTDIR support)"; \ | |
570 fi ; \ | |
571 $(distuninstallcheck_listfiles) ; \ | |
572 exit 1; } >&2 | |
573 distcleancheck: distclean | |
574 @if test '$(srcdir)' = . ; then \ | |
575 echo "ERROR: distcleancheck can only run from a VPATH build" ; \ | |
576 exit 1 ; \ | |
577 fi | |
578 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ | |
579 || { echo "ERROR: files left in build directory after distclean:" ; \ | |
580 $(distcleancheck_listfiles) ; \ | |
581 exit 1; } >&2 | |
582 check-am: all-am | |
583 check: check-recursive | |
584 all-am: Makefile all-local | |
585 installdirs: installdirs-recursive | |
586 installdirs-am: | |
587 install: install-recursive | |
588 install-exec: install-exec-recursive | |
589 install-data: install-data-recursive | |
590 uninstall: uninstall-recursive | |
591 | |
592 install-am: all-am | |
593 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | |
594 | |
595 installcheck: installcheck-recursive | |
596 install-strip: | |
597 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
598 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
599 `test -z '$(STRIP)' || \ | |
600 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | |
601 mostlyclean-generic: | |
602 | |
603 clean-generic: | |
604 | |
605 distclean-generic: | |
606 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | |
607 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | |
608 | |
609 maintainer-clean-generic: | |
610 @echo "This command is intended for maintainers to use" | |
611 @echo "it deletes files that may require special tools to rebuild." | |
612 clean: clean-recursive | |
613 | |
614 clean-am: clean-generic clean-libtool clean-local mostlyclean-am | |
615 | |
616 distclean: distclean-recursive | |
617 -rm -f $(am__CONFIG_DISTCLEAN_FILES) | |
618 -rm -f Makefile | |
619 distclean-am: clean-am distclean-generic distclean-libtool \ | |
620 distclean-tags | |
621 | |
622 dvi: dvi-recursive | |
623 | |
624 dvi-am: | |
625 | |
626 html: html-recursive | |
627 | |
628 html-am: | |
629 | |
630 info: info-recursive | |
631 | |
632 info-am: | |
633 | |
634 install-data-am: | |
635 | |
636 install-dvi: install-dvi-recursive | |
637 | |
638 install-dvi-am: | |
639 | |
640 install-exec-am: install-exec-local | |
641 | |
642 install-html: install-html-recursive | |
643 | |
644 install-html-am: | |
645 | |
646 install-info: install-info-recursive | |
647 | |
648 install-info-am: | |
649 | |
650 install-man: | |
651 | |
652 install-pdf: install-pdf-recursive | |
653 | |
654 install-pdf-am: | |
655 | |
656 install-ps: install-ps-recursive | |
657 | |
658 install-ps-am: | |
659 | |
660 installcheck-am: | |
661 | |
662 maintainer-clean: maintainer-clean-recursive | |
663 -rm -f $(am__CONFIG_DISTCLEAN_FILES) | |
664 -rm -rf $(top_srcdir)/autom4te.cache | |
665 -rm -f Makefile | |
666 maintainer-clean-am: distclean-am maintainer-clean-generic | |
667 | |
668 mostlyclean: mostlyclean-recursive | |
669 | |
670 mostlyclean-am: mostlyclean-generic mostlyclean-libtool | |
671 | |
672 pdf: pdf-recursive | |
673 | |
674 pdf-am: | |
675 | |
676 ps: ps-recursive | |
677 | |
678 ps-am: | |
679 | |
680 uninstall-am: | |
681 | |
682 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ | |
683 install-am install-strip tags-recursive | |
684 | |
685 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ | |
686 all all-am all-local am--refresh check check-am clean \ | |
687 clean-generic clean-libtool clean-local ctags ctags-recursive \ | |
688 dist dist-all dist-bzip2 dist-gzip dist-lzma dist-shar \ | |
689 dist-tarZ dist-xz dist-zip distcheck distclean \ | |
690 distclean-generic distclean-libtool distclean-tags \ | |
691 distcleancheck distdir distuninstallcheck dvi dvi-am html \ | |
692 html-am info info-am install install-am install-data \ | |
693 install-data-am install-dvi install-dvi-am install-exec \ | |
694 install-exec-am install-exec-local install-html \ | |
695 install-html-am install-info install-info-am install-man \ | |
696 install-pdf install-pdf-am install-ps install-ps-am \ | |
697 install-strip installcheck installcheck-am installdirs \ | |
698 installdirs-am maintainer-clean maintainer-clean-generic \ | |
699 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ | |
700 ps ps-am tags tags-recursive uninstall uninstall-am | |
701 | |
702 | |
703 all-local: smlnj mlton | |
704 | |
705 .PHONY: smlnj mlton package | |
15 | 706 |
16 smlnj: src/urweb.cm | 707 smlnj: src/urweb.cm |
17 mlton: bin/urweb | 708 mlton: bin/urweb |
18 | 709 |
19 OBJS := memmem mhash urweb request queue http cgi fastcgi | 710 clean-local: |
20 SOS := urweb urweb_http urweb_cgi urweb_fastcgi | |
21 c: $(OBJS:%=lib/c/%.lo) $(SOS:%=lib/c/lib%.la) | |
22 | |
23 clean: | |
24 rm -f src/*.mlton.grm.* src/*.mlton.lex.* \ | 711 rm -f src/*.mlton.grm.* src/*.mlton.lex.* \ |
25 src/urweb.cm src/urweb.mlb \ | 712 src/urweb.cm src/urweb.mlb |
26 lib/c/*.o lib/c/*.so.* | |
27 rm -rf .cm src/.cm | 713 rm -rf .cm src/.cm |
28 | |
29 lib/c/%.lo: src/c/%.c include/*.h | |
30 libtool --mode=compile gcc -Wimplicit -O3 -I include -c $< -o $@ $(CFLAGS) | |
31 | |
32 LIBARGS := -rpath $(LIB)/.. -version-info $(LIB_VERSION) | |
33 | |
34 URWEB_OS := memmem urweb queue request mhash | |
35 lib/c/liburweb.la: $(URWEB_OS:%=lib/c/%.lo) | |
36 libtool --mode=link gcc -o $@ $^ $(LIBARGS) | |
37 | |
38 lib/c/liburweb_%.la: lib/c/%.lo | |
39 libtool --mode=link gcc -o $@ $^ $(LIBARGS) | |
40 | 714 |
41 src/urweb.cm: src/prefix.cm src/sources | 715 src/urweb.cm: src/prefix.cm src/sources |
42 cat src/prefix.cm src/sources \ | 716 cat src/prefix.cm src/sources \ |
43 >src/urweb.cm | 717 >src/urweb.cm |
44 | 718 |
57 mllex $< | 731 mllex $< |
58 | 732 |
59 %.mlton.grm.sig %.mlton.grm.sml: %.mlton.grm | 733 %.mlton.grm.sig %.mlton.grm.sml: %.mlton.grm |
60 mlyacc $< | 734 mlyacc $< |
61 | 735 |
62 MLTON := mlton | 736 #ifdef DEBUG |
63 | 737 # MLTON += -const 'Exn.keepHistory true' |
64 ifdef DEBUG | 738 #endif |
65 MLTON += -const 'Exn.keepHistory true' | 739 |
66 endif | 740 #ifdef PROFILE |
67 | 741 # MLTON += -profile $(PROFILE) |
68 ifdef PROFILE | 742 #endif |
69 MLTON += -profile $(PROFILE) | |
70 endif | |
71 | 743 |
72 bin/urweb: src/compiler.mlb src/urweb.mlb src/*.sig src/*.sml \ | 744 bin/urweb: src/compiler.mlb src/urweb.mlb src/*.sig src/*.sml \ |
73 src/urweb.mlton.lex.sml \ | 745 src/urweb.mlton.lex.sml \ |
74 src/urweb.mlton.grm.sig src/urweb.mlton.grm.sml | 746 src/urweb.mlton.grm.sig src/urweb.mlton.grm.sml |
75 $(MLTON) -output $@ src/compiler.mlb | 747 $(MLTON) -output $@ src/compiler.mlb |
76 | 748 |
77 install: | 749 install-exec-local: |
78 mkdir -p $(BIN) | 750 mkdir -p $(BIN) |
79 cp bin/urweb $(BIN)/ | 751 cp bin/urweb $(BIN)/ |
80 mkdir -p $(LIB_UR) | 752 mkdir -p $(LIB_UR) |
81 cp lib/ur/*.urs $(LIB_UR)/ | 753 cp lib/ur/*.urs $(LIB_UR)/ |
82 cp lib/ur/*.ur $(LIB_UR)/ | 754 cp lib/ur/*.ur $(LIB_UR)/ |
83 mkdir -p $(LIB_C) | |
84 cp lib/c/*.o $(LIB_C)/ | |
85 mkdir -p $(LIB_JS) | 755 mkdir -p $(LIB_JS) |
86 cp lib/js/*.js $(LIB_JS)/ | 756 cp lib/js/*.js $(LIB_JS)/ |
87 mkdir -p $(INCLUDE) | 757 mkdir -p $(INCLUDE) |
88 cp include/*.h $(INCLUDE)/ | 758 cp include/*.h $(INCLUDE)/ |
89 mkdir -p $(SITELISP) | 759 mkdir -p $(SITELISP) |
90 cp src/elisp/*.el $(SITELISP)/ | 760 cp src/elisp/*.el $(SITELISP)/ |
91 libtool --silent --mode=install install -c lib/c/liburweb.la $(LIB)/../liburweb.la | 761 ldconfig |
92 libtool --silent --mode=install install -c lib/c/liburweb_http.la $(LIB)/../liburweb_http.la | |
93 libtool --silent --mode=install install -c lib/c/liburweb_cgi.la $(LIB)/../liburweb_cgi.la | |
94 libtool --silent --mode=install install -c lib/c/liburweb_fastcgi.la $(LIB)/../liburweb_fastcgi.la | |
95 libtool --silent --finish $(LIB)/../liburweb.la | |
96 libtool --silent --finish $(LIB)/../liburweb_http.la | |
97 libtool --silent --finish $(LIB)/../liburweb_cgi.la | |
98 libtool --silent --finish $(LIB)/../liburweb_fastcgi.la | |
99 | 762 |
100 package: | 763 package: |
101 hg archive -t tgz -X tests /tmp/urweb.tgz | 764 hg archive -t tgz -X tests /tmp/urweb.tgz |
765 | |
766 # Tell versions [3.59,3.63) of GNU make to not export all variables. | |
767 # Otherwise a system limit (for SysV at least) may be exceeded. | |
768 .NOEXPORT: |