]> git.llucax.com Git - z.facultad/75.52/treemulator.git/blobdiff - src/Makefile
Agrego emision de excepsiones en caso de error.
[z.facultad/75.52/treemulator.git] / src / Makefile
index a496d72c8df500cc319803496713b882a32dc1f5..37ce7b499c3664ffbc019929b74022ea23ef6afa 100644 (file)
@@ -1,18 +1,20 @@
-TARGETS=btree btree_variable btree_delete libbtree.a
+TARGETS=btree btree_var libbtree.a
 CXXFLAGS=-Wall -g
 
 CXXFLAGS=-Wall -g
 
-BTREE_COMMON=btree.o clave_fija.o btree_data.o clave_variable.o
+#Descomentar si se quiere agregar informacion para profiling
+PROF=-pg
+
+CXXFLAGS += $(PROF)
+
+BTREE_COMMON=btree.o clave_fija.o btree_data.o clave_variable.o random.o
 
 all: $(TARGETS)
 
 btree: main.o $(BTREE_COMMON)
 
 all: $(TARGETS)
 
 btree: main.o $(BTREE_COMMON)
-       g++ -o btree main.o $(BTREE_COMMON)
-
-btree_delete: main_con_delete.o $(BTREE_COMMON)
-       g++ -o btree_delete main_con_delete.o $(BTREE_COMMON)
+       g++ $(PROF) -o btree main.o $(BTREE_COMMON)
 
 
-btree_variable: main_variable.o $(BTREE_COMMON)
-       g++ -o btree_variable main_variable.o $(BTREE_COMMON)
+btree_var: main_var.o $(BTREE_COMMON)
+       g++ $(PROF) -o btree_var main_var.o $(BTREE_COMMON)
 
 libbtree.a: $(BTREE_COMMON)
        $(AR) cru libbtree.a $(BTREE_COMMON)
 
 libbtree.a: $(BTREE_COMMON)
        $(AR) cru libbtree.a $(BTREE_COMMON)