X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/82f08876449346b0002707844c693b7b7bfefc8d..a7b40a39a402b6f4cbcf1b1a175c0e357704d43f:/src/Makefile diff --git a/src/Makefile b/src/Makefile index 208da31..37ce7b4 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,12 +1,20 @@ -TARGETS=btree libbtree.a +TARGETS=btree btree_var libbtree.a CXXFLAGS=-Wall -g -BTREE_COMMON=btree.o clave_fija.o btree_data.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_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)