diff --git a/programs/calc/Makefile.in b/programs/calc/Makefile.in new file mode 100644 index 0000000..c3739c7 --- /dev/null +++ b/programs/calc/Makefile.in @@ -0,0 +1,14 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = calc.exe +APPMODE = -mconsole +IMPORTS = user32 kernel32 + +C_SRCS = \ + main.c \ + +@MAKE_PROG_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/programs/calc/main.c b/programs/calc/main.c new file mode 100644 index 0000000..cfcf7d7 --- /dev/null +++ b/programs/calc/main.c @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2008 Louis Lenders + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include "config.h" +#include "wine/port.h" + +#include + +int main() +{ + execl("/usr/bin/gcalctool","gcalctool",NULL); + /* If we return something went wrong...*/ + MessageBoxA(0,"Could not find gcalctool in /usr/bin/!\n Install the gcalctool package and try again",0,MB_ICONERROR); + return 0; +}