]> git.llucax.com Git - z.facultad/75.52/treemulator.git/blobdiff - src/Makefile
Agrego métodos y atributos al diagrama de clases.
[z.facultad/75.52/treemulator.git] / src / Makefile
index 5440d99a920137086b09df93f9117987412bb1d2..a496d72c8df500cc319803496713b882a32dc1f5 100644 (file)
@@ -1,7 +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
-       g++ -o $(TARGET) main.o btree.o