comparison src/Makefile @ 574:25a70b1cd2da

updated for version 7.0163
author vimboss
date Tue, 06 Dec 2005 19:59:18 +0000
parents 862863033fdd
children 81fe2ccc1207
comparison
equal deleted inserted replaced
573:c85bf6a4999b 574:25a70b1cd2da
32 # used. 32 # used.
33 # - Uncomment the line "CONF_OPT_XSMP = --without-xsmp" if you have the 33 # - Uncomment the line "CONF_OPT_XSMP = --without-xsmp" if you have the
34 # X11 Session Management Protocol (XSMP) library (libSM) but do not 34 # X11 Session Management Protocol (XSMP) library (libSM) but do not
35 # want to use it. 35 # want to use it.
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 & KDE 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-perlinterp for Perl interpreter 41 # --enable-perlinterp for Perl interpreter
42 # --enable-pythoninterp for Python interpreter 42 # --enable-pythoninterp for Python interpreter
336 # 336 #
337 # GNOME means GTK with Gnome support. If using GTK, then GNOME will 337 # GNOME means GTK with Gnome support. If using GTK, then GNOME will
338 # automatically be used if it is found. If you have GNOME, but do not want to 338 # automatically be used if it is found. If you have GNOME, but do not want to
339 # use it (e.g., want a GTK-only version), then use --enable-gui=gtk. 339 # use it (e.g., want a GTK-only version), then use --enable-gui=gtk.
340 # 340 #
341 # KDE doesn't fully work, unfortunately. See the todo list.
342 #
343 # If the selected GUI isn't found, the GUI is disabled automatically 341 # If the selected GUI isn't found, the GUI is disabled automatically
344 #CONF_OPT_GUI = --enable-gui=gtk 342 #CONF_OPT_GUI = --enable-gui=gtk
345 #CONF_OPT_GUI = --enable-gui=gtk --disable-gtktest 343 #CONF_OPT_GUI = --enable-gui=gtk --disable-gtktest
346 #CONF_OPT_GUI = --enable-gui=gtk2 344 #CONF_OPT_GUI = --enable-gui=gtk2
347 #CONF_OPT_GUI = --enable-gui=gtk2 --disable-gtktest 345 #CONF_OPT_GUI = --enable-gui=gtk2 --disable-gtktest
348 #CONF_OPT_GUI = --enable-gui=gnome 346 #CONF_OPT_GUI = --enable-gui=gnome
349 #CONF_OPT_GUI = --enable-gui=gnome2 347 #CONF_OPT_GUI = --enable-gui=gnome2
350 #CONF_OPT_GUI = --enable-gui=gnome2 --disable-gtktest 348 #CONF_OPT_GUI = --enable-gui=gnome2 --disable-gtktest
351 #CONF_OPT_GUI = --enable-gui=kde
352 #CONF_OPT_GUI = --enable-gui=motif 349 #CONF_OPT_GUI = --enable-gui=motif
353 #CONF_OPT_GUI = --enable-gui=motif --with-motif-lib="-static -lXm -shared" 350 #CONF_OPT_GUI = --enable-gui=motif --with-motif-lib="-static -lXm -shared"
354 #CONF_OPT_GUI = --enable-gui=athena 351 #CONF_OPT_GUI = --enable-gui=athena
355 #CONF_OPT_GUI = --enable-gui=nextaw 352 #CONF_OPT_GUI = --enable-gui=nextaw
356 353
1085 #GUI_BUNDLE = $(NONE_BUNDLE) 1082 #GUI_BUNDLE = $(NONE_BUNDLE)
1086 1083
1087 # Without a GUI install the normal way. 1084 # Without a GUI install the normal way.
1088 NONE_INSTALL = install_normal 1085 NONE_INSTALL = install_normal
1089 1086
1090 ### KDE GUI interface.
1091 KDE_SRC = gui.c pty.c gui_kde.cc gui_kde_x11.cc gui_kde_wid.cc gui_kde_wid_moc.cc kvim_iface_skel.cc
1092 KDE_OBJ = objects/gui.o objects/pty.o objects/gui_kde.o objects/gui_kde_x11.o \
1093 objects/gui_kde_wid.o objects/gui_kde_wid_moc.o \
1094 objects/kvim_iface_skel.o
1095 KDE_DEFS = -DFEAT_GUI_KDE $(NARROW_PROTO)
1096 KDE_IPATH = $(GUI_INC_LOC)
1097 KDE_LIBS_DIR = $(GUI_LIB_LOC) # Includes the libraries themselves
1098 KDE_DIR = $(KDE_PREFIX)
1099 KDE_LIBS1 =
1100 KDE_LIBS2 =
1101 KDE_INSTALL = install_normal
1102 KDE_TARGETS = installglinks installkdeicons
1103 KDE_MAN_TARGETS = yes
1104 KDE_TESTTARGET = gui
1105 KDE_BUNDLE =
1106
1107 ### GTK GUI 1087 ### GTK GUI
1108 GTK_SRC = gui.c gui_gtk.c gui_gtk_x11.c pty.c gui_gtk_f.c \ 1088 GTK_SRC = gui.c gui_gtk.c gui_gtk_x11.c pty.c gui_gtk_f.c \
1109 gui_beval.c 1089 gui_beval.c
1110 GTK_OBJ = objects/gui.o objects/gui_gtk.o objects/gui_gtk_x11.o \ 1090 GTK_OBJ = objects/gui.o objects/gui_gtk.o objects/gui_gtk_x11.o \
1111 objects/pty.o objects/gui_gtk_f.o \ 1091 objects/pty.o objects/gui_gtk_f.o \
1228 CARBONGUI_BUNDLE = gui_bundle 1208 CARBONGUI_BUNDLE = gui_bundle
1229 APPDIR = $(VIMNAME).app 1209 APPDIR = $(VIMNAME).app
1230 CARBONGUI_TESTARG = VIMPROG=../$(APPDIR)/Contents/MacOS/$(VIMTARGET) 1210 CARBONGUI_TESTARG = VIMPROG=../$(APPDIR)/Contents/MacOS/$(VIMTARGET)
1231 1211
1232 # All GUI files 1212 # All GUI files
1233 ALL_GUI_SRC = gui.c gui_gtk.c gui_gtk_f.c gui_motif.c gui_xmdlg.c gui_xmebw.c gui_athena.c gui_gtk_x11.c gui_x11.c gui_at_sb.c gui_at_fs.c pty.c gui_kde.cc gui_kde_wid.cc gui_kde_x11.cc gui_kde_wid_moc.cc 1213 ALL_GUI_SRC = gui.c gui_gtk.c gui_gtk_f.c gui_motif.c gui_xmdlg.c gui_xmebw.c gui_athena.c gui_gtk_x11.c gui_x11.c gui_at_sb.c gui_at_fs.c pty.c
1234 ALL_GUI_PRO = gui.pro gui_gtk.pro gui_motif.pro gui_xmdlg.pro gui_athena.pro gui_gtk_x11.pro gui_x11.pro gui_w16.pro gui_w32.pro gui_photon.pro 1214 ALL_GUI_PRO = gui.pro gui_gtk.pro gui_motif.pro gui_xmdlg.pro gui_athena.pro gui_gtk_x11.pro gui_x11.pro gui_w16.pro gui_w32.pro gui_photon.pro
1235 1215
1236 # }}} 1216 # }}}
1237 1217
1238 ### Command to create dependencies based on #include "..." 1218 ### Command to create dependencies based on #include "..."
1275 ################################################ 1255 ################################################
1276 1256
1277 SHELL = /bin/sh 1257 SHELL = /bin/sh
1278 1258
1279 .SUFFIXES: 1259 .SUFFIXES:
1280 .SUFFIXES: .cc .c .o .pro 1260 .SUFFIXES: .c .o .pro
1281 1261
1282 PRE_DEFS = -Iproto $(DEFS) $(GUI_DEFS) $(GUI_IPATH) $(CPPFLAGS) $(EXTRA_IPATHS) 1262 PRE_DEFS = -Iproto $(DEFS) $(GUI_DEFS) $(GUI_IPATH) $(CPPFLAGS) $(EXTRA_IPATHS)
1283 POST_DEFS = $(X_CFLAGS) $(MZSCHEME_CFLAGS) $(PERL_CFLAGS) $(PYTHON_CFLAGS) $(TCL_CFLAGS) $(RUBY_CFLAGS) $(EXTRA_DEFS) 1263 POST_DEFS = $(X_CFLAGS) $(MZSCHEME_CFLAGS) $(PERL_CFLAGS) $(PYTHON_CFLAGS) $(TCL_CFLAGS) $(RUBY_CFLAGS) $(EXTRA_DEFS)
1284 1264
1285 ALL_CFLAGS = $(PRE_DEFS) $(CFLAGS) $(PROFILE_CFLAGS) $(POST_DEFS) 1265 ALL_CFLAGS = $(PRE_DEFS) $(CFLAGS) $(PROFILE_CFLAGS) $(POST_DEFS)
1393 1373
1394 SRC = $(BASIC_SRC) $(GUI_SRC) $(HANGULIN_SRC) $(MZSCHEME_SRC) \ 1374 SRC = $(BASIC_SRC) $(GUI_SRC) $(HANGULIN_SRC) $(MZSCHEME_SRC) \
1395 $(PERL_SRC) $(PYTHON_SRC) $(TCL_SRC) $(RUBY_SRC) \ 1375 $(PERL_SRC) $(PYTHON_SRC) $(TCL_SRC) $(RUBY_SRC) \
1396 $(SNIFF_SRC) $(WORKSHOP_SRC) $(WSDEBUG_SRC) 1376 $(SNIFF_SRC) $(WORKSHOP_SRC) $(WSDEBUG_SRC)
1397 1377
1398 TAGS_SRC = *.c *.cpp *.cc if_perl.xs 1378 TAGS_SRC = *.c *.cpp if_perl.xs
1399 1379
1400 EXTRA_SRC = hangulin.c if_mzsch.c auto/if_perl.c if_perlsfio.c \ 1380 EXTRA_SRC = hangulin.c if_mzsch.c auto/if_perl.c if_perlsfio.c \
1401 if_python.c if_tcl.c if_ruby.c if_sniff.c gui_beval.c \ 1381 if_python.c if_tcl.c if_ruby.c if_sniff.c gui_beval.c \
1402 workshop.c wsdebug.c integration.c netbeans.c 1382 workshop.c wsdebug.c integration.c netbeans.c
1403 1383
1945 if test -d $(KMAPSOURCE); then \ 1925 if test -d $(KMAPSOURCE); then \
1946 $(INSTALL_DATA) $(KMAPSOURCE)/README.txt $(KMAPSOURCE)/*.vim $(DEST_KMAP); \ 1926 $(INSTALL_DATA) $(KMAPSOURCE)/README.txt $(KMAPSOURCE)/*.vim $(DEST_KMAP); \
1947 chmod $(FILEMOD) $(DEST_KMAP)/README.txt $(DEST_KMAP)/*.vim; \ 1927 chmod $(FILEMOD) $(DEST_KMAP)/README.txt $(DEST_KMAP)/*.vim; \
1948 fi 1928 fi
1949 1929
1950 # Install the icons for the KDE GUI. This differs from the KDE icons for
1951 # other GUIs.
1952 installkdeicons:
1953 mkdir -p $(DESTDIR)$(KDE_DIR)/share/applnk/Editors/
1954 mkdir -p $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/32x32/apps/
1955 mkdir -p $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/48x48/apps/
1956 mkdir -p $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/22x22/actions/
1957 mkdir -p $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/16x16/actions/
1958 mkdir -p $(DESTDIR)$(KDE_DIR)/share/apps/kvim
1959
1960 cp ../runtime/KVim.desktop $(DESTDIR)$(KDE_DIR)/share/applnk/Editors/ && chmod 644 $(DESTDIR)$(KDE_DIR)/share/applnk/Editors/KVim.desktop
1961 cp ../runtime/kvim32x32.png $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/32x32/apps/kvim.png && chmod 644 $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/32x32/apps/kvim.png
1962 cp ../runtime/kvim48x48.png $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/48x48/apps/kvim.png && chmod 644 $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/48x48/apps/kvim.png
1963 cp ../runtime/hi16-action-make.png $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/16x16/actions/hi16-action-make.png
1964 cp ../runtime/hi22-action-make.png $(DESTDIR)$(KDE_DIR)/share/icons/hicolor/22x22/actions/hi22-action-make.png
1965 cp ../runtime/kde-tips $(DESTDIR)$(KDE_DIR)/share/apps/kvim/tips && chmod 644 $(DESTDIR)$(KDE_DIR)/share/apps/kvim/tips
1966
1967 # install the icons for KDE, if the directory exists and the icon doesn't. 1930 # install the icons for KDE, if the directory exists and the icon doesn't.
1968 ICON48PATH = $(DESTDIR)$(DATADIR)/icons/hicolor/48x48/apps 1931 ICON48PATH = $(DESTDIR)$(DATADIR)/icons/hicolor/48x48/apps
1969 ICON32PATH = $(DESTDIR)$(DATADIR)/icons/locolor/32x32/apps 1932 ICON32PATH = $(DESTDIR)$(DATADIR)/icons/locolor/32x32/apps
1970 ICON16PATH = $(DESTDIR)$(DATADIR)/icons/locolor/16x16/apps 1933 ICON16PATH = $(DESTDIR)$(DATADIR)/icons/locolor/16x16/apps
1971 KDEPATH = $(HOME)/.kde/share/icons 1934 KDEPATH = $(HOME)/.kde/share/icons
2143 clean celan: testclean 2106 clean celan: testclean
2144 -rm -f *.o objects/* core $(VIMTARGET).core $(VIMTARGET) xxd/*.o 2107 -rm -f *.o objects/* core $(VIMTARGET).core $(VIMTARGET) xxd/*.o
2145 -rm -f $(TOOLS) auto/osdef.h auto/pathdef.c auto/if_perl.c 2108 -rm -f $(TOOLS) auto/osdef.h auto/pathdef.c auto/if_perl.c
2146 -rm -f conftest* *~ auto/link.sed 2109 -rm -f conftest* *~ auto/link.sed
2147 -rm -rf $(APPDIR) 2110 -rm -rf $(APPDIR)
2148 -rm -f gui_kde_wid_moc.cc kvim_iface_skel.cc *.kidl
2149 if test -d $(PODIR); then \ 2111 if test -d $(PODIR); then \
2150 cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) clean; \ 2112 cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) clean; \
2151 fi 2113 fi
2152 2114
2153 # Make a shadow directory for compilation on another system or with different 2115 # Make a shadow directory for compilation on another system or with different
2235 -rm -f dosinst.ln 2197 -rm -f dosinst.ln
2236 2198
2237 ########################################################################### 2199 ###########################################################################
2238 2200
2239 .c.o: 2201 .c.o:
2240 $(CCC) $<
2241
2242 .cc.o:
2243 $(CCC) $< 2202 $(CCC) $<
2244 2203
2245 auto/if_perl.c: if_perl.xs 2204 auto/if_perl.c: if_perl.xs
2246 $(PERL) -e 'unless ( $$] >= 5.005 ) { for (qw(na defgv errgv)) { print "#define PL_$$_ $$_\n" }}' > $@ 2205 $(PERL) -e 'unless ( $$] >= 5.005 ) { for (qw(na defgv errgv)) { print "#define PL_$$_ $$_\n" }}' > $@
2247 $(PERL) $(PERLLIB)/ExtUtils/xsubpp -prototypes -typemap \ 2206 $(PERL) $(PERLLIB)/ExtUtils/xsubpp -prototypes -typemap \
2509 objects/workshop.o: workshop.c 2468 objects/workshop.o: workshop.c
2510 $(CCC) -o $@ workshop.c 2469 $(CCC) -o $@ workshop.c
2511 2470
2512 objects/wsdebug.o: wsdebug.c 2471 objects/wsdebug.o: wsdebug.c
2513 $(CCC) -o $@ wsdebug.c 2472 $(CCC) -o $@ wsdebug.c
2514
2515 objects/gui_kde.o: gui_kde.cc
2516 $(CCC) -o $@ gui_kde.cc
2517
2518 objects/gui_kde_x11.o: gui_kde_x11.cc
2519 $(CCC) -o $@ gui_kde_x11.cc
2520
2521 objects/gui_kde_wid.o: gui_kde_wid.cc
2522 $(MOC) -o gui_kde_wid_moc.cc gui_kde_wid.h
2523 $(KDE_DIR)/bin/dcopidl kvim_iface.h > kvim_iface.kidl || ( rm -f kvim_iface.kidl ; /bin/false )
2524 $(KDE_DIR)/bin/dcopidl2cpp --c++-suffix cc --no-stub kvim_iface.kidl
2525 $(CCC) -o $@ gui_kde_wid.cc
2526
2527 gui_kde_wid_moc.cc: objects/gui_kde_wid.o
2528 objects/gui_kde_wid_moc.o: gui_kde_wid_moc.cc
2529 $(CCC) -o $@ gui_kde_wid_moc.cc
2530
2531 kvim_iface_skel.cc: objects/gui_kde_wid.o
2532 objects/kvim_iface_skel.o: kvim_iface_skel.cc
2533 $(CCC) -o $@ kvim_iface_skel.cc
2534 2473
2535 objects/netbeans.o: netbeans.c 2474 objects/netbeans.o: netbeans.c
2536 $(CCC) -o $@ netbeans.c 2475 $(CCC) -o $@ netbeans.c
2537 2476
2538 Makefile: 2477 Makefile:
2895 farsi.h arabic.h if_sniff.h gui_at_sb.h 2834 farsi.h arabic.h if_sniff.h gui_at_sb.h
2896 objects/pty.o: pty.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \ 2835 objects/pty.o: pty.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h ascii.h \
2897 keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \ 2836 keymap.h term.h macros.h structs.h regexp.h gui.h gui_beval.h \
2898 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \ 2837 proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h farsi.h \
2899 arabic.h if_sniff.h 2838 arabic.h if_sniff.h
2900 objects/gui_kde.o: gui_kde.cc gui_kde_wid.h kvim_iface.h vim.h auto/config.h \
2901 feature.h os_unix.h ascii.h keymap.h term.h macros.h structs.h regexp.h \
2902 gui.h gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h \
2903 globals.h farsi.h arabic.h if_sniff.h ../pixmaps/tb_new.xpm \
2904 ../pixmaps/tb_open.xpm ../pixmaps/tb_close.xpm ../pixmaps/tb_save.xpm \
2905 ../pixmaps/tb_print.xpm ../pixmaps/tb_cut.xpm ../pixmaps/tb_copy.xpm \
2906 ../pixmaps/tb_paste.xpm ../pixmaps/tb_find.xpm \
2907 ../pixmaps/tb_find_next.xpm ../pixmaps/tb_find_prev.xpm \
2908 ../pixmaps/tb_find_help.xpm ../pixmaps/tb_exit.xpm \
2909 ../pixmaps/tb_undo.xpm ../pixmaps/tb_redo.xpm ../pixmaps/tb_help.xpm \
2910 ../pixmaps/tb_macro.xpm ../pixmaps/tb_make.xpm \
2911 ../pixmaps/tb_save_all.xpm ../pixmaps/tb_jump.xpm \
2912 ../pixmaps/tb_ctags.xpm ../pixmaps/tb_load_session.xpm \
2913 ../pixmaps/tb_save_session.xpm ../pixmaps/tb_new_session.xpm \
2914 ../pixmaps/tb_blank.xpm ../pixmaps/tb_maximize.xpm \
2915 ../pixmaps/tb_split.xpm ../pixmaps/tb_minimize.xpm \
2916 ../pixmaps/tb_shell.xpm ../pixmaps/tb_replace.xpm \
2917 ../pixmaps/tb_vsplit.xpm ../pixmaps/tb_maxwidth.xpm \
2918 ../pixmaps/tb_minwidth.xpm
2919 objects/gui_kde_wid.o: gui_kde_wid.cc gui_kde_wid.h kvim_iface.h vim.h \
2920 auto/config.h feature.h os_unix.h ascii.h keymap.h term.h macros.h \
2921 structs.h regexp.h gui.h gui_beval.h proto/gui_beval.pro option.h \
2922 ex_cmds.h proto.h globals.h farsi.h arabic.h if_sniff.h version.h \
2923 proto/../../pixmaps/alert.xpm proto/../../pixmaps/error.xpm \
2924 proto/../../pixmaps/generic.xpm proto/../../pixmaps/info.xpm \
2925 proto/../../pixmaps/quest.xpm
2926 objects/gui_kde_x11.o: gui_kde_x11.cc gui_kde_wid.h kvim_iface.h vim.h \
2927 auto/config.h feature.h os_unix.h ascii.h keymap.h term.h macros.h \
2928 structs.h regexp.h gui.h gui_beval.h proto/gui_beval.pro option.h \
2929 ex_cmds.h proto.h globals.h farsi.h arabic.h if_sniff.h version.h
2930 objects/hangulin.o: hangulin.c vim.h auto/config.h feature.h os_unix.h \ 2839 objects/hangulin.o: hangulin.c vim.h auto/config.h feature.h os_unix.h \
2931 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \ 2840 auto/osdef.h ascii.h keymap.h term.h macros.h structs.h regexp.h gui.h \
2932 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \ 2841 gui_beval.h proto/gui_beval.pro option.h ex_cmds.h proto.h globals.h \
2933 farsi.h arabic.h if_sniff.h 2842 farsi.h arabic.h if_sniff.h
2934 objects/if_perl.o: auto/if_perl.c ./vim.h ./auto/config.h ./feature.h ./os_unix.h \ 2843 objects/if_perl.o: auto/if_perl.c ./vim.h ./auto/config.h ./feature.h ./os_unix.h \