posaune
[projects.git] / tools / make / cpp.make
index 52f5409..7f318af 100644 (file)
@@ -1,7 +1,8 @@
 # Generic cpp makefile for mBuild build process
 
 # default parameters
-CC = g++
+CC = $(PREFIX)g++
+CXX = $(PREFIX)g++
 
 include make.pre
 
@@ -19,5 +20,6 @@ clean:
        ar r $(TARGET) *.o
 
 %.so: $(SOURCE:%.cpp=%.o) $(LDLIBS)
-       $(CXX) -shared -o $(TARGET) *.o $(LDFLAGS) $(LDLIBS) $(EXTLIB)
+       echo $(PATH)
+       $(CXX) -shared $(SYSROOT) -o $(TARGET) *.o $(LDFLAGS) $(LDLIBS) $(EXTLIB)
 -include make.post