1/* main.c -- inter-library dependency test program 2 Copyright (C) 1998, 1999, 2000 Free Software Foundation 3 by Thomas Tanner <tanner@ffii.org> 4 This file is part of GNU Libtool. 5 6This program is free software; you can redistribute it and/or modify 7it under the terms of the GNU General Public License as published by 8the Free Software Foundation; either version 2 of the License, or 9(at your option) any later version. 10 11This program is distributed in the hope that it will be useful, 12but WITHOUT ANY WARRANTY; without even the implied warranty of 13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14GNU General Public License for more details. 15 16You should have received a copy of the GNU General Public License 17along with this program; if not, write to the Free Software 18Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 19USA. */ 20 21#include "l1/l1.h" 22#include "l2/l2.h" 23#include "l4/l4.h" 24#include <stdio.h> 25#include <string.h> 26 27int 28main (argc,argv) 29 int argc; 30 char **argv; 31{ 32 printf("dependencies:\n"); 33 func_l1(0); 34 func_l2(0); 35 func_l4(0); 36 if (argc == 2 && strcmp (argv[1], "-alt") == 0 37 && var_l1 + var_l2 + var_l4 == 8) 38 return 0; 39 printf("var_l1(%d) + var_l2(%d) + var_l4(%d) == %d\n",var_l1,var_l2,var_l4, var_l1 + var_l2 + var_l4); 40 if (var_l1 + var_l2 + var_l4 != 20) 41 { 42 printf("var_l1(%d) + var_l2(%d) + var_l4(%d) != 20\n",var_l1,var_l2,var_l4); 43 return 1; 44 } 45 return 0; 46} 47