Skip to content

Commit

Permalink
- linux fixes for the new libsendData.a from c_runtime
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2857 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Jul 12, 2007
1 parent e76c170 commit 01920f5
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions c_runtime/Makefile
Expand Up @@ -32,8 +32,18 @@ HFILES = blaswrap.h f2c.h integer_array.h memory_pool.h modelica_string.h \

LIBS = libc_runtime.a libsim.a


all : libc_runtime.a libsim.a libf2c.a install
ifdef QTHOME
PLTPKGCMD = cd ./sendData && \
$(QTHOME)/bin/qmake && \
sed -e's/QtNetwork /QtNetwork4 /' -e's/QtGui /QtGui4 /' -e's/QtCore /QtCore4 /' Makefile.Release > Makefile && \
$(MAKE) -f Makefile
else
PLTPKGCMD = mkdir -p sendData/release && \
g++ -c -o sendData/libsendData.o sendData/humbug.cpp && \
ar -ru sendData/release/libsendData.a sendData/libsendData.o
endif

all : libc_runtime.a libsim.a libf2c.a libsendData.a install

libc_runtime.a : $(OBJS)
$(AR) $@ $(OBJS)
Expand All @@ -43,14 +53,21 @@ install: libc_runtime.a libsim.a libf2c/libf2c.a
cp $(HFILES) $(builddir_inc)/
cp $(LIBS) $(builddir_lib)/
cp libf2c/libf2c.* $(builddir_lib)/
cp sendData/release/libsendData.a $(builddir_lib)/

libsim.a : $(SIMOBJS)
$(AR) $@ $(SIMOBJS)

libf2c.a :
cd libf2c && $(MAKE) -f makefile.u


libsendData.a : sendData/sendData.cpp sendData/sendData.h sendData/sendData.pro
# cd ./sendData && \
# $(QTHOME)/bin/qmake && \
# sed -e's/QtNetwork /QtNetwork4 /' -e's/QtGui /QtGui4 /' -e's/QtCore /QtCore4 /' Makefile.Release > Makefile && \
# $(MAKE) -f Makefile
$(PLTPKGCMD)

clean :
cd ./libf2c && $(MAKE) -f makefile.u clean
rm -f libc_runtime.a
Expand All @@ -61,4 +78,6 @@ clean :
rm -f $(builddir_lib)/libsim.a
rm -f $(builddir_lib)/libf2c.*
cd $(builddir_inc)/ && rm -f $(HFILES)

cd sendData && rm -fr release debug Makefile* *sendData*.o *sendData*.a
rm -rf sendData/release sendData/debug
rm -f sendData.o sendData.a sendData/Makefile* sendData/releasesendData.o

0 comments on commit 01920f5

Please sign in to comment.