From 48fa0803cbb59d570fcd179f55f936abc7b465e3 Mon Sep 17 00:00:00 2001 From: Adrian Pop Date: Mon, 6 Sep 2010 20:38:10 +0000 Subject: [PATCH] =?UTF-8?q?-=20added=20missing=20c=5Fruntime/ModelicaExter?= =?UTF-8?q?nalC/Makefile=20-=20fixed=20=C3=B6=20from=20Link=C3=B6ping=20in?= =?UTF-8?q?=20ModelicaExternalC.cpp=20and=20included=20"../tables.h"=20ins?= =?UTF-8?q?tead=20of=20"tables.h"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@6034 f25d12d1-65f4-0310-ae8a-bbce733d8d8e --- c_runtime/ModelicaExternalC/Makefile | 12 ++++++++++++ c_runtime/ModelicaExternalC/ModelicaExternalC.cpp | 8 ++++---- 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 c_runtime/ModelicaExternalC/Makefile diff --git a/c_runtime/ModelicaExternalC/Makefile b/c_runtime/ModelicaExternalC/Makefile new file mode 100644 index 00000000000..718ad019832 --- /dev/null +++ b/c_runtime/ModelicaExternalC/Makefile @@ -0,0 +1,12 @@ + +OBJS = ModelicaExternalC.o +AR = ar -ru + +all: libModelicaExternalC.a + +libModelicaExternalC.a : $(OBJS) + $(AR) $@ $(OBJS) + ranlib $@ + +ModelicaExternalC.o : ModelicaExternalC.cpp + g++ -O3 -c ModelicaExternalC.cpp -o ModelicaExternalC.o diff --git a/c_runtime/ModelicaExternalC/ModelicaExternalC.cpp b/c_runtime/ModelicaExternalC/ModelicaExternalC.cpp index cc1d2e4e926..1c2b5c20433 100644 --- a/c_runtime/ModelicaExternalC/ModelicaExternalC.cpp +++ b/c_runtime/ModelicaExternalC/ModelicaExternalC.cpp @@ -1,9 +1,9 @@ /* * This file is part of OpenModelica. * - * Copyright (c) 1998-CurrentYear, Linköping University, + * Copyright (c) 1998-CurrentYear, Linköping University, * Department of Computer and Information Science, - * SE-58183 Linköping, Sweden. + * SE-58183 Linköping, Sweden. * * All rights reserved. * @@ -14,7 +14,7 @@ * * The OpenModelica software and the Open Source Modelica * Consortium (OSMC) Public License (OSMC-PL) are obtained - * from Linköping University, either from the above address, + * from Linköping University, either from the above address, * from the URLs: http://www.ida.liu.se/projects/OpenModelica or * http://www.openmodelica.org, and in the OpenModelica distribution. * GNU version 3 is obtained from: http://www.gnu.org/copyleft/gpl.html. @@ -48,7 +48,7 @@ #include #include #endif -#include "tables.h" +#include "../tables.h" #ifdef __cplusplus extern "C" {