X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/2ab8041933e77875de62bc73e76febc528af258e..555cf8e7b36faa768e40d09665781c468424a91c:/src/Makefile?ds=sidebyside diff --git a/src/Makefile b/src/Makefile index 2bcafd6..37ce7b4 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,15 +1,20 @@ -TARGETS=btree btree_variable libbtree.a +TARGETS=btree btree_var 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_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)