Skip to content

Commit

Permalink
- cp -u is not a valid cp option
Browse files Browse the repository at this point in the history
- g++ is not a real C compiler
- C does not support overloaded functions
- g++ is not the system-configured C++ compiler


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12685 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Aug 27, 2012
1 parent 3052323 commit 07c2bff
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
10 changes: 3 additions & 7 deletions SimulationRuntime/ParModelica/OpenCLRuntime/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@ OPENMODELICA_INC=$(TOP_BUILDDIR)/include/omc/
OPENMODELICA_LIB=$(TOP_BUILDDIR)/lib/omc/
OPENMODELICA_BIN=$(TOP_BUILDDIR)/bin/


# cp -u is a GNU extension. Do not rely on it.
COPY=cp -rp
AR_=ar -rcs
COPY=cp -rpu
CC=g++
CXX=g++

CFLAGS= -fPIC -O3 -Wall -I. -I"../../c"

SRCS = \
omc_ocl_memory_ops.c \
Expand All @@ -30,4 +26,4 @@ libOMOCLRuntime.a: $(OBJS)
$(AR_) $@ $(OBJS)

clean :
rm -f *.o *.a
rm -f *.o *.a
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
CC=@CC@
CXX=@CXX@

CFLAGS=@CFLAGS@
CPPFLAGS=@CPPFLAGS@ -I. -I"../../c"

EXEEXT=
DLLEXT=.so
OPENLC_LIB= lOpenCL


all: transfer

transfer: libOMOCLRuntime.a
Expand All @@ -15,6 +18,7 @@ transfer: libOMOCLRuntime.a
$(COPY) ParModelicaBuiltin.mo $(OPENMODELICA_LIB)
$(COPY) OCLRuntimeUtil_new.cl $(TOP_BUILDDIR)/include/omc/

include Makefile.common
Makefile: Makefile.in
(cd ../../../ && ./config.status)

include Makefile.common
1 change: 1 addition & 0 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ SimulationRuntime/fmi/import/Makefile \
SimulationRuntime/c/Makefile \
SimulationRuntime/c/ModelicaExternalC/Makefile \
SimulationRuntime/c/simulation/libf2c/makefile.u \
SimulationRuntime/ParModelica/OpenCLRuntime/Makefile \
SimulationRuntime/interactive/Makefile \
mosh/src/Makefile \
"
Expand Down

0 comments on commit 07c2bff

Please sign in to comment.