diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Makefile.am | 12 | ||||
-rw-r--r-- | examples/third.c | 58 |
2 files changed, 1 insertions, 69 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am index 45f261cb..ab41a46c 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -12,7 +12,7 @@ noinst_PROGRAMS = first second pprint procargs df netlist \ EXTRA_PROGRAMS = first_static second_static \ mountlist_static procmap_static \ - third third_static smp smp_static \ + smp smp_static \ netload_static sysdeps_static \ timings_static pprint_static procargs_static \ df_static netlist_static @@ -52,16 +52,6 @@ sysdeps_static_SOURCES = $(sysdeps_SOURCES) sysdeps_static_LDADD = $(sysdeps_LDADD) sysdeps_static_LDFLAGS = -static -third_names_LIBS = $(top_builddir)/sysdeps/names/libgtop_names-2.0.la - -third_SOURCES = third.c -third_LDADD = $(third_names_LIBS) \ - $(top_builddir)/lib/libgtop-2.0.la \ - @INTLLIBS@ - -third_static_SOURCES = $(third_SOURCES) -third_static_LDADD = $(third_LDADD) -third_static_LDFLAGS = -static mountlist_SOURCES = mountlist.c mountlist_LDADD = $(top_builddir)/lib/libgtop-2.0.la diff --git a/examples/third.c b/examples/third.c deleted file mode 100644 index 10592d78..00000000 --- a/examples/third.c +++ /dev/null @@ -1,58 +0,0 @@ -/* $Id$ */ - -/* Copyright (C) 1998-99 Martin Baulig - This file is part of LibGTop 1.0. - - Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998. - - LibGTop is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, - or (at your option) any later version. - - LibGTop is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with LibGTop; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. -*/ - -#include <locale.h> -#include <libintl.h> -#include <stdio.h> - -#include <glibtop.h> - -#include <glibtop/open.h> -#include <glibtop/close.h> - -#include <glibtop/union.h> -#include <glibtop/sysdeps.h> - -void main_prog(int argc, char *argv[]); - -int -main (int argc, char *argv[]) -{ - setlocale (LC_ALL, ""); - bindtextdomain (GETTEXT_PACKAGE, GTOPLOCALEDIR); - textdomain (GETTEXT_PACKAGE); - - gh_enter (argc, argv, main_prog); - exit (0); -} - -void -main_prog (int argc, char *argv[]) -{ - glibtop_boot_guile (); -#ifdef GLIBTOP_GUILE_NAMES - glibtop_boot_guile_names (); -#endif - - gh_repl (argc, argv); -} |