working
[tfs.git] / tools / tf / Makefile
blob28330657512bf5671a0dcb28878412144fc01d2c
1 thisdir = tools/tf
2 SUBDIRS =
3 include ../../build/rules.make
5 LOCAL_MCS_FLAGS = -r:Microsoft.TeamFoundation.dll -r:Microsoft.TeamFoundation.Common.dll -r:Microsoft.TeamFoundation.Client.dll -r:Microsoft.TeamFoundation.VersionControl.Client.dll -r:Microsoft.TeamFoundation.VersionControl.Common.dll -r:Mono.GetOptions.dll -r:Mono.Posix.dll
6 EXPLORE_SOURCES = ExploreCommand.cs ExploreView.cs RepositoryView.cs ChangesetView.cs FileView.cs DirectoryView.cs ChangesetDetailView.cs ChangesetDiffView.cs
8 ifeq ($(HAVE_GTK),yes)
9 EXTRA_SOURCES += $(EXPLORE_SOURCES)
10 LOCAL_MCS_FLAGS += -pkg:gtk-sharp-2.0
11 endif
13 ifeq ($(HAVE_SYNTAX_HIGHLIGHTING),no)
14 EXTRA_SOURCES += NoSourceView.cs
15 else
16 EXTRA_SOURCES += SourceView.cs
17 LOCAL_MCS_FLAGS += -pkg:gtksourceview-sharp-2.0 -pkg:gnome-vfs-sharp-2.0
18 endif
20 ifeq ($(HAVE_MAGIC),no)
21 EXTRA_SOURCES += NoFileType.cs
22 else
23 EXTRA_SOURCES += FileType.cs
24 endif
26 ifeq ($(HAVE_GNOME_KEYRING),no)
27 EXTRA_SOURCES += NoKeyring.cs
28 else
29 EXTRA_SOURCES += Keyring.cs
30 LOCAL_MCS_FLAGS += -pkg:gnome-keyring-sharp
31 endif
33 PROGRAM = tf.exe
34 PROGRAM_INSTALL_DIR=$(prefix)/lib/teamfoundation/
36 install:
37 $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/bin/
38 $(INSTALL_BIN) tf.sh $(DESTDIR)$(prefix)/bin/tf
40 uninstall:
41 -rm -f $(DESTDIR)$(prefix)/bin/tf
43 include ../../build/executable.make
45 # if you want to run the tf.exe against the MS versions of these
46 # assemblies you might find these targets useful
48 cp-mslibs:
49 cp /cygdrive/c/Program\ Files/Microsoft\ Visual\ Studio\ 8/Common7/IDE/PrivateAssemblies/Microsoft.TeamFoundation.* .
51 ondotnet:
52 csc /out:tfp.exe $(EXTRA_SOURCES) -r:Microsoft.TeamFoundation.dll -r:Microsoft.TeamFoundation.Client.dll -r:Microsoft.TeamFoundation.VersionControl.Client.dll -r:Microsoft.TeamFoundation.VersionControl.Common.dll -r:Microsoft.TeamFoundation.Common.dll -r:Mono.GetOptions.dll -r:System.Configuration.dll @tf.exe.sources