]> git.llucax.com Git - z.facultad/75.52/treemulator.git/commitdiff
Profiling
authorRicardo Markiewicz <rmarkie@fi.uba.ar>
Sat, 22 Oct 2005 19:49:31 +0000 (19:49 +0000)
committerRicardo Markiewicz <rmarkie@fi.uba.ar>
Sat, 22 Oct 2005 19:49:31 +0000 (19:49 +0000)
src/Makefile

index a496d72c8df500cc319803496713b882a32dc1f5..de39baf26b2d56f61411b49b386be3e0326e6fb5 100644 (file)
@@ -1,12 +1,17 @@
 TARGETS=btree btree_variable btree_delete libbtree.a
 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)
-       g++ -o btree main.o $(BTREE_COMMON)
+       g++ $(PROF) -o btree main.o $(BTREE_COMMON)
 
 btree_delete: main_con_delete.o $(BTREE_COMMON)
        g++ -o btree_delete main_con_delete.o $(BTREE_COMMON)