]> git.llucax.com Git - z.facultad/75.52/treemulator.git/blobdiff - src/Makefile
Mejoro la ventana para ver el arbol.
[z.facultad/75.52/treemulator.git] / src / Makefile
index b97eadb22a94ecc882c0580305e7f80d65876c0f..208da3198cdfeaab2f7bc2a8f469c81667f64e99 100644 (file)
@@ -1,6 +1,17 @@
-TARGET=btree
-CFLAGS="-Wall"
+TARGETS=btree libbtree.a
+CXXFLAGS=-Wall -g
+
+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)
 
-all: $(TARGET)
 
-$(TARGET): main.o btree.o