]> git.llucax.com Git - z.facultad/75.52/treemulator.git/blob - src/Makefile
Profiling
[z.facultad/75.52/treemulator.git] / src / Makefile
1 TARGETS=btree btree_variable btree_delete libbtree.a
2 CXXFLAGS=-Wall -g
3
4 #Descomentar si se quiere agregar informacion para profiling
5 PROF=-pg
6
7 CXXFLAGS += $(PROF)
8
9 BTREE_COMMON=btree.o clave_fija.o btree_data.o clave_variable.o random.o
10
11 all: $(TARGETS)
12
13 btree: main.o $(BTREE_COMMON)
14         g++ $(PROF) -o btree main.o $(BTREE_COMMON)
15
16 btree_delete: main_con_delete.o $(BTREE_COMMON)
17         g++ -o btree_delete main_con_delete.o $(BTREE_COMMON)
18
19 btree_variable: main_variable.o $(BTREE_COMMON)
20         g++ -o btree_variable main_variable.o $(BTREE_COMMON)
21
22 libbtree.a: $(BTREE_COMMON)
23         $(AR) cru libbtree.a $(BTREE_COMMON)
24
25 clean:
26         rm -rf *.o $(TARGETS)
27
28