Skip to content

Commit

Permalink
Fixed some makefile issues.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1063 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Peter Aronsson committed Jan 9, 2004
1 parent 81e2e19 commit 2f3b181
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modeq/Makefile.in
Expand Up @@ -22,7 +22,7 @@ MYRML = ./myrmlc


LDFLAGS = -L$(RMLHOME)/lib/plain $(ANTLR_LIBP) -lrml -lm -lantlr $(LIBSOCKET) \
-lssl -lmico -lcrypto -ldl -lm -lpthread
-lssl -lmico -lcrypto -lm -lpthread

PROG = modeq
AST = absyn_builder/absyn_builder.a
Expand Down
6 changes: 6 additions & 0 deletions modeq/runtime/Makefile.in
Expand Up @@ -11,6 +11,7 @@ CFLAGS = @DEFS@

SHELL = /bin/sh
CC = gcc
IDL = idl --boa --no-poa
CFLAGS += -I$(RMLINCLUDE) -I../../c_runtime
CXXFLAGS = $(CFLAGS)
SRC = rtopts.c socketimpl.c printimpl.c systemimpl.c
Expand All @@ -20,6 +21,11 @@ OBJ = $(SRC:.c=.o) $(CPPSRC:.cpp=.o) $(CPPSRC:.cc=.o)

all: $(OBJ)

modeq_communication.cc modeq_communication.h : modeq_communication.idl
$(IDL) modeq_communication.idl

modeq_communication.h: modeq_communication_impl.cpp corbaimpl.cpp

clean:
$(RM) -rf *.o

Expand Down
4 changes: 4 additions & 0 deletions modeq/runtime/corbaimpl.cpp
Expand Up @@ -126,7 +126,11 @@ RML_BEGIN_LABEL(Corba__close)
{
boa->deactivate_impl(CORBA::ImplementationDef::_nil());
orb->shutdown(TRUE);
#ifdef HAVE_PTHREAD_YIELD
pthread_yield(); // Allowing other thread to shutdown.
#else
sched_yield(); // use as backup (in cygwin)
#endif
RML_TAILCALLK(rmlSC);
}
RML_END_LABEL
Expand Down

0 comments on commit 2f3b181

Please sign in to comment.