X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/1b6152a8b901df0e8b57c35b9846a6e609b8b7df..d1cfb7971a17f744717953a0466ee2efbd53f442:/src/Makefile?ds=inline diff --git a/src/Makefile b/src/Makefile index cd9cbe7..a496d72 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,8 +1,23 @@ -TARGET=btree +TARGETS=btree btree_variable btree_delete libbtree.a CXXFLAGS=-Wall -g -all: $(TARGET) +BTREE_COMMON=btree.o clave_fija.o btree_data.o clave_variable.o + +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) + +btree_variable: main_variable.o $(BTREE_COMMON) + g++ -o btree_variable main_variable.o $(BTREE_COMMON) + +libbtree.a: $(BTREE_COMMON) + $(AR) cru libbtree.a $(BTREE_COMMON) + +clean: + rm -rf *.o $(TARGETS) -$(TARGET): main.o btree.o clave_fija.o - g++ -o $(TARGET) main.o btree.o clave_fija.o