Skip to content

Commit

Permalink
- fixes for Linux!
Browse files Browse the repository at this point in the history
- please don't use makefile.mingw in the Makefile as it breaks on Linux, instead, used make -f Makefile.omdev.mingw
- changed also in build_mingw_libs.bat to use Makefile.omdev.mingw!

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2356 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed May 6, 2006
1 parent 55c6fd6 commit 4388911
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions c_runtime/Makefile
Expand Up @@ -10,8 +10,11 @@ CFLAGS = -g -Wall -ansi -pedantic -I$(top_builddir)/mosh/src/ $(EXTRA_CFLAGS)
CPPFLAGS = $(CFLAGS)
FFLAGS = -O
# P.A: before, g77 had -O3 or -O2 but that caused a bug in DDASRT, giving infinite loop.
OSTYP = $(OSTYPE)
OS_MSYS=msys
# Adrian Pop, adrpo@ida.liu.se
# - please leave makefile.u as if you don't it breaks the compilation on UNIX/LINUX
# - use make -f Makefile.omdev.mingw if you want to compile on MinGW




FSRCS = daux.f \
Expand Down Expand Up @@ -67,10 +70,13 @@ libsim.a : $(SIMOBJS)
$(AR) $@ $(SIMOBJS)

libf2c.a :
cd libf2c && $(MAKE) -f makefile.mingw
echo $(OSTYPE)
cd libf2c && $(MAKE) -f $(SELECTED_MAKEFILE)


clean :
cd ./libf2c && $(MAKE) -f makefile.mingw clean
echo $(OSTYPE)
cd ./libf2c && $(MAKE) -f $(SELECTED_MAKEFILE) clean
rm -f libc_runtime.a
rm -f libsim.a
rm -f $(OBJS)
Expand Down
2 changes: 1 addition & 1 deletion c_runtime/build_mingw_libs.bat
Expand Up @@ -12,6 +12,6 @@ del ..\mosh\src\options.o *.o *.a
pushd ..\mosh\src
g++ -O3 -c options.cpp
popd
mingw32-make
mingw32-make -f Makefile.omdev.mingw
del ..\mosh\src\options.o *.o
set PATH=%OLDPATH%

0 comments on commit 4388911

Please sign in to comment.