-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
44 lines (36 loc) · 867 Bytes
/
makefile
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
39
40
41
42
43
44
##
#
# Thu Jun 4 16:01:02 BRT 2015
# author: Joao Gustavo Cabral de Marins
# e-mail: jgcmarins@gmail.com
#
##
#compiler
C=gcc
#flags
F=-Wall
#binary
BIN=build/dbms
#headers
H=./src/headers
#main
M=src/main.c
#library
LIB=src/ArrayList.c src/InputReader.c src/NumberConverter.c src/StringConverter.c src/PointersComparator.c src/TableView.c src/BinaryFile.c src/BinaryFileWriter.c src/BinaryFileReader.c src/Field.c src/FieldHandler.c src/SecondaryIndex.c src/SecondaryIndexHandler.c src/Table.c src/InsertionHandler.c src/SelectionHandler.c src/DeletionHandler.c src/TableManager.c src/Database.c src/Menu.c
all: clean compile
clean:
rm -rf build
mkdir build
compile:
$(C) $(F) -o $(BIN) -I$(H) $(M) $(LIB)
run:
$(BIN)
valgrind:
valgrind $(BIN)
cleanfiles:
rm -rf files
mkdir files
runin1:
$(BIN) < in/1.in
valgrindin1:
valgrind $(BIN) < in/1.in