Skip to content

Commit

Permalink
- Unix compilation
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10463 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Nov 12, 2011
1 parent c027860 commit 3b02655
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions SimulationRuntime/c/ModelicaExternalC/Makefile.in
@@ -1,14 +1,14 @@
CC = @CC@
CXX = @CXX@
CFLAGS := @CFLAGS@
CPPFLAGS := @CPPFLAGS@ -I.. -Dlinux -Dstatic= -I../util/
CPPFLAGS := @CPPFLAGS@ -I.. -Dlinux -Dstatic=
OBJS = ModelicaInternal.o ModelicaStrings.o ModelicaTablesImpl.o ModelicaUtilities.o tables.o
AR = ar -ru

all: libModelicaExternalC.a

tables.o: tables.cpp tables.h
$(CXX) $(CFLAGS) -o $@ -c $<
$(CXX) $(CFLAGS) @CPPFLAGS@ -I../util -o $@ -c $<

libModelicaExternalC.a : $(OBJS)
$(AR) $@ $(OBJS)
Expand Down
4 changes: 2 additions & 2 deletions SimulationRuntime/c/ModelicaExternalC/tables.h
Expand Up @@ -39,8 +39,8 @@
*
*/

#ifndef _OMC_TAPLES_H
#define _OMC_TAPLES_H
#ifndef _OMC_TABLES_H
#define _OMC_TABLES_H

#ifdef __cplusplus
extern "C"
Expand Down
3 changes: 2 additions & 1 deletion SimulationRuntime/c/simulation/solver/Makefile.in
Expand Up @@ -5,9 +5,10 @@
# for both UNIX/Linux and Windows platforms.

CC = @CC@
CXX = @CXX@
ANSI= #-ansi
CFLAGS := @CFLAGS@ -Wall $(ANSI) -pedantic $(EXTRA_CFLAGS) -mfpmath=sse -c -I..
CPPFLAGS := @CPPFLAGS@ -Wall $(ANSI) $(EXTRA_CFLAGS) -I. -I.. -I../../ -I../../util -I../../linearization -I../results -I../math-support/
CPPFLAGS := @CPPFLAGS@ -Wall $(ANSI) $(EXTRA_CFLAGS) -I. -I.. -I../../ -I../../util -I../../linearization -I../results -I../../math-support/
AR = ar -ru
FFLAGS = -O -fexceptions

Expand Down
4 changes: 2 additions & 2 deletions SimulationRuntime/interactive/Makefile.in
Expand Up @@ -12,7 +12,7 @@ CC = @CC@
CXX = @CXX@
CFLAGS += @CFLAGS@
CXXFLAGS = $(CFLAGS)
CPPFLAGS = -I.. -Wall -I../c/simulation/results/ -I../c/linearization -I../c/simulation/solver/ -I../c/util/ -I../c/ -I../c/simulation/ -I../c/simulation/math-support
CPPFLAGS = -I.. -Wall -I../c/simulation/results/ -I../c/linearization -I../c/simulation/solver/ -I../c/util/ -I../c/ -I../c/simulation/ -I../c/simulation

OBJ = $(CPPSRC:.cpp=.o)

Expand All @@ -29,7 +29,7 @@ libinteractive.a : $(OBJ)

client : client.cpp socket.h socket.cpp socket_win.cpp socket_unix.cpp thread.h thread.cpp
echo "Building client for interactive simulation ... "
g++ $(CPPFLAGS) -o SampleClient/client client.cpp socket.cpp thread.cpp -lpthread
$(CXX) $(CPPFLAGS) -o SampleClient/client client.cpp socket.cpp thread.cpp -lpthread

clean:
$(RM) -rf *.o *.a SampleClient/client
Expand Down

0 comments on commit 3b02655

Please sign in to comment.