Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fixed a bug in systemimpl.c that caused an endless loop in System.s…
…tringReplace - fixed the OMShell code to compile on Unix (added OMShell.pro) git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2379 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
- Loading branch information
Showing
11 changed files
with
1,712 additions
and
1,200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,244 @@ | ||
############################################################################# | ||
# Makefile for building: OMShell | ||
# Generated by qmake (2.00a) (Qt 4.1.1) on: Mon May 15 05:56:06 2006 | ||
# Project: OMShell.pro | ||
# Template: app | ||
# Command: /usr/local/qt-4.1.1/bin/qmake -unix -o Makefile OMShell.pro | ||
############################################################################# | ||
|
||
####### Compiler, tools and options | ||
|
||
CC = gcc | ||
CXX = g++ | ||
LEX = flex | ||
YACC = yacc | ||
DEFINES = -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED | ||
CFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES) | ||
CXXFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES) | ||
LEXFLAGS = | ||
YACCFLAGS = -d | ||
INCPATH = -I/usr/local/qt-4.1.1/mkspecs/linux-g++ -I. -I/usr/local/qt-4.1.1/include/QtCore -I/usr/local/qt-4.1.1/include/QtNetwork -I/usr/local/qt-4.1.1/include/QtGui -I/usr/local/qt-4.1.1/include/QtXml -I/usr/local/qt-4.1.1/include -I../../mico-2.3.12/include -I. -I. | ||
LINK = g++ | ||
LFLAGS = -Wl,-rpath,/usr/local/qt-4.1.1/lib | ||
LIBS = $(SUBLIBS) -L/usr/local/qt-4.1.1/lib -L/home/adrpo/dev/mico-2.3.12/lib -lmico2.3.12 -lssl -lcrypto -lbsd -lQtXml_debug -L/home/andbe/src/qt-x11-opensource-src-4.1.1/lib -lQtGui_debug -L/usr/X11R6/lib -lpng -lSM -lICE -lXi -lXrender -lXrandr -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lQtNetwork_debug -lQtCore_debug -lz -lm -ldl -lpthread | ||
AR = ar cqs | ||
RANLIB = | ||
QMAKE = /usr/local/qt-4.1.1/bin/qmake | ||
TAR = tar -cf | ||
COMPRESS = gzip -9f | ||
COPY = cp -f | ||
COPY_FILE = $(COPY) | ||
COPY_DIR = $(COPY) -r | ||
INSTALL_FILE = $(COPY_FILE) | ||
INSTALL_DIR = $(COPY_DIR) | ||
DEL_FILE = rm -f | ||
SYMLINK = ln -sf | ||
DEL_DIR = rmdir | ||
MOVE = mv -f | ||
CHK_DIR_EXISTS= test -d | ||
MKDIR = mkdir -p | ||
|
||
####### Output directory | ||
|
||
OBJECTS_DIR = ./ | ||
|
||
####### Files | ||
|
||
SOURCES = commandcompletion.cpp \ | ||
omc_communication.cc \ | ||
omc_communicator.cpp \ | ||
omcinteractiveenvironment.cpp \ | ||
oms.cpp \ | ||
main.cpp moc_commandcompletion.cpp \ | ||
moc_omc_communicator.cpp \ | ||
moc_oms.cpp | ||
OBJECTS = commandcompletion.o \ | ||
omc_communication.o \ | ||
omc_communicator.o \ | ||
omcinteractiveenvironment.o \ | ||
oms.o \ | ||
main.o \ | ||
moc_commandcompletion.o \ | ||
moc_omc_communicator.o \ | ||
moc_oms.o | ||
DIST = /usr/local/qt-4.1.1/mkspecs/qconfig.pri \ | ||
/usr/local/qt-4.1.1/mkspecs/features/qt_config.prf \ | ||
/usr/local/qt-4.1.1/mkspecs/features/exclusive_builds.prf \ | ||
/usr/local/qt-4.1.1/mkspecs/features/default_pre.prf \ | ||
/usr/local/qt-4.1.1/mkspecs/features/debug.prf \ | ||
/usr/local/qt-4.1.1/mkspecs/features/default_post.prf \ | ||
/usr/local/qt-4.1.1/mkspecs/features/warn_on.prf \ | ||
/usr/local/qt-4.1.1/mkspecs/features/qt.prf \ | ||
/usr/local/qt-4.1.1/mkspecs/features/unix/thread.prf \ | ||
/usr/local/qt-4.1.1/mkspecs/features/moc.prf \ | ||
/usr/local/qt-4.1.1/mkspecs/features/resources.prf \ | ||
/usr/local/qt-4.1.1/mkspecs/features/uic.prf \ | ||
OMShell.pro | ||
QMAKE_TARGET = OMShell | ||
DESTDIR = | ||
TARGET = OMShell | ||
|
||
first: all | ||
####### Implicit rules | ||
|
||
.SUFFIXES: .c .o .cpp .cc .cxx .C | ||
|
||
.cpp.o: | ||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
|
||
.cc.o: | ||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
|
||
.cxx.o: | ||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
|
||
.C.o: | ||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
|
||
.c.o: | ||
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< | ||
|
||
####### Build rules | ||
|
||
all: Makefile $(TARGET) | ||
|
||
$(TARGET): $(OBJECTS) | ||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) | ||
|
||
Makefile: OMShell.pro /usr/local/qt-4.1.1/mkspecs/linux-g++/qmake.conf /usr/local/qt-4.1.1/mkspecs/qconfig.pri \ | ||
/usr/local/qt-4.1.1/mkspecs/features/qt_config.prf \ | ||
/usr/local/qt-4.1.1/mkspecs/features/exclusive_builds.prf \ | ||
/usr/local/qt-4.1.1/mkspecs/features/default_pre.prf \ | ||
/usr/local/qt-4.1.1/mkspecs/features/debug.prf \ | ||
/usr/local/qt-4.1.1/mkspecs/features/default_post.prf \ | ||
/usr/local/qt-4.1.1/mkspecs/features/warn_on.prf \ | ||
/usr/local/qt-4.1.1/mkspecs/features/qt.prf \ | ||
/usr/local/qt-4.1.1/mkspecs/features/unix/thread.prf \ | ||
/usr/local/qt-4.1.1/mkspecs/features/moc.prf \ | ||
/usr/local/qt-4.1.1/mkspecs/features/resources.prf \ | ||
/usr/local/qt-4.1.1/mkspecs/features/uic.prf \ | ||
/usr/local/qt-4.1.1/lib/libQtXml_debug.prl \ | ||
/usr/local/qt-4.1.1/lib/libQtCore_debug.prl \ | ||
/usr/local/qt-4.1.1/lib/libQtGui_debug.prl \ | ||
/usr/local/qt-4.1.1/lib/libQtNetwork_debug.prl | ||
$(QMAKE) -unix -o Makefile OMShell.pro | ||
/usr/local/qt-4.1.1/mkspecs/qconfig.pri: | ||
/usr/local/qt-4.1.1/mkspecs/features/qt_config.prf: | ||
/usr/local/qt-4.1.1/mkspecs/features/exclusive_builds.prf: | ||
/usr/local/qt-4.1.1/mkspecs/features/default_pre.prf: | ||
/usr/local/qt-4.1.1/mkspecs/features/debug.prf: | ||
/usr/local/qt-4.1.1/mkspecs/features/default_post.prf: | ||
/usr/local/qt-4.1.1/mkspecs/features/warn_on.prf: | ||
/usr/local/qt-4.1.1/mkspecs/features/qt.prf: | ||
/usr/local/qt-4.1.1/mkspecs/features/unix/thread.prf: | ||
/usr/local/qt-4.1.1/mkspecs/features/moc.prf: | ||
/usr/local/qt-4.1.1/mkspecs/features/resources.prf: | ||
/usr/local/qt-4.1.1/mkspecs/features/uic.prf: | ||
/usr/local/qt-4.1.1/lib/libQtXml_debug.prl: | ||
/usr/local/qt-4.1.1/lib/libQtCore_debug.prl: | ||
/usr/local/qt-4.1.1/lib/libQtGui_debug.prl: | ||
/usr/local/qt-4.1.1/lib/libQtNetwork_debug.prl: | ||
qmake: FORCE | ||
@$(QMAKE) -unix -o Makefile OMShell.pro | ||
|
||
dist: | ||
@$(CHK_DIR_EXISTS) ".tmp/OMShell1.0.0" || $(MKDIR) ".tmp/OMShell1.0.0" | ||
$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/OMShell1.0.0/ && $(COPY_FILE) --parents commandcompletion.h omc_communication.h omc_communicator.h omcinteractiveenvironment.h oms.h .tmp/OMShell1.0.0/ && $(COPY_FILE) --parents commandcompletion.cpp omc_communication.cc omc_communicator.cpp omcinteractiveenvironment.cpp oms.cpp main.cpp .tmp/OMShell1.0.0/ && (cd `dirname .tmp/OMShell1.0.0` && $(TAR) OMShell1.0.0.tar OMShell1.0.0 && $(COMPRESS) OMShell1.0.0.tar) && $(MOVE) `dirname .tmp/OMShell1.0.0`/OMShell1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/OMShell1.0.0 | ||
|
||
|
||
yaccclean: | ||
lexclean: | ||
clean:compiler_clean | ||
-$(DEL_FILE) $(OBJECTS) | ||
-$(DEL_FILE) *~ core *.core | ||
|
||
|
||
####### Sub-libraries | ||
|
||
distclean: clean | ||
-$(DEL_FILE) $(TARGET) | ||
-$(DEL_FILE) Makefile | ||
|
||
|
||
/usr/local/qt-4.1.1/bin/moc: | ||
(cd "$(QTDIR)/src/tools/moc" && $(MAKE)) | ||
|
||
mocclean: compiler_moc_header_clean compiler_moc_source_clean | ||
|
||
mocables: compiler_moc_header_make_all compiler_moc_source_make_all | ||
|
||
compiler_moc_header_make_all: moc_commandcompletion.cpp moc_omc_communicator.cpp moc_oms.cpp | ||
compiler_moc_header_clean: | ||
-$(DEL_FILE) moc_commandcompletion.cpp moc_omc_communicator.cpp moc_oms.cpp | ||
moc_commandcompletion.cpp: commandunit.h \ | ||
commandcompletion.h \ | ||
/usr/local/qt-4.1.1/bin/moc | ||
/usr/local/qt-4.1.1/bin/moc $(DEFINES) $(INCPATH) commandcompletion.h -o moc_commandcompletion.cpp | ||
|
||
moc_omc_communicator.cpp: omc_communication.h \ | ||
omc_communicator.h \ | ||
/usr/local/qt-4.1.1/bin/moc | ||
/usr/local/qt-4.1.1/bin/moc $(DEFINES) $(INCPATH) omc_communicator.h -o moc_omc_communicator.cpp | ||
|
||
moc_oms.cpp: inputcelldelegate.h \ | ||
commandcompletion.h \ | ||
commandunit.h \ | ||
oms.h \ | ||
/usr/local/qt-4.1.1/bin/moc | ||
/usr/local/qt-4.1.1/bin/moc $(DEFINES) $(INCPATH) oms.h -o moc_oms.cpp | ||
|
||
compiler_rcc_make_all: | ||
compiler_rcc_clean: | ||
compiler_image_collection_make_all: | ||
compiler_image_collection_clean: | ||
-$(DEL_FILE) qmake_image_collection.cpp | ||
compiler_moc_source_make_all: | ||
compiler_moc_source_clean: | ||
compiler_uic_make_all: | ||
compiler_uic_clean: | ||
compiler_clean: compiler_moc_header_clean compiler_rcc_clean compiler_image_collection_clean compiler_moc_source_clean compiler_uic_clean | ||
|
||
####### Compile | ||
|
||
commandcompletion.o: commandcompletion.cpp commandcompletion.h \ | ||
commandunit.h | ||
|
||
omc_communication.o: omc_communication.cc omc_communication.h | ||
|
||
omc_communicator.o: omc_communicator.cpp omc_communicator.h \ | ||
omc_communication.h | ||
|
||
omcinteractiveenvironment.o: omcinteractiveenvironment.cpp omcinteractiveenvironment.h \ | ||
omc_communicator.h \ | ||
omc_communication.h \ | ||
inputcelldelegate.h | ||
|
||
oms.o: oms.cpp oms.h \ | ||
inputcelldelegate.h \ | ||
commandcompletion.h \ | ||
commandunit.h \ | ||
omcinteractiveenvironment.h \ | ||
omc_communicator.h \ | ||
omc_communication.h \ | ||
otherdlg.h \ | ||
ui_OtherDlg.h | ||
|
||
main.o: main.cpp oms.h \ | ||
inputcelldelegate.h \ | ||
commandcompletion.h \ | ||
commandunit.h | ||
|
||
moc_commandcompletion.o: moc_commandcompletion.cpp | ||
|
||
moc_omc_communicator.o: moc_omc_communicator.cpp | ||
|
||
moc_oms.o: moc_oms.cpp | ||
|
||
####### Install | ||
|
||
install: FORCE | ||
|
||
uninstall: FORCE | ||
|
||
FORCE: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
TEMPLATE = app | ||
|
||
DEPENDPATH += . | ||
INCLUDEPATH += /home/adrpo/dev/mico-2.3.12/include | ||
LIBS+=-L/home/adrpo/dev/mico-2.3.12/lib -lmico2.3.12 -lssl -lcrypto -ldl -lbsd -lm -lpthread | ||
CONFIG += warn_on | ||
QT += network xml | ||
|
||
HEADERS += commandcompletion.h \ | ||
omc_communication.h \ | ||
omc_communicator.h \ | ||
omcinteractiveenvironment.h \ | ||
oms.h | ||
SOURCES += commandcompletion.cpp \ | ||
omc_communication.cc \ | ||
omc_communicator.cpp \ | ||
omcinteractiveenvironment.cpp \ | ||
oms.cpp \ | ||
main.cpp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.