Commit 75e7c295 authored by yoogx's avatar yoogx

* Use correct macro for C++ compiler

        For issue #5
parent 7a28bb35
......@@ -249,9 +249,9 @@ endif
c_file_dirname="`dirname $$f`"; \
if [ -n "$$c_file_dirname" ]; then \
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 \
$(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 ; \
done
......@@ -363,10 +363,10 @@ $(BINARY): check-linuxtaste generate-asn1-deployment target-objects compile-po-h
endif
%.o: %.cpp
$(CPP) $(INCLUDE) $(CPPFLAGS) -c -o $@ $<
$(CXX) $(INCLUDE) $(CPPFLAGS) -c -o $@ $<
%.o: %.cc
$(CPP) $(INCLUDE) $(CPPFLAGS) -c -o $@ $<
$(CXX) $(INCLUDE) $(CPPFLAGS) -c -o $@ $<
%.o: %.c
$(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