-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (28 loc) · 815 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (28 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
COMPILER=gcc
FLAGS=-pedantic -std=c99
FLAG_CURRENT=
DEBUG_COMPILER=-Wall -fsanitize=address
OUTPUT_FILE_BUE=arbolesADTBUE
OUTPUT_FILE_VAN=arbolesADTVAN
QUERYS=query1.csv query2.csv query3.csv
all: BUE VAN
debug: COMPILER+=$(DEBUG_COMPILER)
debug: all
VAN: FLAG_CURRENT=-DVAN
VAN: mainVAN.o
$(COMPILER) -o $(OUTPUT_FILE_VAN) main.o valoresADT.o
BUE: FLAG_CURRENT=-DBUE
BUE: mainBUE.o
$(COMPILER) -o $(OUTPUT_FILE_BUE) main.o valoresADT.o
mainBUE.o: main.c
$(COMPILER) -c $(FLAGS) $(FLAG_CURRENT) main.c desarrollo-tads/valoresADT.c
mainVAN.o: main.c
$(COMPILER) -c $(FLAGS) $(FLAG_CURRENT) main.c desarrollo-tads/valoresADT.c
clean:
rm -rf $(OUTPUT_FILE_BUE) $(OUTPUT_FILE_VAN) *.o
cleanVAN:
rm -rf $(OUTPUT_FILE_VAN) *.o
cleanBUE:
rm -rf $(OUTPUT_FILE_BUE) *.o
cleanQuerys:
rm -f $(QUERYS)