]> git.llucax.com Git - z.facultad/75.52/treemulator.git/blob - src/Makefile
tagged 1.1
[z.facultad/75.52/treemulator.git] / src / Makefile
1 TARGETS=btree btree_var 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_var: main_var.o $(BTREE_COMMON)
17         g++ $(PROF) -o btree_var main_var.o $(BTREE_COMMON)
18
19 libbtree.a: $(BTREE_COMMON)
20         $(AR) cru libbtree.a $(BTREE_COMMON)
21
22 clean:
23         rm -rf *.o $(TARGETS)
24
25