X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/174c8dee6e7ff13cf9e6e75ea8ed30899d58d3a2..88f6f1c9a8861bed8d1907001a10c4605e268a5e:/src/Makefile diff --git a/src/Makefile b/src/Makefile index b97eadb..208da31 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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