Mercurial > vim
comparison src/Makefile @ 18:293621502c4d v7.0010
updated for version 7.0010
author | vimboss |
---|---|
date | Sun, 18 Jul 2004 21:34:53 +0000 |
parents | 3ba373b54370 |
children | 4ac1dce8dd5e |
comparison
equal
deleted
inserted
replaced
17:9be87deaeb52 | 18:293621502c4d |
---|---|
1194 CARBONGUI_LIBS1 = -framework Carbon | 1194 CARBONGUI_LIBS1 = -framework Carbon |
1195 CARBONGUI_LIBS2 = | 1195 CARBONGUI_LIBS2 = |
1196 CARBONGUI_INSTALL = install_macosx | 1196 CARBONGUI_INSTALL = install_macosx |
1197 CARBONGUI_TARGETS = | 1197 CARBONGUI_TARGETS = |
1198 CARBONGUI_MAN_TARGETS = | 1198 CARBONGUI_MAN_TARGETS = |
1199 CARBONGUI_TESTTARGET = | 1199 CARBONGUI_TESTTARGET = gui |
1200 CARBONGUI_BUNDLE = $(VIMNAME).app | |
1201 CARBONGUI_TESTARG = VIMPROG=../$(CARBONGUI_BUNDLE)/Contents/MacOS/$(VIMTARGET) | |
1200 | 1202 |
1201 # All GUI files | 1203 # All GUI files |
1202 ALL_GUI_SRC = gui.c gui_gtk.c gui_gtk_f.c gui_motif.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_widget.cc gui_kde_x11.cc gui_kde_widget_moc.cc | 1204 ALL_GUI_SRC = gui.c gui_gtk.c gui_gtk_f.c gui_motif.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_widget.cc gui_kde_x11.cc gui_kde_widget_moc.cc |
1203 ALL_GUI_PRO = gui.pro gui_gtk.pro gui_motif.pro gui_athena.pro gui_gtk_x11.pro gui_x11.pro gui_w16.pro gui_w32.pro gui_amiga.pro gui_photon.pro gui_kde.pro gui_kde_x11.pro | 1205 ALL_GUI_PRO = gui.pro gui_gtk.pro gui_motif.pro gui_athena.pro gui_gtk_x11.pro gui_x11.pro gui_w16.pro gui_w32.pro gui_amiga.pro gui_photon.pro gui_kde.pro gui_kde_x11.pro |
1204 | 1206 |
1463 | 1465 |
1464 PRO_MANUAL = os_amiga.pro os_msdos.pro os_win16.pro os_win32.pro \ | 1466 PRO_MANUAL = os_amiga.pro os_msdos.pro os_win16.pro os_win32.pro \ |
1465 os_mswin.pro os_beos.pro os_vms.pro os_riscos.pro $(PERL_PRO) | 1467 os_mswin.pro os_beos.pro os_vms.pro os_riscos.pro $(PERL_PRO) |
1466 | 1468 |
1467 # Default target is making the executable and tools | 1469 # Default target is making the executable and tools |
1468 all: $(VIMTARGET) $(TOOLS) languages | 1470 all: $(VIMTARGET) $(TOOLS) languages $(GUI_BUNDLE) |
1469 | 1471 |
1470 tools: $(TOOLS) | 1472 tools: $(TOOLS) |
1471 | 1473 |
1472 # Run configure with all the setting from above. | 1474 # Run configure with all the setting from above. |
1473 # | 1475 # |
1639 # a "test99.ok" file. | 1641 # a "test99.ok" file. |
1640 # If everything is allright, the final message will be "ALL DONE". | 1642 # If everything is allright, the final message will be "ALL DONE". |
1641 # | 1643 # |
1642 test check: | 1644 test check: |
1643 $(MAKE) -f Makefile $(VIMTARGET) | 1645 $(MAKE) -f Makefile $(VIMTARGET) |
1644 cd testdir; $(MAKE) -f Makefile $(GUI_TESTTARGET) VIMPROG=../$(VIMTARGET) | 1646 cd testdir; $(MAKE) -f Makefile $(GUI_TESTTARGET) VIMPROG=../$(VIMTARGET) $(GUI_TESTARG) |
1645 | 1647 |
1646 testclean: | 1648 testclean: |
1647 cd testdir; $(MAKE) -f Makefile clean | 1649 cd testdir; $(MAKE) -f Makefile clean |
1648 | 1650 |
1649 # | 1651 # |
2033 # We support common typing mistakes for Juergen! :-) | 2035 # We support common typing mistakes for Juergen! :-) |
2034 clean celan: testclean | 2036 clean celan: testclean |
2035 -rm -f *.o objects/* core $(VIMTARGET).core $(VIMTARGET) xxd/*.o | 2037 -rm -f *.o objects/* core $(VIMTARGET).core $(VIMTARGET) xxd/*.o |
2036 -rm -f $(TOOLS) auto/osdef.h auto/pathdef.c auto/if_perl.c | 2038 -rm -f $(TOOLS) auto/osdef.h auto/pathdef.c auto/if_perl.c |
2037 -rm -f conftest* *~ auto/link.sed | 2039 -rm -f conftest* *~ auto/link.sed |
2040 -rm -rf $(GUI_BUNDLE) | |
2038 -rm -f gui_kde_widget_moc.cc kvim_iface_skel.cc *.kidl | 2041 -rm -f gui_kde_widget_moc.cc kvim_iface_skel.cc *.kidl |
2039 if test -d $(PODIR); then \ | 2042 if test -d $(PODIR); then \ |
2040 cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) clean; \ | 2043 cd $(PODIR); $(MAKE) prefix=$(DESTDIR)$(prefix) clean; \ |
2041 fi | 2044 fi |
2042 | 2045 |
2325 $(CCC) -o $@ os_qnx.c | 2328 $(CCC) -o $@ os_qnx.c |
2326 | 2329 |
2327 objects/os_macosx.o: os_macosx.c | 2330 objects/os_macosx.o: os_macosx.c |
2328 $(CCC) -o $@ os_macosx.c | 2331 $(CCC) -o $@ os_macosx.c |
2329 | 2332 |
2333 objects/os_mac_conv.o: os_mac_conv.c | |
2334 $(CCC) -o $@ os_mac_conv.c | |
2335 | |
2330 objects/os_unix.o: os_unix.c | 2336 objects/os_unix.o: os_unix.c |
2331 $(CCC) -o $@ os_unix.c | 2337 $(CCC) -o $@ os_unix.c |
2332 | 2338 |
2333 objects/pathdef.o: auto/pathdef.c | 2339 objects/pathdef.o: auto/pathdef.c |
2334 $(CCC) -o $@ auto/pathdef.c | 2340 $(CCC) -o $@ auto/pathdef.c |
2408 @echo The name of the makefile MUST be "Makefile" (with capital M)!!!! | 2414 @echo The name of the makefile MUST be "Makefile" (with capital M)!!!! |
2409 | 2415 |
2410 ############################################################################### | 2416 ############################################################################### |
2411 ### MacOS X installation | 2417 ### MacOS X installation |
2412 ### | 2418 ### |
2413 ### This creates a runnable Vim.app in the src directory | 2419 ### This installs a runnable Vim.app in $(prefix) |
2414 | 2420 |
2415 REZ = /Developer/Tools/Rez | 2421 REZ = /Developer/Tools/Rez |
2416 APPDIR = $(VIMNAME).app | 2422 APPDIR = $(GUI_BUNDLE) |
2417 RESDIR = $(APPDIR)/Contents/Resources | 2423 RESDIR = $(APPDIR)/Contents/Resources |
2418 # FIXME: i'm sure someone else can do something clever with grep | |
2419 # sed and version.h here | |
2420 VERSION = $(VIMMAJOR).$(VIMMINOR) | 2424 VERSION = $(VIMMAJOR).$(VIMMINOR) |
2421 | 2425 |
2422 ### Common flags | 2426 ### Common flags |
2423 M4FLAGSX = $(M4FLAGS) -DAPP_EXE=$(VIMNAME) -DAPP_NAME=$(VIMNAME) \ | 2427 M4FLAGSX = $(M4FLAGS) -DAPP_EXE=$(VIMNAME) -DAPP_NAME=$(VIMNAME) \ |
2424 -DAPP_VER=$(VERSION) -DICON_APP=$(ICON_APP) | 2428 -DAPP_VER=$(VERSION) -DICON_APP=$(ICON_APP) |
2432 #ICON_APP = $(shell if [ -e app.icns ] ; then echo app.icns ; else echo gui_mac.icns ; fi) | 2436 #ICON_APP = $(shell if [ -e app.icns ] ; then echo app.icns ; else echo gui_mac.icns ; fi) |
2433 #ICON_DOC = $(shell if [ -e doc.icns ] ; then echo doc.icns ; else echo ; fi) | 2437 #ICON_DOC = $(shell if [ -e doc.icns ] ; then echo doc.icns ; else echo ; fi) |
2434 #ICON_DOCTXT = $(shell if [ -e doc-txt.icns ] ; then echo doc-txt.icns ; else echo ; fi) | 2438 #ICON_DOCTXT = $(shell if [ -e doc-txt.icns ] ; then echo doc-txt.icns ; else echo ; fi) |
2435 #ICONS = $(addprefix $(RESDIR)/, $(ICON_APP) $(ICON_DOC) $(ICON_DOCTXT)) | 2439 #ICONS = $(addprefix $(RESDIR)/, $(ICON_APP) $(ICON_DOC) $(ICON_DOCTXT)) |
2436 | 2440 |
2437 install_macosx: bundle-dir bundle-executable bundle-info bundle-resource \ | 2441 install_macosx: $(APPDIR) |
2442 $(INSTALL_DATA_R) $(APPDIR) $(DESTDIR)$(prefix) | |
2443 | |
2444 $(APPDIR): bundle-dir bundle-executable bundle-info bundle-resource \ | |
2438 bundle-language | 2445 bundle-language |
2439 | 2446 |
2440 bundle-dir: $(APPDIR)/Contents $(VIMTARGET) | 2447 bundle-dir: $(APPDIR)/Contents $(VIMTARGET) |
2441 -@srcdir=`pwd`; cd $(HELPSOURCE); $(MAKE) VIMEXE=$$srcdir/$(VIMTARGET) vimtags | 2448 -@srcdir=`pwd`; cd $(HELPSOURCE); $(MAKE) VIMEXE=$$srcdir/$(VIMTARGET) vimtags |
2442 cp -R ../runtime $(APPDIR) | 2449 cp -R ../runtime $(APPDIR) |
2471 #bundle-language: bundle-dir po/Make_osx.pl | 2478 #bundle-language: bundle-dir po/Make_osx.pl |
2472 # cd po && perl Make_osx.pl --outdir ../$(RESDIR) $(MULTILANG) | 2479 # cd po && perl Make_osx.pl --outdir ../$(RESDIR) $(MULTILANG) |
2473 bundle-language: bundle-dir | 2480 bundle-language: bundle-dir |
2474 | 2481 |
2475 $(APPDIR)/Contents: | 2482 $(APPDIR)/Contents: |
2476 mkdir $(APPDIR) | 2483 -$(SHELL) ./mkinstalldirs $(APPDIR)/Contents/MacOS |
2477 mkdir $(APPDIR)/Contents | 2484 -$(SHELL) ./mkinstalldirs $(RESDIR)/English.lproj |
2478 mkdir $(APPDIR)/Contents/MacOS | |
2479 mkdir $(RESDIR) | |
2480 mkdir $(RESDIR)/English.lproj | |
2481 | 2485 |
2482 $(RESDIR)/%.icns: %.icns | 2486 $(RESDIR)/%.icns: %.icns |
2483 cp $< $@ | 2487 cp $< $@ |
2484 | 2488 |
2485 | 2489 |