From 82f08876449346b0002707844c693b7b7bfefc8d Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Fri, 23 Sep 2005 04:10:50 +0000 Subject: [PATCH] Genero .a para reutilizar --- src/Makefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/Makefile b/src/Makefile index 0db8bd1..208da31 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,12 +1,17 @@ -TARGET=btree +TARGETS=btree libbtree.a CXXFLAGS=-Wall -g -all: $(TARGET) +BTREE_COMMON=btree.o clave_fija.o btree_data.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) + +libbtree.a: $(BTREE_COMMON) + $(AR) cru libbtree.a $(BTREE_COMMON) clean: - rm -rf *.o $(TARGET) + rm -rf *.o $(TARGETS) -- 2.43.0