diff -ruN octproj_orig/src/Makefile octproj/src/Makefile --- octproj_orig/src/Makefile 2015-06-16 12:50:36.699718600 +0200 +++ octproj/src/Makefile 2015-06-16 12:52:03.076659100 +0200 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- #Compiler -CC=mkoctfile +MKOCTFILE=mkoctfile #Common warning flags for C and C++ FLAGSCOMW=-Wall -Wextra -Wshadow -Wcast-qual -Wcast-align -Wwrite-strings #Common optimization flags for C and C++ @@ -16,21 +16,17 @@ export CFLAGS CXXFLAGS .PHONY: all -all: compile clean +all: compile .PHONY: compile compile: - $(CC) -c -v projwrap.c -o projwrap.o - $(CC) -s -v _op_transform.cc projwrap.o $(LDFLAGS) - $(CC) -s _op_fwd.cc projwrap.o $(LDFLAGS) - $(CC) -s _op_inv.cc projwrap.o $(LDFLAGS) - $(CC) -s _op_geod2geoc.cc $(LDFLAGS) - $(CC) -s _op_geoc2geod.cc $(LDFLAGS) + $(MKOCTFILE) -c -v projwrap.c -o projwrap.o + $(MKOCTFILE) -s -v _op_transform.cc projwrap.o $(LDFLAGS) + $(MKOCTFILE) -s _op_fwd.cc projwrap.o $(LDFLAGS) + $(MKOCTFILE) -s _op_inv.cc projwrap.o $(LDFLAGS) + $(MKOCTFILE) -s _op_geod2geoc.cc $(LDFLAGS) + $(MKOCTFILE) -s _op_geoc2geod.cc $(LDFLAGS) .PHONY: clean clean: - rm -rf *.o - -.PHONY: cleanall -cleanall: rm -rf *~ *.o *.oct