Mercurial > vim
comparison src/Makefile @ 2320:966a5609669e vim73
Added Lua interfae. (Luis Carvalho)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 14 Jul 2010 23:23:17 +0200 |
parents | 543ea69d037f |
children | ad2889f48843 |
comparison
equal
deleted
inserted
replaced
2319:c79ccf947487 | 2320:966a5609669e |
---|---|
36 # This can speedup Vim startup but Vim loses the ability to catch the | 36 # This can speedup Vim startup but Vim loses the ability to catch the |
37 # user logging out from session-managers like GNOME and work | 37 # user logging out from session-managers like GNOME and work |
38 # could be lost. | 38 # could be lost. |
39 # - Uncomment one or more of these lines to include an interface; | 39 # - Uncomment one or more of these lines to include an interface; |
40 # each makes Vim quite a bit bigger: | 40 # each makes Vim quite a bit bigger: |
41 # --enable-luainterp for Lua interpreter | |
41 # --enable-perlinterp for Perl interpreter | 42 # --enable-perlinterp for Perl interpreter |
42 # --enable-pythoninterp for Python interpreter | 43 # --enable-pythoninterp for Python interpreter |
43 # --enable-rubyinterp for Ruby interpreter | 44 # --enable-rubyinterp for Ruby interpreter |
44 # --enable-tclinterp for Tcl interpreter | 45 # --enable-tclinterp for Tcl interpreter |
45 # --enable-cscope for Cscope interface | 46 # --enable-cscope for Cscope interface |
393 # Uncomment this when you want to include the Ruby interface. | 394 # Uncomment this when you want to include the Ruby interface. |
394 # Note: you need the development package (e.g., ruby1.9.1-dev on Ubuntu). | 395 # Note: you need the development package (e.g., ruby1.9.1-dev on Ubuntu). |
395 #CONF_OPT_RUBY = --enable-rubyinterp | 396 #CONF_OPT_RUBY = --enable-rubyinterp |
396 #CONF_OPT_RUBY = --enable-rubyinterp --with-ruby-command=ruby1.9.1 | 397 #CONF_OPT_RUBY = --enable-rubyinterp --with-ruby-command=ruby1.9.1 |
397 | 398 |
399 # LUA | |
400 # Uncomment this when you want to include the Lua interface. | |
401 #CONF_OPT_LUA = --enable-luainterp | |
402 # Lua installation dir (also in LUA_PREFIX environment variable) | |
403 #CONF_OPT_LUA_PREFIX = --with-lua-prefix=/usr/local | |
404 #CONF_OPT_LUA_PREFIX = --with-lua-prefix=/usr | |
405 | |
398 # MZSCHEME | 406 # MZSCHEME |
399 # Uncomment this when you want to include the MzScheme interface. | 407 # Uncomment this when you want to include the MzScheme interface. |
400 #CONF_OPT_MZSCHEME = --enable-mzschemeinterp | 408 #CONF_OPT_MZSCHEME = --enable-mzschemeinterp |
401 # PLT/mrscheme/drscheme Home dir; the PLTHOME environment variable also works | 409 # PLT/mrscheme/drscheme Home dir; the PLTHOME environment variable also works |
402 #CONF_OPT_PLTHOME = --with-plthome=/usr/local/plt | 410 #CONF_OPT_PLTHOME = --with-plthome=/usr/local/plt |
1294 | 1302 |
1295 .SUFFIXES: | 1303 .SUFFIXES: |
1296 .SUFFIXES: .c .o .pro | 1304 .SUFFIXES: .c .o .pro |
1297 | 1305 |
1298 PRE_DEFS = -Iproto $(DEFS) $(GUI_DEFS) $(GUI_IPATH) $(CPPFLAGS) $(EXTRA_IPATHS) | 1306 PRE_DEFS = -Iproto $(DEFS) $(GUI_DEFS) $(GUI_IPATH) $(CPPFLAGS) $(EXTRA_IPATHS) |
1299 POST_DEFS = $(X_CFLAGS) $(MZSCHEME_CFLAGS) $(PERL_CFLAGS) $(ECL_CFLAGS) $(PYTHON_CFLAGS) $(TCL_CFLAGS) $(RUBY_CFLAGS) $(EXTRA_DEFS) | 1307 POST_DEFS = $(X_CFLAGS) $(LUA_CFLAGS) $(MZSCHEME_CFLAGS) $(PERL_CFLAGS) $(ECL_CFLAGS) $(PYTHON_CFLAGS) $(TCL_CFLAGS) $(RUBY_CFLAGS) $(EXTRA_DEFS) |
1300 | 1308 |
1301 ALL_CFLAGS = $(PRE_DEFS) $(CFLAGS) $(PROFILE_CFLAGS) $(POST_DEFS) | 1309 ALL_CFLAGS = $(PRE_DEFS) $(CFLAGS) $(PROFILE_CFLAGS) $(POST_DEFS) |
1302 | 1310 |
1303 # Exclude $CFLAGS for osdef.sh, for Mac 10.4 some flags don't work together | 1311 # Exclude $CFLAGS for osdef.sh, for Mac 10.4 some flags don't work together |
1304 # with "-E". | 1312 # with "-E". |
1309 LINT_EXTRA = -DUSE_SNIFF -DHANGUL_INPUT -D"__attribute__(x)=" | 1317 LINT_EXTRA = -DUSE_SNIFF -DHANGUL_INPUT -D"__attribute__(x)=" |
1310 | 1318 |
1311 DEPEND_CFLAGS = -DPROTO -DDEPEND -DFEAT_GUI $(LINT_CFLAGS) | 1319 DEPEND_CFLAGS = -DPROTO -DDEPEND -DFEAT_GUI $(LINT_CFLAGS) |
1312 | 1320 |
1313 ALL_LIB_DIRS = $(GUI_LIBS_DIR) $(X_LIBS_DIR) | 1321 ALL_LIB_DIRS = $(GUI_LIBS_DIR) $(X_LIBS_DIR) |
1314 ALL_LIBS = $(GUI_LIBS1) $(GUI_X_LIBS) $(GUI_LIBS2) $(X_PRE_LIBS) $(X_LIBS) $(X_EXTRA_LIBS) $(LIBS) $(EXTRA_LIBS) $(MZSCHEME_LIBS) $(PERL_LIBS) $(PYTHON_LIBS) $(TCL_LIBS) $(RUBY_LIBS) $(PROFILE_LIBS) | 1322 ALL_LIBS = $(GUI_LIBS1) $(GUI_X_LIBS) $(GUI_LIBS2) $(X_PRE_LIBS) $(X_LIBS) $(X_EXTRA_LIBS) $(LIBS) $(EXTRA_LIBS) $(LUA_LIBS) $(MZSCHEME_LIBS) $(PERL_LIBS) $(PYTHON_LIBS) $(TCL_LIBS) $(RUBY_LIBS) $(PROFILE_LIBS) |
1315 | 1323 |
1316 # abbreviations | 1324 # abbreviations |
1317 DEST_BIN = $(DESTDIR)$(BINDIR) | 1325 DEST_BIN = $(DESTDIR)$(BINDIR) |
1318 DEST_VIM = $(DESTDIR)$(VIMLOC) | 1326 DEST_VIM = $(DESTDIR)$(VIMLOC) |
1319 DEST_RT = $(DESTDIR)$(VIMRTLOC) | 1327 DEST_RT = $(DESTDIR)$(VIMRTLOC) |
1412 undo.c \ | 1420 undo.c \ |
1413 version.c \ | 1421 version.c \ |
1414 window.c \ | 1422 window.c \ |
1415 $(OS_EXTRA_SRC) | 1423 $(OS_EXTRA_SRC) |
1416 | 1424 |
1417 SRC = $(BASIC_SRC) $(GUI_SRC) $(HANGULIN_SRC) $(MZSCHEME_SRC) \ | 1425 SRC = $(BASIC_SRC) $(GUI_SRC) $(HANGULIN_SRC) $(LUA_SRC) $(MZSCHEME_SRC) \ |
1418 $(PERL_SRC) $(PYTHON_SRC) $(TCL_SRC) $(RUBY_SRC) \ | 1426 $(PERL_SRC) $(PYTHON_SRC) $(TCL_SRC) $(RUBY_SRC) \ |
1419 $(SNIFF_SRC) $(WORKSHOP_SRC) $(WSDEBUG_SRC) | 1427 $(SNIFF_SRC) $(WORKSHOP_SRC) $(WSDEBUG_SRC) |
1420 | 1428 |
1421 TAGS_SRC = *.c *.cpp if_perl.xs | 1429 TAGS_SRC = *.c *.cpp if_perl.xs |
1422 | 1430 |
1423 EXTRA_SRC = hangulin.c if_mzsch.c auto/if_perl.c if_perlsfio.c \ | 1431 EXTRA_SRC = hangulin.c if_lua.c if_mzsch.c auto/if_perl.c if_perlsfio.c \ |
1424 if_python.c if_tcl.c if_ruby.c if_sniff.c gui_beval.c \ | 1432 if_python.c if_tcl.c if_ruby.c if_sniff.c gui_beval.c \ |
1425 workshop.c wsdebug.c integration.c netbeans.c | 1433 workshop.c wsdebug.c integration.c netbeans.c |
1426 | 1434 |
1427 # All sources, also the ones that are not configured | 1435 # All sources, also the ones that are not configured |
1428 ALL_SRC = $(BASIC_SRC) $(ALL_GUI_SRC) $(EXTRA_SRC) | 1436 ALL_SRC = $(BASIC_SRC) $(ALL_GUI_SRC) $(EXTRA_SRC) |
1485 objects/term.o \ | 1493 objects/term.o \ |
1486 objects/ui.o \ | 1494 objects/ui.o \ |
1487 objects/undo.o \ | 1495 objects/undo.o \ |
1488 objects/window.o \ | 1496 objects/window.o \ |
1489 $(GUI_OBJ) \ | 1497 $(GUI_OBJ) \ |
1498 $(LUA_OBJ) \ | |
1490 $(MZSCHEME_OBJ) \ | 1499 $(MZSCHEME_OBJ) \ |
1491 $(PERL_OBJ) \ | 1500 $(PERL_OBJ) \ |
1492 $(PYTHON_OBJ) \ | 1501 $(PYTHON_OBJ) \ |
1493 $(TCL_OBJ) \ | 1502 $(TCL_OBJ) \ |
1494 $(RUBY_OBJ) \ | 1503 $(RUBY_OBJ) \ |
1585 $(CONF_OPT_CSCOPE) $(CONF_OPT_MULTIBYTE) $(CONF_OPT_INPUT) \ | 1594 $(CONF_OPT_CSCOPE) $(CONF_OPT_MULTIBYTE) $(CONF_OPT_INPUT) \ |
1586 $(CONF_OPT_OUTPUT) $(CONF_OPT_GPM) $(CONF_OPT_WORKSHOP) \ | 1595 $(CONF_OPT_OUTPUT) $(CONF_OPT_GPM) $(CONF_OPT_WORKSHOP) \ |
1587 $(CONF_OPT_SNIFF) $(CONF_OPT_FEAT) $(CONF_TERM_LIB) \ | 1596 $(CONF_OPT_SNIFF) $(CONF_OPT_FEAT) $(CONF_TERM_LIB) \ |
1588 $(CONF_OPT_COMPBY) $(CONF_OPT_ACL) $(CONF_OPT_NETBEANS) \ | 1597 $(CONF_OPT_COMPBY) $(CONF_OPT_ACL) $(CONF_OPT_NETBEANS) \ |
1589 $(CONF_ARGS) $(CONF_OPT_MZSCHEME) $(CONF_OPT_PLTHOME) \ | 1598 $(CONF_ARGS) $(CONF_OPT_MZSCHEME) $(CONF_OPT_PLTHOME) \ |
1599 $(CONF_OPT_LUA) $(CONF_OPT_LUA_PREFIX) \ | |
1590 $(CONF_OPT_SYSMOUSE) | 1600 $(CONF_OPT_SYSMOUSE) |
1591 | 1601 |
1592 # Use "make reconfig" to rerun configure without cached values. | 1602 # Use "make reconfig" to rerun configure without cached values. |
1593 # When config.h changes, most things will be recompiled automatically. | 1603 # When config.h changes, most things will be recompiled automatically. |
1594 # Invoke $(MAKE) to run config with the empty auto/config.mk. | 1604 # Invoke $(MAKE) to run config with the empty auto/config.mk. |
2437 $(CCC) -o $@ if_cscope.c | 2447 $(CCC) -o $@ if_cscope.c |
2438 | 2448 |
2439 objects/if_xcmdsrv.o: if_xcmdsrv.c | 2449 objects/if_xcmdsrv.o: if_xcmdsrv.c |
2440 $(CCC) -o $@ if_xcmdsrv.c | 2450 $(CCC) -o $@ if_xcmdsrv.c |
2441 | 2451 |
2452 objects/if_lua.o: if_lua.c | |
2453 $(CCC) -o $@ if_lua.c | |
2454 | |
2442 objects/if_mzsch.o: if_mzsch.c $(MZSCHEME_EXTRA) | 2455 objects/if_mzsch.o: if_mzsch.c $(MZSCHEME_EXTRA) |
2443 $(CCC) -o $@ $(MZSCHEME_CFLAGS_EXTRA) if_mzsch.c | 2456 $(CCC) -o $@ $(MZSCHEME_CFLAGS_EXTRA) if_mzsch.c |
2444 | 2457 |
2445 mzscheme_base.c: | 2458 mzscheme_base.c: |
2446 $(MZSCHEME_MZC) --c-mods mzscheme_base.c ++lib scheme/base | 2459 $(MZSCHEME_MZC) --c-mods mzscheme_base.c ++lib scheme/base |
2943 proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h | 2956 proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h |
2944 objects/hangulin.o: hangulin.c vim.h auto/config.h feature.h os_unix.h \ | 2957 objects/hangulin.o: hangulin.c vim.h auto/config.h feature.h os_unix.h \ |
2945 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ | 2958 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ |
2946 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ | 2959 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ |
2947 globals.h farsi.h arabic.h | 2960 globals.h farsi.h arabic.h |
2961 objects/if_lua.o: if_lua.c vim.h auto/config.h feature.h os_unix.h \ | |
2962 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ | |
2963 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ | |
2964 globals.h farsi.h arabic.h | |
2948 objects/if_mzsch.o: if_mzsch.c vim.h auto/config.h feature.h os_unix.h \ | 2965 objects/if_mzsch.o: if_mzsch.c vim.h auto/config.h feature.h os_unix.h \ |
2949 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ | 2966 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ |
2950 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ | 2967 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ |
2951 globals.h farsi.h arabic.h if_mzsch.h mzscheme_base.c | 2968 globals.h farsi.h arabic.h if_mzsch.h mzscheme_base.c |
2952 objects/if_perl.o: auto/if_perl.c vim.h auto/config.h feature.h os_unix.h \ | 2969 objects/if_perl.o: auto/if_perl.c vim.h auto/config.h feature.h os_unix.h \ |