Allow for negative Paranoid Numbers
[ipdf/code.git] / src / Makefile
index 38f69fd..dba3b2a 100644 (file)
@@ -41,7 +41,7 @@ DEF = -DREALTYPE=$(REALTYPE)
 ## Only link with things we care about
 
 ifeq ($(QUADTREE),enabled)
-       OBJ := $(OBJ) quadtree.o
+       OBJ := $(OBJ)
 else
        DEF := $(DEF) -DQUADTREE_DISABLED
 endif
@@ -73,6 +73,12 @@ ifeq ($(REALTYPE),7)
        CFLAGS :=  $(CFLAGS) -I../contrib/iRRAM/include
 endif
 
+
+
+ifeq ($(REALTYPE),9)
+       LIB := $(LIB) -lgmp
+endif
+
 LINKOBJ = $(OBJPATHS)
 
 
@@ -104,7 +110,7 @@ movie : $(BIN) ../tools/stream_plot.py
 # To change that you can run as `make DEFS="REALTYPE=X" tests/<target>` where X is your chosen type
 # But remember to make clean first.
 tests/% : tests/%.cpp ../obj/tests/%.o $(LINKOBJ)
-       $(CXX) $(CFLAGS) -o $@.test $(LINKOBJ) ../obj/[email protected] $(LIB) $(TESTRPATH)
+       $(CXX) $(CFLAGS) -o $@ $(LINKOBJ) ../obj/[email protected] $(LIB) $(TESTRPATH)
 
 -include $(DEPS)
 

UCC git Repository :: git.ucc.asn.au