Commit 75e7c295 authored by yoogx's avatar yoogx
Browse files

* Use correct macro for C++ compiler

        For issue #5
parent 7a28bb35
...@@ -249,9 +249,9 @@ endif ...@@ -249,9 +249,9 @@ endif
c_file_dirname="`dirname $$f`"; \ c_file_dirname="`dirname $$f`"; \
if [ -n "$$c_file_dirname" ]; then \ if [ -n "$$c_file_dirname" ]; then \
if [ ! -d $$c_file_dirname ]; then mkdir -p $$c_file_dirname ; fi ; \ if [ ! -d $$c_file_dirname ]; then mkdir -p $$c_file_dirname ; fi ; \
$(CPP) $(INCLUDE) $(CPPFLAGS) -c -o $$f '$(RUNTIME_PATH)/src/'$$c_file_dirname'/'$$c_file || exit 1 ; \ $(CXX) $(INCLUDE) $(CPPFLAGS) -c -o $$f '$(RUNTIME_PATH)/src/'$$c_file_dirname'/'$$c_file || exit 1 ; \
else \ else \
$(CPP) $(INCLUDE) $(CPPFLAGS) -c -o $$f '$(RUNTIME_PATH)/src/'$$c_file || exit 1 ; \ $(CXX) $(INCLUDE) $(CPPFLAGS) -c -o $$f '$(RUNTIME_PATH)/src/'$$c_file || exit 1 ; \
fi ; \ fi ; \
done done
...@@ -363,10 +363,10 @@ $(BINARY): check-linuxtaste generate-asn1-deployment target-objects compile-po-h ...@@ -363,10 +363,10 @@ $(BINARY): check-linuxtaste generate-asn1-deployment target-objects compile-po-h
endif endif
%.o: %.cpp %.o: %.cpp
$(CPP) $(INCLUDE) $(CPPFLAGS) -c -o $@ $< $(CXX) $(INCLUDE) $(CPPFLAGS) -c -o $@ $<
%.o: %.cc %.o: %.cc
$(CPP) $(INCLUDE) $(CPPFLAGS) -c -o $@ $< $(CXX) $(INCLUDE) $(CPPFLAGS) -c -o $@ $<
%.o: %.c %.o: %.c
$(CC) $(INCLUDE) $(CFLAGS) -c -o $@ $< $(CC) $(INCLUDE) $(CFLAGS) -c -o $@ $<
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment