X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/174c8dee6e7ff13cf9e6e75ea8ed30899d58d3a2..eabe0084451a515b80a7fd462c71b4bb2f8dd7bd:/src/Makefile diff --git a/src/Makefile b/src/Makefile index b97eadb..37ce7b4 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,6 +1,25 @@ -TARGET=btree -CFLAGS="-Wall" +TARGETS=btree btree_var libbtree.a +CXXFLAGS=-Wall -g + +#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++ $(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) + +clean: + rm -rf *.o $(TARGETS) -all: $(TARGET) -$(TARGET): main.o btree.o