]> git.llucax.com Git - z.facultad/75.52/treemulator.git/commitdiff
Genero .a para reutilizar
authorRicardo Markiewicz <rmarkie@fi.uba.ar>
Fri, 23 Sep 2005 04:10:50 +0000 (04:10 +0000)
committerRicardo Markiewicz <rmarkie@fi.uba.ar>
Fri, 23 Sep 2005 04:10:50 +0000 (04:10 +0000)
src/Makefile

index 0db8bd1f8c5d90a604832877627cc90b228a626f..208da3198cdfeaab2f7bc2a8f469c81667f64e99 100644 (file)
@@ -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)