Skip to content

Commit

Permalink
+ fix build dir path
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12672 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
mahge committed Aug 25, 2012
1 parent cca561e commit 5517fbb
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions SimulationRuntime/ParModelica/OpenCLRuntime/Makefile
@@ -1,7 +1,9 @@

OPENMODELICA_INC=$(OPENMODELICAHOME)/include/omc/
OPENMODELICA_LIB=$(OPENMODELICAHOME)/lib/omc/
OPENMODELICA_BIN=$(OPENMODELICAHOME)/bin/
TOP_BUILDDIR = ../../../build/

OPENMODELICA_INC=$(TOP_BUILDDIR)/include/omc/
OPENMODELICA_LIB=$(TOP_BUILDDIR)/lib/omc/
OPENMODELICA_BIN=$(TOP_BUILDDIR)/bin/


AR_=ar -rcs
Expand All @@ -10,7 +12,7 @@ CC=g++
CXX=g++
EXEEXT=
DLLEXT=.so
CFLAGS= -O3 -Wall -I. -I"$(OPENMODELICAHOME)/include/omc"
CFLAGS= -O3 -Wall -I. -I"$(TOP_BUILDDIR)/include/omc"
OPENLC_LIB= lOpenCL


Expand All @@ -31,9 +33,9 @@ transfer: libOMOCLRuntime.a
$(COPY) ParModelicaBuiltin.mo $(OPENMODELICA_LIB)
# 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/
$(COPY) OCLRuntimeUtil_new.cl $(TOP_BUILDDIR)/include/omc/
# cp OCLRuntimeUtil.cl $(TOP_BUILDDIR)/bin/
# cp ocloffcomp$(EXEEXT) $(TOP_BUILDDIR)/bin/

ocloffc: omc_ocl_util.h libOMOCLRuntime.a
$(CXX) -I. -o ocloffcomp$(EXEEXT) ocl_offcomp.c libOMOCLRuntime.a $(OPENLC_LIB) $(CFLAGS)
Expand Down

0 comments on commit 5517fbb

Please sign in to comment.