Skip to content

Commit

Permalink
- Add @CFLAGS@ to more Makefiles
Browse files Browse the repository at this point in the history
- Use gcc instead of rmlc to compile generated C-sources


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8764 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed May 1, 2011
1 parent a35a731 commit f0c913c
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Compiler/Makefile.compiler_subdirs.common
Expand Up @@ -30,7 +30,7 @@ vpath %.mo $(MAIN_DIR)
time $(RMLHOME)/bin/rml $(RML_INCLUDE_ALL_DIRS) -fdump-depends $(SRCMO) > .depend

$(SRCO): %.o : %.c %.h
$(RMLC) $(RMLCFLAGS) -c $<
$(CC) $(CFLAGS) $(RMLINC) -c $<

%.c %.h : %.mo
$(RMLC) $(RMLCFLAGS) +C $<
Expand Down
2 changes: 1 addition & 1 deletion Compiler/modpar/Makefile.in
Expand Up @@ -38,7 +38,7 @@ libmodparomc.a: TaskGraphExt_stub_omc.o

INCFLAGS =-I$(RMLINCLUDE) -I$(BOOST_HOME) -I$(top_builddir)/mosh/src

CFLAGS = $(INCFLAGS) -g -Wall -DUNIX=1
CFLAGS = @CFLAGS@ $(INCFLAGS) -Wall -DUNIX=1
CXXFLAGS = $(CFLAGS)
LIBS =

Expand Down
2 changes: 1 addition & 1 deletion Compiler/omc_debug/Makefile.in
Expand Up @@ -9,7 +9,7 @@ LIBLPSOLVE55 = @LIBLPSOLVE55@

SHELL = /bin/sh
CC = gcc
CFLAGS = $(USE_CORBA)
CFLAGS = $(USE_CORBA) @CFLAGS@
RMLHOME = @rmlhome@
RMLINC = -I$(RMLHOME)/include/plain

Expand Down
2 changes: 1 addition & 1 deletion Compiler/omc_profiler/Makefile.in
Expand Up @@ -9,7 +9,7 @@ LIBLPSOLVE55 = @LIBLPSOLVE55@

SHELL = /bin/sh
CC = gcc
CFLAGS = $(USE_CORBA) -O3 -pg
CFLAGS = $(USE_CORBA) @CFLAGS@ -pg
RMLHOME = @rmlhome@
RMLINC = -I$(RMLHOME)/include/plain

Expand Down
2 changes: 1 addition & 1 deletion Compiler/omc_release/Makefile.in
Expand Up @@ -12,7 +12,7 @@ USE_CORBA = @USE_CORBA@
SHELL = /bin/sh
CC = @CC@
CXX = @CXX@
CFLAGS = $(USE_CORBA) -O3
CFLAGS = $(USE_CORBA) @CFLAGS@
RMLHOME = @rmlhome@
RMLINC = -I$(RMLHOME)/include/plain

Expand Down
3 changes: 1 addition & 2 deletions Compiler/runtime/Makefile.in
Expand Up @@ -7,7 +7,7 @@
USE_CORBA = @USE_CORBA@

RMLINCLUDE = @rmlinc@
CFLAGS = @DEFS@ $(USE_CORBA)
CFLAGS = @CFLAGS@ @DEFS@ $(USE_CORBA)

ifdef USE_CORBA
CORBASRC = omc_communication.cc omc_communication_impl.cpp Corba_rml.cpp
Expand All @@ -23,7 +23,6 @@ SHELL = /bin/sh
CC = @CC@
CXX = @CXX@
IDL = @IDLCMD@
CFLAGS += @CFLAGS@
CXXFLAGS = $(CFLAGS)
CPPFLAGS = -I$(RMLINCLUDE) -I$(top_builddir)/c_runtime -I$(srcdir) -I. $(CORBAINCL) -Ilpsolve

Expand Down
1 change: 0 additions & 1 deletion Parser/Makefile.common
Expand Up @@ -3,7 +3,6 @@ BUILDINC = -I../build/include/omc
RMLINC = -I$(RMLHOME)/include/plain

ANTLRCMD=java -cp ./antlr-3.2/lib/antlr-3.2.jar org.antlr.Tool -report
CFLAGS=-O3
CPPFLAGS=-I$(COMPILERHOME) $(RMLINC) -I. -Iantlr-3.2/runtime/C -Iantlr-3.2/runtime/C/include $(BUILDINC)

.PHONY: all
Expand Down
1 change: 1 addition & 0 deletions Parser/Makefile.in
@@ -1,6 +1,7 @@
REAL_CC=@CC@
CC=@CXX@
CXX=@CXX@
CFLAGS=@CFLAGS@
RMLHOME=@rmlhome@
OMC=../build/bin/omc

Expand Down

0 comments on commit f0c913c

Please sign in to comment.