diff options
author | Calvin Morrison <mutantturkey@gmail.com> | 2014-02-19 16:02:52 -0500 |
---|---|---|
committer | Calvin Morrison <mutantturkey@gmail.com> | 2014-02-19 16:02:52 -0500 |
commit | ac86133781d7cd50964579f79522a4e3f8c3f339 (patch) | |
tree | 2bd3d58125e48b9c4439b7f22eb22f0d7a5ffab1 /FEAST/MIToolbox/Makefile | |
parent | 7889905d7478f31d8092187cd104beee39972ebb (diff) |
add a safe alloc function so our program doesn't segfault on memory shortage
Diffstat (limited to 'FEAST/MIToolbox/Makefile')
-rw-r--r-- | FEAST/MIToolbox/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/FEAST/MIToolbox/Makefile b/FEAST/MIToolbox/Makefile index 992e7cd..f38a369 100644 --- a/FEAST/MIToolbox/Makefile +++ b/FEAST/MIToolbox/Makefile @@ -25,11 +25,15 @@ PREFIX = /usr CXXFLAGS = -O3 -fPIC COMPILER = gcc objects = ArrayOperations.o CalculateProbability.o Entropy.o \ - MutualInformation.o RenyiEntropy.o RenyiMutualInformation.o + MutualInformation.o RenyiEntropy.o RenyiMutualInformation.o util.o libMIToolbox.so : $(objects) $(COMPILER) $(CXXFLAGS) -shared -o libMIToolbox.so $(objects) + +util.o: util.c + $(COMPILER) $(CXXFLAGS) -DCOMPILE_C -c util.c + RenyiMutualInformation.o: RenyiMutualInformation.c MIToolbox.h ArrayOperations.h \ CalculateProbability.h RenyiEntropy.h $(COMPILER) $(CXXFLAGS) -DCOMPILE_C -c RenyiMutualInformation.c |