X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/78d8bc6c001cb877d8c7daf3868835815a97ce21..a4c2bc5e5d6b2a6cfdae3ae0159535deaacd28f4:/src/Makefile?ds=sidebyside diff --git a/src/Makefile b/src/Makefile index 0db8bd1..2bcafd6 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,12 +1,20 @@ -TARGET=btree +TARGETS=btree btree_variable libbtree.a CXXFLAGS=-Wall -g -all: $(TARGET) +BTREE_COMMON=btree.o clave_fija.o btree_data.o clave_variable.o -$(TARGET): main.o btree.o clave_fija.o btree_data.o - g++ -o $(TARGET) main.o btree.o clave_fija.o btree_data.o +all: $(TARGETS) + +btree: main.o $(BTREE_COMMON) + g++ -o btree main.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 $(TARGET) + rm -rf *.o $(TARGETS)