Mercurial > vim
comparison src/Makefile @ 2370:454f314d0e61 vim73
Make it possible to load Perl dynamically on Unix. (James Vega)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 21 Jul 2010 22:05:20 +0200 |
parents | 12b829477c60 |
children | f149bb1cf5be |
comparison
equal
deleted
inserted
replaced
2369:435b5c6a5191 | 2370:454f314d0e61 |
---|---|
382 #CONF_OPT_PLTHOME = --with-plthome=/usr/local/plt | 382 #CONF_OPT_PLTHOME = --with-plthome=/usr/local/plt |
383 #CONF_OPT_PLTHOME = --with-plthome=/usr/local/drscheme | 383 #CONF_OPT_PLTHOME = --with-plthome=/usr/local/drscheme |
384 #CONF_OPT_PLTHOME = --with-plthome=/home/me/mz | 384 #CONF_OPT_PLTHOME = --with-plthome=/home/me/mz |
385 | 385 |
386 # PERL | 386 # PERL |
387 # Uncomment this when you want to include the Perl interface. | 387 # Uncomment one of these when you want to include the Perl interface. |
388 # First one is for static linking, second one for dynamic loading. | |
388 # The Perl option sometimes causes problems, because it adds extra flags | 389 # The Perl option sometimes causes problems, because it adds extra flags |
390 # | |
389 # to the command line. If you see strange flags during compilation, check in | 391 # to the command line. If you see strange flags during compilation, check in |
390 # auto/config.mk where they come from. If it's PERL_CFLAGS, try commenting | 392 # auto/config.mk where they come from. If it's PERL_CFLAGS, try commenting |
391 # the next line. | 393 # the next line. |
392 # When you get an error for a missing "perl.exp" file, try creating an emtpy | 394 # When you get an error for a missing "perl.exp" file, try creating an emtpy |
393 # one: "touch perl.exp". | 395 # one: "touch perl.exp". |
394 # This requires at least "small" features, "tiny" doesn't work. | 396 # This requires at least "small" features, "tiny" doesn't work. |
395 #CONF_OPT_PERL = --enable-perlinterp | 397 #CONF_OPT_PERL = --enable-perlinterp |
398 #CONF_OPT_PERL = --enable-perlinterp=dynamic | |
396 | 399 |
397 # PYTHON | 400 # PYTHON |
398 # Uncomment this when you want to include the Python interface. | 401 # Uncomment this when you want to include the Python interface. |
399 # NOTE: This may cause threading to be enabled, which has side effects (such | 402 # NOTE: This may cause threading to be enabled, which has side effects (such |
400 # as using different libraries and debugging becomes more difficult). | 403 # as using different libraries and debugging becomes more difficult). |
1309 | 1312 |
1310 .SUFFIXES: | 1313 .SUFFIXES: |
1311 .SUFFIXES: .c .o .pro | 1314 .SUFFIXES: .c .o .pro |
1312 | 1315 |
1313 PRE_DEFS = -Iproto $(DEFS) $(GUI_DEFS) $(GUI_IPATH) $(CPPFLAGS) $(EXTRA_IPATHS) | 1316 PRE_DEFS = -Iproto $(DEFS) $(GUI_DEFS) $(GUI_IPATH) $(CPPFLAGS) $(EXTRA_IPATHS) |
1314 POST_DEFS = $(X_CFLAGS) $(LUA_CFLAGS) $(MZSCHEME_CFLAGS) $(PERL_CFLAGS) $(ECL_CFLAGS) $(TCL_CFLAGS) $(RUBY_CFLAGS) $(EXTRA_DEFS) | 1317 POST_DEFS = $(X_CFLAGS) $(LUA_CFLAGS) $(MZSCHEME_CFLAGS) $(TCL_CFLAGS) $(RUBY_CFLAGS) $(EXTRA_DEFS) |
1315 | 1318 |
1316 ALL_CFLAGS = $(PRE_DEFS) $(CFLAGS) $(PROFILE_CFLAGS) $(POST_DEFS) | 1319 ALL_CFLAGS = $(PRE_DEFS) $(CFLAGS) $(PROFILE_CFLAGS) $(POST_DEFS) |
1317 | 1320 |
1318 # Exclude $CFLAGS for osdef.sh, for Mac 10.4 some flags don't work together | 1321 # Exclude $CFLAGS for osdef.sh, for Mac 10.4 some flags don't work together |
1319 # with "-E". | 1322 # with "-E". |
2492 | 2495 |
2493 mzscheme_base.c: | 2496 mzscheme_base.c: |
2494 $(MZSCHEME_MZC) --c-mods mzscheme_base.c ++lib scheme/base | 2497 $(MZSCHEME_MZC) --c-mods mzscheme_base.c ++lib scheme/base |
2495 | 2498 |
2496 objects/if_perl.o: auto/if_perl.c | 2499 objects/if_perl.o: auto/if_perl.c |
2497 $(CCC) -o $@ auto/if_perl.c | 2500 $(CCC) $(PERL_CFLAGS) -o $@ auto/if_perl.c |
2498 | 2501 |
2499 objects/if_perlsfio.o: if_perlsfio.c | 2502 objects/if_perlsfio.o: if_perlsfio.c |
2500 $(CCC) -o $@ if_perlsfio.c | 2503 $(CCC) $(PERL_CFLAGS) -o $@ if_perlsfio.c |
2501 | 2504 |
2502 objects/py_config.o: $(PYTHON_CONFDIR)/config.c | 2505 objects/py_config.o: $(PYTHON_CONFDIR)/config.c |
2503 $(CCC) $(PYTHON_CFLAGS) -o $@ $(PYTHON_CONFDIR)/config.c \ | 2506 $(CCC) $(PYTHON_CFLAGS) -o $@ $(PYTHON_CONFDIR)/config.c \ |
2504 -I$(PYTHON_CONFDIR) -DHAVE_CONFIG_H -DNO_MAIN | 2507 -I$(PYTHON_CONFDIR) -DHAVE_CONFIG_H -DNO_MAIN |
2505 | 2508 |