X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/6fcd86dce909f05de818fdd78d76e70aabc3ad22..3981ffa23945f8764b5bc4c790ff0f0947858010:/src/Makefile diff --git a/src/Makefile b/src/Makefile index 5440d99..208da31 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,7 +1,17 @@ -TARGET=btree +TARGETS=btree libbtree.a CXXFLAGS=-Wall -g -all: $(TARGET) +BTREE_COMMON=btree.o clave_fija.o btree_data.o + +all: $(TARGETS) + +btree: main.o $(BTREE_COMMON) + g++ -o btree main.o $(BTREE_COMMON) + +libbtree.a: $(BTREE_COMMON) + $(AR) cru libbtree.a $(BTREE_COMMON) + +clean: + rm -rf *.o $(TARGETS) + -$(TARGET): main.o btree.o - g++ -o $(TARGET) main.o btree.o