+REALTYPE=1
+CONTROLPANEL=enabled
+QUADTREE=disabled
+DEF = -DREALTYPE=$(REALTYPE)
+
+## Only link with things we care about
+
+ifeq ($(QUADTREE),enabled)
+ OBJ := $(OBJ) quadtree.o
+else
+ DEF := $(DEF) -DQUADTREE_DISABLED
+endif
+
+ifeq ($(CONTROLPANEL),enabled)
+ LIB := $(LIB) $(QT_LIB)
+ DEF := $(DEF) $(QT_DEF)
+ CFLAGS := $(CFLAGS) $(QT_INCLUDE)
+ OBJ := $(OBJ) moc_controlpanel.o controlpanel.o
+else
+ DEF := $(DEF) -DCONTROLPANEL_DISABLED
+endif
+
+ifeq ($REALTYPE),3)
+ OBJ := $(OBJ) vfpu.o
+endif
+
+ifeq ($(REALTYPE),5)
+ OBJ := $(OBJ) add_digits_asm.o sub_digits_asm.o mul_digits_asm.o div_digits_asm.o arbint.o
+ LIB := $(LIB) -lgmp
+endif
+
+ifeq ($(REALTYPE),6)
+ LIB := $(LIB) -lgmp -lmpfr
+endif
+
+ifeq ($(REALTYPE),7)
+ LIB := $(LIB) -L../contrib/iRRAM/lib -liRRAM -lgmp -lmpfr
+ CFLAGS := $(CFLAGS) -I../contrib/iRRAM/include
+endif