home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / Makefile < prev    next >
Encoding:
Makefile  |  1998-04-08  |  6.6 KB  |  312 lines

  1. #! gmake
  2. #
  3. # The contents of this file are subject to the Netscape Public License
  4. # Version 1.0 (the "NPL"); you may not use this file except in
  5. # compliance with the NPL.  You may obtain a copy of the NPL at
  6. # http://www.mozilla.org/NPL/
  7. #
  8. # Software distributed under the NPL is distributed on an "AS IS" basis,
  9. # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10. # for the specific language governing rights and limitations under the
  11. # NPL.
  12. #
  13. # The Initial Developer of this code under the NPL is Netscape
  14. # Communications Corporation.  Portions created by Netscape are
  15. # Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16. # Reserved.
  17.  
  18. DEPTH        = ../../..
  19.  
  20. include $(DEPTH)/config/config.mk
  21.  
  22. MODULE        = xfe2
  23.  
  24. USE_3PANE     = 1
  25.  
  26. LIBRARY_NAME    = xfe2
  27.  
  28. REQUIRES    = nspr layer js jtools applet security img util parse layout hook pref java libfont ldap lay style xfeicons rdf xpcom plug
  29.  
  30. CPPSRCS        = \
  31.           plugin.cpp \
  32.           BackForwardMenu.cpp \
  33.           BookmarkBase.cpp \
  34.           BookmarkFindDialog.cpp \
  35.           BookmarkMenu.cpp \
  36.           BookmarkPropDialog.cpp \
  37.           BookmarkWhatsNewDialog.cpp \
  38.           Button.cpp \
  39.           BookmarkFrame.cpp \
  40.           BookmarkView.cpp \
  41.           BrowserDrop.cpp \
  42.           BrowserFrame.cpp \
  43.           ColorDialog.cpp \
  44.           Command.cpp \
  45.           Component.cpp \
  46.           DesktopTypes.cpp \
  47.           Dialog.cpp \
  48.           DisplayFactory.cpp \
  49.           Dashboard.cpp \
  50.           DownloadFrame.cpp \
  51.           DragDrop.cpp \
  52.           EditHdrDialog.cpp \
  53.           FrameListMenu.cpp \
  54.           Frame.cpp \
  55.           HTMLDialogFrame.cpp \
  56.           HistoryMenu.cpp \
  57.           HistoryView.cpp \
  58.           HTMLDrag.cpp \
  59.           HTMLView.cpp \
  60.           HistoryFrame.cpp \
  61.           IconGroup.cpp \
  62.           LocationDrag.cpp \
  63.           Logo.cpp \
  64.           Menu.cpp \
  65.           MenuBar.cpp \
  66.           Minibuffer.cpp \
  67.           MozillaApp.cpp \
  68.           NavCenterFrame.cpp \
  69.           NavCenterView.cpp \
  70.           Netcaster.cpp \
  71.           NotificationCenter.cpp \
  72.           Outliner.cpp \
  73.           PersonalToolbar.cpp \
  74.           PopupMenu.cpp \
  75.           PrefsDialogAppl.cpp \
  76.           PropertyTabView.cpp \
  77.           ProxyIcon.cpp    \
  78.           PrefsApplEdit.cpp \
  79.           PrefsDialog.cpp \
  80.           PrefsDialogBrowser.cpp \
  81.           PrefsDialogGeneral.cpp \
  82.           PrefsDialogMailnews.cpp \
  83.           PrefsLang.cpp \
  84.           PrefsProxiesView.cpp \
  85.           RDFView.cpp \
  86.           RadioGroup.cpp \
  87.           Splash.cpp \
  88.           Toolbar.cpp \
  89.           ToolbarDrop.cpp \
  90.           Toolbox.cpp \
  91.           ToolboxItem.cpp \
  92.           URLBar.cpp \
  93.           ViewDialog.cpp \
  94.           ViewGlue.cpp \
  95.           View.cpp \
  96.           context_funcs.cpp \
  97.           pref.cpp \
  98.           $(NULL)
  99.  
  100.  
  101. ifdef USE_MOTIF_DND
  102. CPPSRCS        += \
  103.         OutlinerDrop.cpp \
  104.         $(NULL)
  105. endif
  106.  
  107. ifdef MOZ_MAIL_NEWS
  108. CPPSRCS        += \
  109.           ABDirGenTabView.cpp \
  110.           ABDirPropertyDlg.cpp \
  111.           ABSearchDlg.cpp \
  112.           ABSearchView.cpp \
  113.           AB2PaneView.cpp \
  114.           ABDirListView.cpp \
  115.           ABAddrSearchView.cpp \
  116.           ABAddresseeView.cpp \
  117.           ABAddressingDlg.cpp \
  118.           ABListSearchView.cpp\
  119.           ABMListDlg.cpp \
  120.           ABMListView.cpp \
  121.           ABNameCTalkTab.cpp \
  122.           ABNameConTab.cpp \
  123.           ABNameFolderDlg.cpp \
  124.           ABNameGenTab.cpp \
  125.           AddrBookFrame.cpp \
  126.           AddrBookView.cpp \
  127.           AddressFolderView.cpp \
  128.           AddressOutliner.cpp \
  129.           AdvSearchDialog.cpp \
  130.           AttachPanel.cpp \
  131.           AttachmentMenu.cpp \
  132.           ComposeAttachDialog.cpp \
  133.           ComposeAttachFolderView.cpp \
  134.           ComposeFolderView.cpp \
  135.           ComposeFrame.cpp \
  136.           ComposeView.cpp \
  137.           $(NULL)
  138. endif
  139.  
  140. ifdef EDITOR
  141. CPPSRCS        += \
  142.           EditorDrop.cpp \
  143.           EditorFrame.cpp \
  144.           EditorToolbar.cpp \
  145.           EditorView.cpp \
  146.           EditRecentMenu.cpp \
  147.           $(NULL)
  148. endif
  149.  
  150. ifdef MOZ_MAIL_NEWS
  151. CPPSRCS        += \
  152.           FolderDropdown.cpp \
  153.           FolderFrame.cpp \
  154.           FolderPromptDialog.cpp \
  155.           FolderMenu.cpp \
  156.           FolderView.cpp \
  157.           Frame.cpp \
  158.           $(NULL)
  159. endif
  160.  
  161. ifdef MOZ_LDAP
  162. CPPSRCS        += \
  163.           LdapSearchFrame.cpp \
  164.           LdapSearchView.cpp \
  165.           $(NULL)
  166. endif
  167.  
  168. ifdef MOZ_MAIL_NEWS
  169. CPPSRCS        += \
  170.           MNBanner.cpp \
  171.           MNListView.cpp \
  172.           MNSearchFrame.cpp \
  173.           MNSearchView.cpp \
  174.           MNView.cpp \
  175.           MailDownloadFrame.cpp \
  176.           MailFilterDlg.cpp \
  177.           MailFilterRulesDlg.cpp \
  178.           MailFilterRulesView.cpp \
  179.           MailFilterView.cpp \
  180.           MailFolderPropDialog.cpp \
  181.           MsgFrame.cpp \
  182.           MsgView.cpp \
  183.           NewsPromptDialog.cpp \
  184.           NewsServerDialog.cpp \
  185.           NewsServerPropDialog.cpp \
  186.           NewsgroupPropDialog.cpp \
  187.           OptionFolderView.cpp \
  188.           $(NULL)
  189. endif
  190.  
  191. ifdef EDITOR
  192. CPPSRCS        += \
  193.           PrefsDialogEditor.cpp \
  194.           $(NULL)
  195. endif
  196.  
  197. ifdef MOZ_LDAP
  198. CPPSRCS        += \
  199.           PrefsLdapProp.cpp \
  200.           PrefsMserverMore.cpp \
  201.           $(NULL)
  202. endif
  203.  
  204. ifdef MOZ_MAIL_NEWS
  205. CPPSRCS        += \
  206.           PrefsMsgMore.cpp \
  207.           $(NULL)
  208. endif
  209.  
  210. ifdef MOZ_MAIL_NEWS
  211. CPPSRCS        += \
  212.           PropertySheetDialog.cpp \
  213.           PropertySheetView.cpp \
  214.           $(NULL)
  215. endif
  216.  
  217. ifdef MOZ_MAIL_NEWS
  218. CPPSRCS        += \
  219.           ReadAttachDrag.cpp \
  220.           ReadAttachPanel.cpp \
  221.           SearchRuleView.cpp \
  222.           SubAllView.cpp \
  223.           SubNewView.cpp \
  224.           SubSearchView.cpp \
  225.           SubTabView.cpp \
  226.           SubscribeDialog.cpp \
  227.           SubscribeView.cpp \
  228.           $(NULL)
  229. endif
  230.  
  231. ifdef MOZ_TASKBAR
  232. CPPSRCS        += \
  233.           TaskBar.cpp \
  234.           TaskBarDrop.cpp \
  235.           $(NULL)
  236.  
  237. DEFINES += -DMOZ_TASKBAR
  238. endif
  239.  
  240. ifdef MOZ_MAIL_NEWS
  241. CPPSRCS        += \
  242.           TextEditorView.cpp \
  243.           $(NULL)
  244. endif
  245.  
  246. ifdef MOZ_MAIL_NEWS
  247. CPPSRCS        += \
  248.           ThreadFrame.cpp \
  249.           ThreadView.cpp \
  250.           $(NULL)
  251.  
  252. ifdef USE_3PANE
  253. CPPSRCS        += \
  254.         ThreePaneView.cpp \
  255.         $(NULL)
  256. endif
  257. endif
  258.  
  259. ifdef EDITOR
  260. CPPSRCS        += \
  261.           SpellHandler.cpp \
  262.         $(NULL)
  263. endif
  264.  
  265. CSRCS        = commands.c
  266.  
  267. include $(DEPTH)/config/rules.mk
  268.  
  269. INCLUDES    += -I$(OBJDIR) -I.. -I../Microline3.0 -I../XfeWidgets -I../DtWidgets -I$(DEPTH)/modules/libreg/include
  270.  
  271. #ifndef MOZ_LITE
  272. #CFLAGS        += -DEDITOR
  273. #endif
  274.  
  275. DEFINES        += -DNEW_DECODERS -DDELAYED_MENU_CREATION -DNETCASTER_ZAXIS_HACKERY
  276. DEFINES        += -DUSE_MAGIC_TOOLBAR
  277.  
  278. ifdef USE_3PANE
  279. DEFINES        += -DUSE_3PANE
  280. endif
  281.  
  282. ifdef USE_ABCOM
  283. DEFINES        += -DUSE_ABCOM
  284. endif
  285.  
  286. ifdef USE_MOTIF_DND
  287. DEFINES        += -DUSE_MOTIF_DND
  288. endif
  289.  
  290.  
  291. $(LIBRARY): $(OBJS)
  292.  
  293. # note the header file is generated as a side effect here.
  294. $(OBJDIR)/commands.c $(OBJDIR)/commands.h: $(OBJDIR)/mkcommands xfe_commands
  295.     @echo Generating command table information... ; \
  296.     $(OBJDIR)/mkcommands -table $(OBJDIR)/commands.c -header $(OBJDIR)/commands.h xfe_commands
  297.  
  298. $(OBJDIR)/commands.o: $(OBJDIR)/commands.c
  299.     $(CC) -c -I. -o $@ $(OBJDIR)/commands.c
  300.  
  301. $(OBJDIR)/mkcommands: mkcommands.c
  302.     @$(MAKE_OBJDIR)
  303.     $(CCF) -o $@ $<
  304.  
  305.  
  306. # This rule is needed for 'make -j' to work since just about everything
  307. # is dependant on commands.h.
  308. $(OBJS): $(OBJDIR)/commands.h
  309.  
  310. NetcasterIncluders:=Frame.o PrefsDialogGeneral.o Netcaster.o
  311. $(foreach f,$(NetcasterIncluders),$(OBJDIR)/$(f)): Netcaster.h
  312.