comparison src/Makefile @ 2340:99c1eba60b2d vim73

Make automatic prototype generation work with more interfaces.
author Bram Moolenaar <bram@vim.org>
date Sun, 18 Jul 2010 18:04:50 +0200
parents 3840b7508835
children f6540762173d
comparison
equal deleted inserted replaced
2339:01e4b4d37842 2340:99c1eba60b2d
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-luainterp for Lua interpreter
42 # --enable-mzschemeinterp for MzScheme interpreter
42 # --enable-perlinterp for Perl interpreter 43 # --enable-perlinterp for Perl interpreter
44 # --enable-python3interp for Python3 interpreter
43 # --enable-pythoninterp for Python interpreter 45 # --enable-pythoninterp for Python interpreter
44 # --enable-python3interp for Python3 interpreter
45 # --enable-rubyinterp for Ruby interpreter 46 # --enable-rubyinterp for Ruby interpreter
46 # --enable-tclinterp for Tcl interpreter 47 # --enable-tclinterp for Tcl interpreter
47 # --enable-cscope for Cscope interface 48 # --enable-cscope for Cscope interface
48 # - Uncomment one of the lines with --with-features= to enable a set of 49 # - Uncomment one of the lines with --with-features= to enable a set of
49 # features (but not the interfaces just mentioned). 50 # features (but not the interfaces just mentioned).
366 # when including Perl, Python, etc. 367 # when including Perl, Python, etc.
367 #CONF_OPT_DARWIN = --with-mac-arch=i386 368 #CONF_OPT_DARWIN = --with-mac-arch=i386
368 #CONF_OPT_DARWIN = --with-mac-arch=ppc 369 #CONF_OPT_DARWIN = --with-mac-arch=ppc
369 #CONF_OPT_DARWIN = --with-mac-arch=both 370 #CONF_OPT_DARWIN = --with-mac-arch=both
370 371
372 # LUA
373 # Uncomment this when you want to include the Lua interface.
374 #CONF_OPT_LUA = --enable-luainterp
375 # Lua installation dir (when not set uses $LUA_PREFIX or defaults to /usr)
376 #CONF_OPT_LUA_PREFIX = --with-lua-prefix=/usr/local
377
378 # MZSCHEME
379 # Uncomment this when you want to include the MzScheme interface.
380 #CONF_OPT_MZSCHEME = --enable-mzschemeinterp
381 # PLT/mrscheme/drscheme Home dir; the PLTHOME environment variable also works
382 #CONF_OPT_PLTHOME = --with-plthome=/usr/local/plt
383 #CONF_OPT_PLTHOME = --with-plthome=/usr/local/drscheme
384 #CONF_OPT_PLTHOME = --with-plthome=/home/me/mz
385
371 # PERL 386 # PERL
372 # Uncomment this when you want to include the Perl interface. 387 # Uncomment this when you want to include the Perl interface.
373 # The Perl option sometimes causes problems, because it adds extra flags 388 # The Perl option sometimes causes problems, because it adds extra flags
374 # to the command line. If you see strange flags during compilation, check in 389 # to the command line. If you see strange flags during compilation, check in
375 # auto/config.mk where they come from. If it's PERL_CFLAGS, try commenting 390 # auto/config.mk where they come from. If it's PERL_CFLAGS, try commenting
389 # If both python2.x and python3.x are enabled then the linking will be via 404 # If both python2.x and python3.x are enabled then the linking will be via
390 # dlopen(), dlsym(), dlclose(), i.e. pythonX.Y.so must be available 405 # dlopen(), dlsym(), dlclose(), i.e. pythonX.Y.so must be available
391 #CONF_OPT_PYTHON = --enable-pythoninterp 406 #CONF_OPT_PYTHON = --enable-pythoninterp
392 #CONF_OPT_PYTHON3 = --enable-python3interp 407 #CONF_OPT_PYTHON3 = --enable-python3interp
393 408
394 # TCL
395 # Uncomment this when you want to include the Tcl interface.
396 #CONF_OPT_TCL = --enable-tclinterp
397 #CONF_OPT_TCL = --enable-tclinterp --with-tclsh=tclsh8.4
398
399 # RUBY 409 # RUBY
400 # Uncomment this when you want to include the Ruby interface. 410 # Uncomment this when you want to include the Ruby interface.
401 # Note: you need the development package (e.g., ruby1.9.1-dev on Ubuntu). 411 # Note: you need the development package (e.g., ruby1.9.1-dev on Ubuntu).
402 #CONF_OPT_RUBY = --enable-rubyinterp 412 #CONF_OPT_RUBY = --enable-rubyinterp
403 #CONF_OPT_RUBY = --enable-rubyinterp --with-ruby-command=ruby1.9.1 413 #CONF_OPT_RUBY = --enable-rubyinterp --with-ruby-command=ruby1.9.1
404 414
405 # LUA 415 # TCL
406 # Uncomment this when you want to include the Lua interface. 416 # Uncomment this when you want to include the Tcl interface.
407 #CONF_OPT_LUA = --enable-luainterp 417 #CONF_OPT_TCL = --enable-tclinterp
408 # Lua installation dir (when not set uses $LUA_PREFIX or defaults to /usr) 418 #CONF_OPT_TCL = --enable-tclinterp --with-tclsh=tclsh8.4
409 #CONF_OPT_LUA_PREFIX = --with-lua-prefix=/usr/local
410
411 # MZSCHEME
412 # Uncomment this when you want to include the MzScheme interface.
413 #CONF_OPT_MZSCHEME = --enable-mzschemeinterp
414 # PLT/mrscheme/drscheme Home dir; the PLTHOME environment variable also works
415 #CONF_OPT_PLTHOME = --with-plthome=/usr/local/plt
416 #CONF_OPT_PLTHOME = --with-plthome=/usr/local/drscheme
417 #CONF_OPT_PLTHOME = --with-plthome=/home/me/mz
418 419
419 # CSCOPE 420 # CSCOPE
420 # Uncomment this when you want to include the Cscope interface. 421 # Uncomment this when you want to include the Cscope interface.
421 #CONF_OPT_CSCOPE = --enable-cscope 422 #CONF_OPT_CSCOPE = --enable-cscope
422 423
543 #CFLAGS = -O6 -fno-strength-reduce -Wall -Wshadow -Wmissing-prototypes 544 #CFLAGS = -O6 -fno-strength-reduce -Wall -Wshadow -Wmissing-prototypes
544 #CFLAGS = -g -DDEBUG -Wall -Wshadow -Wmissing-prototypes 545 #CFLAGS = -g -DDEBUG -Wall -Wshadow -Wmissing-prototypes
545 #CFLAGS = -g -O2 '-DSTARTUPTIME="vimstartup"' -fno-strength-reduce -Wall -Wmissing-prototypes 546 #CFLAGS = -g -O2 '-DSTARTUPTIME="vimstartup"' -fno-strength-reduce -Wall -Wmissing-prototypes
546 547
547 # Use this with GCC to check for mistakes, unused arguments, etc. 548 # Use this with GCC to check for mistakes, unused arguments, etc.
548 #CFLAGS = -g -Wall -Wextra -Wmissing-prototypes -Wunreachable-code -D_FORTIFY_SOURCE=1 549 #CFLAGS = -g -Wall -Wextra -Wmissing-prototypes -Wunreachable-code -D_FORTIFY_SOURCE=1 -DU_DEBUG
550 #CFLAGS = -g -O2 -Wall -Wextra -Wmissing-prototypes -D_FORTIFY_SOURCE=1 -DU_DEBUG
549 #PYTHON_CFLAGS_EXTRA = -Wno-missing-field-initializers 551 #PYTHON_CFLAGS_EXTRA = -Wno-missing-field-initializers
550 #MZSCHEME_CFLAGS_EXTRA = -Wno-unreachable-code -Wno-unused-parameter 552 #MZSCHEME_CFLAGS_EXTRA = -Wno-unreachable-code -Wno-unused-parameter
551 553
552 # EFENCE - Electric-Fence malloc debugging: catches memory accesses beyond 554 # EFENCE - Electric-Fence malloc debugging: catches memory accesses beyond
553 # allocated memory (and makes every malloc()/free() very slow). 555 # allocated memory (and makes every malloc()/free() very slow).
1315 1317
1316 # Exclude $CFLAGS for osdef.sh, for Mac 10.4 some flags don't work together 1318 # Exclude $CFLAGS for osdef.sh, for Mac 10.4 some flags don't work together
1317 # with "-E". 1319 # with "-E".
1318 OSDEF_CFLAGS = $(PRE_DEFS) $(POST_DEFS) 1320 OSDEF_CFLAGS = $(PRE_DEFS) $(POST_DEFS)
1319 1321
1320 LINT_CFLAGS = -DLINT -I. $(PRE_DEFS) $(POST_DEFS) -Dinline= -D__extension__= -Dalloca=alloca 1322 LINT_CFLAGS = -DLINT -I. $(PRE_DEFS) $(POST_DEFS) $(PYTHON_CFLAGS) -Dinline= -D__extension__= -Dalloca=alloca
1321 1323
1322 LINT_EXTRA = -DUSE_SNIFF -DHANGUL_INPUT -D"__attribute__(x)=" 1324 LINT_EXTRA = -DUSE_SNIFF -DHANGUL_INPUT -D"__attribute__(x)="
1323 1325
1324 DEPEND_CFLAGS = -DPROTO -DDEPEND -DFEAT_GUI $(LINT_CFLAGS) 1326 DEPEND_CFLAGS = -DPROTO -DDEPEND -DFEAT_GUI $(LINT_CFLAGS)
1325 1327
1712 1714
1713 proto: $(PRO_AUTO) $(PRO_MANUAL) 1715 proto: $(PRO_AUTO) $(PRO_MANUAL)
1714 1716
1715 # Filter out arguments that cproto doesn't support. 1717 # Filter out arguments that cproto doesn't support.
1716 # Don't pass "-pthread" to cproto, it sees it as a list of individual flags. 1718 # Don't pass "-pthread" to cproto, it sees it as a list of individual flags.
1719 # Don't pass "-fstack-protector" to cproto, for the same reason.
1717 # The -E"gcc -E" argument must be separate to avoid problems with shell 1720 # The -E"gcc -E" argument must be separate to avoid problems with shell
1718 # quoting. 1721 # quoting.
1719 CPROTO = cproto $(PROTO_FLAGS) -DPROTO \ 1722 CPROTO = cproto $(PROTO_FLAGS) -DPROTO \
1720 `echo '$(LINT_CFLAGS)' | sed -e 's/-pthread//g'` 1723 `echo '$(LINT_CFLAGS)' | sed -e 's/-pthread//g' -e 's/-fstack-protector//g'`
1721 1724
1722 ### Would be nice if this would work for "normal" make. 1725 ### Would be nice if this would work for "normal" make.
1723 ### Currently it only works for (Free)BSD make. 1726 ### Currently it only works for (Free)BSD make.
1724 #$(PRO_AUTO): $$(*F).c 1727 #$(PRO_AUTO): $$(*F).c
1725 # $(CPROTO) -DFEAT_GUI $(*F).c > $@ 1728 # $(CPROTO) -DFEAT_GUI $(*F).c > $@
2995 proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h 2998 proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h arabic.h
2996 objects/hangulin.o: hangulin.c vim.h auto/config.h feature.h os_unix.h \ 2999 objects/hangulin.o: hangulin.c vim.h auto/config.h feature.h os_unix.h \
2997 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 3000 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
2998 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 3001 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
2999 globals.h farsi.h arabic.h 3002 globals.h farsi.h arabic.h
3000 objects/if_lua.o: if_lua.c vim.h auto/config.h feature.h os_unix.h \ 3003 objects/if_lua.o: if_lua.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
3001 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 3004 ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
3002 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 3005 gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
3003 globals.h farsi.h arabic.h 3006 arabic.h
3004 objects/if_mzsch.o: if_mzsch.c vim.h auto/config.h feature.h os_unix.h \ 3007 objects/if_mzsch.o: if_mzsch.c vim.h auto/config.h feature.h os_unix.h \
3005 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \ 3008 auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
3006 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \ 3009 regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
3007 globals.h farsi.h arabic.h if_mzsch.h mzscheme_base.c 3010 globals.h farsi.h arabic.h if_mzsch.h mzscheme_base.c
3008 objects/if_perl.o: auto/if_perl.c vim.h auto/config.h feature.h os_unix.h \ 3011 objects/if_perl.o: auto/if_perl.c vim.h auto/config.h feature.h os_unix.h \