Skip to content

Commit

Permalink
+ Added ParModelica to the makefiles.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12671 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
mahge committed Aug 25, 2012
1 parent 4d7a339 commit cca561e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
8 changes: 7 additions & 1 deletion Makefile.common
Expand Up @@ -71,6 +71,12 @@ fmi: interactive
fmiclean:
$(MAKE) -C SimulationRuntime/fmi/import/ -f $(defaultMakefileTarget) clean

opencl_rt:
$(MAKE) -C SimulationRuntime/ParModelica/OpenCLRuntime -f $(defaultMakefileTarget)

opencl_rt_clean:
$(MAKE) -C SimulationRuntime/ParModelica/OpenCLRuntime -f $(defaultMakefileTarget) clean

breakprocess:
(cd testsuite/bootstrapping && time g++ BreakProcess.cpp -o BreakProcess -static-libgcc)
(cd testsuite/bootstrapping && cp BreakProcess.exe ../../$(builddir_bin)/)
Expand Down Expand Up @@ -169,7 +175,7 @@ distclean: clean
rm -rf build/
fmil-clean:
rm -rf 3rdParty/FMIL/build 3rdParty/FMIL/install 3rdParty/FMIL/Makefile
clean: qtclean fmil-clean
clean: qtclean fmil-clean opencl_rt_clean
(cd SimulationRuntime/c && $(MAKE) -f $(defaultMakefileTarget) clean)
(cd SimulationRuntime/interactive && $(MAKE) -f $(defaultMakefileTarget) clean)
(cd Compiler && $(MAKE) -f $(defaultMakefileTarget) clean)
Expand Down
4 changes: 2 additions & 2 deletions Makefile.in
Expand Up @@ -26,10 +26,10 @@ settings:

difftool: mkbuilddirs
$(MAKE) -C testsuite/difftool
omc: difftool interactive docs fmi fmil
omc: difftool interactive docs fmi fmil opencl_rt
(cd Compiler && $(MAKE) -f Makefile release)

omcd: difftool interactive docs fmi fmil
omcd: difftool interactive docs fmi fmil opencl_rt
(cd Compiler && $(MAKE) -f Makefile debug)

qtclean-common:
Expand Down
12 changes: 6 additions & 6 deletions SimulationRuntime/ParModelica/OpenCLRuntime/Makefile
Expand Up @@ -8,10 +8,10 @@ AR_=ar -rcs
COPY=cp -rpu
CC=g++
CXX=g++
EXEEXT=.exe
DLLEXT=.dll
EXEEXT=
DLLEXT=.so
CFLAGS= -O3 -Wall -I. -I"$(OPENMODELICAHOME)/include/omc"
OPENLC_LIB= OpenCL.lib
OPENLC_LIB= lOpenCL


OBJS = \
Expand All @@ -27,10 +27,10 @@ transfer: libOMOCLRuntime.a
$(COPY) omc_ocl_common_header.h $(OPENMODELICA_INC)
$(COPY) omc_ocl_memory_ops.h $(OPENMODELICA_INC)
$(COPY) libOMOCLRuntime.a $(OPENMODELICA_LIB)
$(COPY) $(OPENLC_LIB) $(OPENMODELICA_LIB)
# $(COPY) $(OPENLC_LIB) $(OPENMODELICA_LIB)
$(COPY) ParModelicaBuiltin.mo $(OPENMODELICA_LIB)
mkdir -p $(OPENMODELICA_INC)/CL/
$(COPY) ./CL/* $(OPENMODELICA_INC)/CL/
# mkdir -p $(OPENMODELICA_INC)/CL/
# $(COPY) ./CL/* $(OPENMODELICA_INC)/CL/
$(COPY) OCLRuntimeUtil_new.cl $(OPENMODELICAHOME)/include/omc/
# cp OCLRuntimeUtil.cl $(OPENMODELICAHOME)/bin/
# cp ocloffcomp$(EXEEXT) $(OPENMODELICAHOME)/bin/
Expand Down
1 change: 0 additions & 1 deletion SimulationRuntime/ParModelica/OpenCLRuntime/Makefile.in

This file was deleted.

0 comments on commit cca561e

Please sign in to comment.